Borrar filtros
Borrar filtros

optimization problem using optim prob in matlab

1 visualización (últimos 30 días)
Omer Hassan
Omer Hassan el 1 de Dic. de 2019
Respondida: Dhananjay Kumar el 4 de Dic. de 2019
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
Vladimir Sovkov
Vladimir Sovkov el 1 de Dic. de 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.

Iniciar sesión para comentar.

Respuestas (1)

Dhananjay Kumar
Dhananjay Kumar el 4 de Dic. de 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.


Más información sobre Problem-Based Optimization Setup en Help Center y File Exchange.





Community Treasure Hunt

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

Start Hunting!

Translated by