Skip to content

Extracting local primal solution at the current node #279

Answered by gasse
cwfparsonson asked this question in Questions
Discussion options

You must be logged in to vote

Hi @cwfparsonson ,

I think you should be able to do what you want by registering an event handler
https://www.scipopt.org/doc/html/EVENT.php

There are a few events which will get triggered when a primal solution is found (SCIP_EVENTTYPE_POORSOLFOUND, SCIP_EVENTTYPE_BESTSOLFOUND):
https://www.scipopt.org/doc/html/type__event_8h.php

The Pyscipopt API is pretty straightforward. See here:
https://github.com/scipopt/PySCIPOpt/blob/master/tests/test_event.py

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@cwfparsonson
Comment options

Comment options

You must be logged in to vote
1 reply
@cwfparsonson
Comment options

Answer selected by cwfparsonson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants