Boolean Variables

Aug 25, 2015 at 1: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.
Aug 30, 2015 at 6: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).