Professional Documents
Culture Documents
BDO - IN SEM LAB Questions
BDO - IN SEM LAB Questions
Record/ Observation 5M
Writeup 10M
Inference and Analysis 15M
Execution and Results 10M
Viva-voce/MCQ’s 10M
B) Draw histogram for the following data: weights= 9, 13, 21, 8, 36, 22, 12, 41, 31,
33, 19.
a. Without using xlim and ylim parameters.
b. Using xlim and ylim parameters.
4. The bag prices is an integer optimization task , that mimics the decision of setting prices
for items produced in a bag factory. The factory produces up to five different bags, with a
unit cost of u. Where ui is the cost for manufacturing product i. The manager at the factory
needs to decide the selling prices for each bag (xi, in $), within the range $1 to $1,000, in
order to maximize the expected profit related with the next production cycle.
Where,
𝑖=1 ∑𝑑 𝑥𝑖 ∗ 𝑠𝑎𝑙𝑒𝑠 (𝑥𝑖) −𝑐𝑜𝑠𝑡(𝑥 𝑖)
F(x)=
5. Write an R program to find the minimum value (i.e. The origin point) in Sphere and
Rastrigin using Monte Carlo search technique.
Where,
F(x)=∑𝑑 𝑖=1 x2(for Sphere)
8. Implement an R code for simulated annealing which includes three search parameters –
the maximum number of iterations, initial temperature and the number of evaluations at
each temperature. Also generate new search points. Take 8 dimensions, and control list
which contains maximum number of iterations value as 10 and the initial temperature
value as which performs minimization and gives the optimal value.