Boolean Variables

Aug 25, 2015 at 12:00 AM
Hello, is there any way of setting the variables to be booleans or integers?
I understand that you can constraint them to be in the range [0,1], but they can still get a decimal value, which is not what i want.
Coordinator
Aug 30, 2015 at 5:32 PM
That is unfortunately not possible. The kind of optimization implemented in this library is smooth function optimization. What you're asking for is discrete (or integer) optimization. That's a completely different game, requiring completely different mathematics and numerical techniques. This is also the reason that object support for that kind of stuff is not implemented (e.g. Boolean data types).