Taking part in the boundary calculation from the function
이전 댓글 표시
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);
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Solver Outputs and Iterative Display에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!