Definin integer variables in fmincon optimization

조회 수: 16 (최근 30일)
Erdem Erdem
Erdem Erdem 2016년 10월 18일
답변: Walter Roberson 2016년 10월 18일
Hello, I am working on optimization toolbox of Matlab. We have nonlinear constraints and a minimization function. We have 8 variables to optimize however three of these variables are integer and how can I set these variables as integer or how can I put a constraint related with that point. I am currently using fmincon solver

답변 (1개)

Walter Roberson
Walter Roberson 2016년 10월 18일
nonlcon parameter and have the routine check for integer
This could end up being entirely impractical
Rounding the values before use would probably be more efficient, but might bog down on the final minimization.

카테고리

Help CenterFile Exchange에서 Solver Outputs and Iterative Display에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by