Forum Discussion
FICO
10 years agoCommunity Manager
Implementing Lazy Constraints (C++)
I'm implementing a B&Cut algorithm with BCL - C++ using the cut manager callback. Also I have to implement Lazy Constraints, that is, after each integer solution, search the violated constraints and...
FICO
10 years agoCommunity Manager
With BCL you can directly use the callback functions of the Xpress Optimizer library; for BCL C++ these would be the C library functions of the solver as shown, for example, in https://examples.xpress.fico.com/example.pl?id=bcl_cpp_18_6
The subroutines 'rejectintsol' and 'setcbcutoff' that I have mentioned earlier are auxiliary routines for working with Optimizer callbacks in Mosel; if you are directly using the C functions, all information is passed back via arguments of the corresponding callback function. Please take a look at the documentation of 'XPRSsetcbpreintsol' in the Xpress-Optimizer Manual for a description of its arguments. Its use is similar to some of the other node callback functions shown in https://examples.xpress.fico.com/example.pl?id=optimizer_c_1
Related Content
Related Content
- 34Views0likes1Comment
Implementation of B&B with python
HI! I'm trying to implement a branc-and-bound solver by using the python interface of Xpress. I implemented a MINLP model, and I am trying to solve the linearization with the B&B algorithm. Even t...8 months agoPlace FICO® Xpress Optimization ForumFICO® Xpress Optimization Forum4 unread comments4 unread27Views0likes4CommentsImplementing Lazy Constraints (Java)
We are interested in using Lazy Constraints in Xpress (Java) to implement a TSP algorithm. In particular, after each integer solution is generated, we would like to search for violated constraints an...10 years agoPlace FICO® Xpress Optimization ForumFICO® Xpress Optimization Forum6 unread comments6 unread13Views0likes6Comments