Lsqnonlin with nonlinear constraint!
显示 更早的评论
Dear Community, I need to use a nonlinear constraint with the "lsqnonlin" optimization algorithm. To apply the constraint I am using the following procedure. FF = myfunction(pars). In myfunction I use the IF statement as follows: IF "nonlin constraints are respected" then compute FF ELSE FF=10e100 END. In other words, I make the objective function very large if the constraint is not respected, making the algorithm search for other parameters. Since I do not know how the algorithm works, is this a feasible solution? Thanks
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Solver-Based Nonlinear Optimization 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!