Forum Discussion
FICO
6 years agoCommunity Manager
xpress variable type
Hi, I set vartype=xp.binary when I create the xpress variables, but some of the results have values such as 0.13333, 0.36667, 0.5.
I found that this was caused by one of the constraints. When I disabled most of the constraints, the values are all binary. Then, I enabled the constraint one by one and found one set of constraints that is causing the value to be non-binary.
Has anyone observed this before? Any suggestion on how to enforce the variable value to be binary?
Thanks!
1 Reply
- FICOCommunity Manager
Hello,
this should not happen and I can't create an example to reproduce that. Can you confirm that: 1) the solution comes from a call to p.getSolution(), where p is the problem object; 2) the problem is feasible when adding that set of constraints?
Thanks,
Pietro

