Integer based optimization Solver with non-linear constraints

5 次查看(过去 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?

采纳的回答

Walter Roberson
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:
  • 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
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 CenterFile Exchange 中查找有关 Surrogate Optimization 的更多信息

产品


版本

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by