Forum Discussion
FICO
9 years agoCommunity Manager
TSP Subtour-Elimination Callback Class
I am new to Xpress and trying to implement a simple TSP instance using BCL Java to get myself up to speed. I have done this in Cplex before using the cut callbacks, which work fine for adding the sub...
FICO
9 years agoCommunity Manager
Thanks a bunch for your response. In the example f5tour.mos, my understanding is that it re-solves the whole problem from scratch after adding each subtour cut. If so, is there a way to implement do this in Mosel via a callback method that adds subtour cuts as necessary within the B&B tree?
As for BCL, I made the changes that you suggested but it still does not like the cut I am adding. Any idea what else might be going wrong here?
Code attached.
Related Content
Related Content
Implementing the TSP with DFJ subtour elimination constraints
To learn how callbacks work in Xpress, based on the answer by Daniel Junglas in this question: https://community.fico.com/s/question/0D54W00008P73MsSAJ/lazy-cut-callback-in-java, I've been experiment...5 years agoPlace FICO® Xpress Optimization ForumFICO® Xpress Optimization Forum3 unread comments3 unread0Views0likes3CommentsAre 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 unread1View0likes4Comments