how to set proper constraints for Nonlinear Optimisation solvers
Show older comments
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!
Accepted Answer
More Answers (0)
Categories
Find more on Solver Outputs and Iterative Display in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!