Forum Discussion
FICO
4 years agoCommunity Manager
Using callback to re-set (modify) control in middle on B&B search [Using Python]
Hello Xpress Experts, I am wondering if any of you could help me with this callback in Python. I want to quickly find an integer solution during the BB, and then, switch to the default BB search se...
FICO
4 years agoCommunity Manager
Not an answer to your question but would it not be much simpler to
- Set your special parameters
- Set the integer solution limit (MAXMIPSOL) to 1
- Call solve()
- Reset your special parameters and reset the integer solution limit to its default.
- Call solve()
This should give you the same effect but without any callbacks.
Related Content
Related Content
Are preintsol callbacks threadsafe?
The optimizer documentation states "When the MIP callbacks are called they are MUTEX protected to allow non threadsafe user callbacks." In my Java code for one-tree Benders, if I specify a single thr...9 months agoPlace FICO® Xpress Optimization ForumFICO® Xpress Optimization Forum3 unread comments3 unread3Views0likes3CommentsVariable 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...9 months agoPlace FICO® Xpress Optimization ForumFICO® Xpress Optimization Forum4 unread comments4 unread1View0likes4CommentsVariable 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...8 months agoPlace FICO® Xpress Optimization ForumFICO® Xpress Optimization Forum6 unread comments6 unread6Views0likes6Comments