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
Ah, I see. Setting lb=-inf for binaries won't help. Internally, the Xpress matlab connector has to call a C function that in turn requires passing a lower bound for every variable. Given that a dense array is required anyway, it should not hurt to pass dense information to the function. Passing lb=0 could allow the code to take some shortcuts, though: see the comments about passing NULL as lower bound to the C function.
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