Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set heuristic emphasis to aggressive in pyscipopt

Tags:

python

scip

I would like to make scip use heuristics more aggressively via pyscipopt. There is

model.setRealParam('limits/gap', 0.01)

and I am looking for something similar. To look at all parameters it is suggested to use

model.writeParams('default.set', onlychanged=False)

but in the resulting default.set a search for "emphasis" only leads to some precedence options. (How) Can I specify aggressive heuristics in pyscipopt? Thanks!

like image 499
Tim Varelmann Avatar asked Nov 19 '25 07:11

Tim Varelmann


1 Answers

You have the option to use:

model.setHeuristics(SCIP_PARAMSETTING.AGGRESSIVE)

The emphasis settings in SCIP are not just one setting, but each emphasis setting is a collection of individual parameters.

like image 70
Leon Avatar answered Nov 21 '25 21:11

Leon



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!