optimization problem using optim prob in matlab

2 visualizzazioni (ultimi 30 giorni)
How can I restrict the optim problem at matlab to produce integers or binary values only? I tried to use binary() operator but it didn't accept it ?
  1 Commento
Vladimir Sovkov
Vladimir Sovkov il 1 Dic 2019
When you create an optimization variable with the function optimvar of the Optimization Toolbox, you have an option to choose its type as integer and declair its boundaries.

Accedi per commentare.

Risposte (1)

Dhananjay Kumar
Dhananjay Kumar il 4 Dic 2019
While using optimvar to create variables which would be used in optimization problem constraints, you can specify 'Type' as 'integer' to achieve your purpose.

Categorie

Scopri di più su Problem-Based Optimization Setup in Help Center e File Exchange

Prodotti


Release

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by