Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print incumbent solutions #4

Open
lcpz opened this issue Jun 16, 2021 · 1 comment
Open

Print incumbent solutions #4

lcpz opened this issue Jun 16, 2021 · 1 comment

Comments

@lcpz
Copy link

lcpz commented Jun 16, 2021

Hi Johnathan, thank you for this repo.

I would like to print each feasible solution found by CPLEX, until the optimal one. Generally, it can be done by implementing the incumbent callback, as demonstrated by the examples mipex4.c and ilomipex4.cpp that comes with CPLEX.

How can I do it in rplex?

@emallson
Copy link
Owner

you will need to implement support for the CPXcallbacksetfunc method (https://www.ibm.com/docs/en/icos/20.1.0?topic=callbacks-cpxxcallbacksetfunc-cpxcallbacksetfunc). I no longer have access to a copy of CPLEX so I can't implement this (though I might be able to get a new copy for library development. Will need to check).

make sure you check #3 for an important caveat about the macros used in this library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants