Forum Discussion
FICO
6 years agoCommunity Manager
Variables Defined as Integers Assume Float Values after Optimization
Hello, I am trying to solve a non-linear problem using Xpress-NLP SLP in Python interface. Some variables that I explicitly define to be integers (via myvar = xp.var(..., vartype=xp.integer)), are re...
FICO
6 years agoCommunity Manager
Hello. The value 3 of xslp_nlpstatus is equivalent to nlp_locally_infeasible (try checking p.attributes.xslp_nlpstatus == xpress.nlp_locally_infeasible). This happens when the problem cannot be declared globally infeasible (i.e. there is no guarantee that the problem has no solution) but the search could not find any feasible solution.
The solution you obtained and reported in this thread is therefore unreliable. I tried running your code (with some added declarations) and indeed the result was xslp_nlpstatus == 3. The current poing indeed cannot be taken as feasible for any constraint, including integrality constraints.

