optimization problem using optim prob in matlab

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 comentario

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.

Iniciar sesión para comentar.

Respuestas (1)

Dhananjay Kumar
Dhananjay Kumar el 4 de Dic. de 2019

0 votos

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

Categorías

Productos

Versión

R2018a

Etiquetas

Preguntada:

el 1 de Dic. de 2019

Respondida:

el 4 de Dic. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by