Taking part in the boundary calculation from the function
Afficher commentaires plus anciens
Dear All,
I have a question regarding optimization calculations. I would like one of the boundary variables (M) to be calculated from the main function. Specifically, I have a program where I want to determine the value of M using the main function , and I would like to set this value as the upper boundary. Additionally, this value of M will change in each iteration based on the suggested value of x.
function [EFFT]=optimizpandy(x)
A1=x(1);
A2=x(2);
A3=x(3);
M=A1+A2;
EFFT=A1+A2^2+A3;
end
x0=[0.0019998 0.023 0.0019998 ];
lb=[0.001 0.02 0.001 ];
ub=[0.004 0.08 (M)-0.0001 ];
x= fmincon(@optimizpandy,x0,[],[],[],[],lb,ub);
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Solver Outputs and Iterative Display dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!