- ga -- supports anonymous functions; supports nonlinear constraints
- abusing patternsearch() -- supports anonymous functions; supports nonlinear constraints
- intlinprog() -- supports matrix objectives only; does not support nonlinear
- surrogate optimization -- supports anonymous functions; supports nonlinear constraints; https://www.mathworks.com/help/gads/surrogateopt.html
Integer based optimization Solver with non-linear constraints
3 次查看(过去 30 天)
显示 更早的评论
I want to optimize the problem that contains design parameters. And those optimized design parameters needs to be integers. Moreover my problem contains non linear constraints also. What could be the best free solver in MATLAB that I can use?
0 个评论
采纳的回答
Walter Roberson
2021-6-2
fmincon() is never suitable for discrete parameters.
If you have mixed integer work that has a scalar output then your options are:
In order to use integer constraints with ga(), you have to write your own functions to handle cross-over and mutation and initial population -- functions that just happen to obey the required integer constraints. The more obvious integer constraints for ga() are incompatible with providing nonlinear contraints.
Surrogate optimization provides obvious integer constraints, but does not provide obvious nonlinear constraints. However, instead of your objective function returning a numeric scalar, it can instead return a struct with a particular form, and surrogate optimization will follow the nonlinear constraints expressed in the structure.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Nonlinear Optimization 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!