how to set proper constraints for Nonlinear Optimisation solvers
이전 댓글 표시
Hi,
I am looking forward to minimize the following function:
function f = alfafun2(alfa)
global S H LR;
f=10.^(log(S)-log(1/LR*alfa)+H*alfa);
end
the provided Data has the following dimensions:
S<474x59>
H<474x474>
LR <scalar>
alfa<474x59>
so far i use the lsqnonlin in the optimtool, because it seems it is the only one that can handle a matrix based Output. The problem that arises is, that somehow the solver seems to ignore the constraints that i give for the boundaries and the gradient. For example, the boundaries are set to [1e-7 1e-3] but the output is in [1e-4 1e-2] and the gradient, that was set to a maximum pertuberation of 1e-5 is completely ignored. Does anybody have an idea for setting the constraints more convenienlty or perhaps propose another solver that is more suitable for this problem?
Thanks for the help!
채택된 답변
추가 답변 (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!