Use MATLAB to write code to solve the problem
Mostrar comentarios más antiguos
find min f(x1,x2,x3,x4) = 0.1x(1)^2+0.4x(2)^2+0.5x(3)^2+0.2x(4)^2+x(1)+2X(2)+3x(3)+x(4)+6
Find min f(x1,x2,x3,x4) and the corresponding values of x1, x2, x3, x4 subject to
2x1 + x2 + 2x3 + x4 = 5
x1 + 2x2 + 4x3 + 5x4 ≤ −21
−18 ≤ x1 ≤ 8
−20 ≤ x2 ≤ 16
−14 ≤ x3 ≤ 13
−15 ≤ x4 ≤ 5
4 comentarios
KSSV
el 17 de Sept. de 2018
Read about fmincon
Tran Paul
el 17 de Sept. de 2018
Aquatris
el 17 de Sept. de 2018
There is no right or wrong way of choosing initial point, as long as initial point satisfies the constraints. One method is to solve the problem using different initial points that are randomly chosen and picking the solution that gives you the minimum function value.
Otherwise you can consider using global optimization techniques, such as genetic algorithm and particle swarm optimization.
Tran Paul
el 17 de Sept. de 2018
Respuestas (1)
SYED ABOU ILTAF HUSSAIN
el 17 de Sept. de 2018
1 voto
here is the code for your problem
1 comentario
Tran Paul
el 17 de Sept. de 2018
Categorías
Más información sobre Direct Search en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!