Forum Discussion
FICO
2 years agoCommunity Manager
Best way to specify lower bound in xprsmip when only some variables need lower bound
I am using xprsmip with a combination of continuous and binary variables. The continuous variables need a lower bound of 0. If all variables were binary, I could set lb = [], but that is not the cas...
FICO
2 years agoCommunity Manager
The xprsmip function allows passing a single scalar in case all variables have the same lower bound (see the documentation). So passing lb=0 should do the trick and also seems the most efficient thing to do - even though it duplicates information for binary variables.
Setting a lower of 0 for binaries should not hurt performance in any way. I am not clear why you would set a lower bound of -inf for binary variables?
Related Content
Related Content
Variable names in callback (Java API)
I construct a cut in a preintsol callback using variables from the model containing the callback. When constructing the model, I give the variables names (using withName(...)) and store them in a vec...10 months agoPlace FICO® Xpress Optimization ForumFICO® Xpress Optimization Forum4 unread comments4 unread18Views0likes4CommentsVariable object mapping issue in Python Callbacks with Presolve enabled
Hi, I am implementing a Branch-and-Cut algorithm using the Xpress Python interface. I have structured my code as a class where I create variables (using xp.var) and store them in a dictionary attrib...9 months agoPlace FICO® Xpress Optimization ForumFICO® Xpress Optimization Forum6 unread comments6 unread38Views0likes6Commentsxpress 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 disa...6 years agoPlace FICO® Xpress Optimization ForumFICO® Xpress Optimization Forum1 unread comment1 unread6Views0likes1Comment