how to set proper constraints for Nonlinear Optimisation solvers
Afficher commentaires plus anciens
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!
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
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!