how to write objective function for 4 variables
Mostrar comentarios más antiguos
Hi All i want to write a objective function for 4 variables and i want all 4 variables value in output, how to write it please help me.
Thank you.
1 comentario
Yash
el 8 de Jul. de 2012
post here the type of function and variables
Respuestas (1)
Walter Roberson
el 8 de Jul. de 2012
function y = myObjective(x)
first_variable = x(1);
second_variable = x(2);
third_variable = x(3);
fourth_variable = x(4);
...
y = ....
end
Then any of the optimization functions will report the vector of four values that optimized the objective.
Categorías
Más información sobre Problem-Based Optimization Setup en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!