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

Does docplex have the similar function like the RINS in cplex? #72

Open
StupidI opened this issue Jun 5, 2022 · 4 comments
Open

Does docplex have the similar function like the RINS in cplex? #72

StupidI opened this issue Jun 5, 2022 · 4 comments

Comments

@StupidI
Copy link

StupidI commented Jun 5, 2022

I have looked up the reference manual, but can't search anything about RINS, only see an example of heuristic solution. Could anybody know it give me a hint?

@PhilippeCouronne
Copy link

The RINS heuristic is controlled in CPLEX via parameters, see
https://www.ibm.com/docs/en/icos/22.1.0?topic=heuristics-relaxation-induced-neighborhood-search-rins-heuristic
for details.
By default, CPLEX decides automatically whether to use it and with what frequency.

Given an instance of docplex.mp.model.Model class, mdl, , you can access its parameters by the parameters attribute.

Thus

mdl.parameters.mip.strategy.rinsheur = -1

turns off the RINHS heuristic.
mdl.parameters.mip.strategy.rinsheur = 100

sets the RINS heuristic frequency to 100

@StupidI
Copy link
Author

StupidI commented Jun 6, 2022

The RINS heuristic is controlled in CPLEX via parameters, see https://www.ibm.com/docs/en/icos/22.1.0?topic=heuristics-relaxation-induced-neighborhood-search-rins-heuristic for details. By default, CPLEX decides automatically whether to use it and with what frequency.

Given an instance of docplex.mp.model.Model class, mdl, , you can access its parameters by the parameters attribute.

Thus

mdl.parameters.mip.strategy.rinsheur = -1

turns off the RINHS heuristic. mdl.parameters.mip.strategy.rinsheur = 100

sets the RINS heuristic frequency to 100

ok, thanks you a lot!
plus: Are the meanings of all the different parameter values in docplex the same as in cplex? I've used "help(mdl.parameters.mip.strategy.rinsheur)" , but it seems not to show the imformation about explanation of the parameter or the acceptable range.

@vberaudi
Copy link
Member

vberaudi commented Jun 6, 2022

<<Are the meanings of all the different parameter values in docplex the same as in cplex?>>
Yes, the hierarchy is the same as in the cplex package. The documentation however is only in 1 location.

@StupidI
Copy link
Author

StupidI commented Jun 7, 2022

<<Are the meanings of all the different parameter values in docplex the same as in cplex?>> Yes, the hierarchy is the same as in the cplex package. The documentation however is only in 1 location.

oh, thank you!

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

3 participants