[SCIP] how to display the LP at the best node after the problem is solved
Benjamin Müller
benjamin.mueller at zib.de
Tue Sep 11 12:25:08 CEST 2018
Dear Myroslav,
you could implement the SCIP_DECL_CONSPRINT callback of your constraint
handler and then write/display your problem in the cip format with
SCIPwriteTransProblem()/SCIPprintTransProblem() in an event handler that
catches the SCIP_EVENTTYPE_BESTSOLFOUND event. Please have a look at
scip/examples/Eventhdlr/src/event_bestsol.c for an example.
Best,
Benny
On 09/06/2018 05:30 PM, myroslav wrote:
> Dear SCIP community,
>
>
> I have a branch and price algorithm and I am adding some constraints
> when doing branching at a node. I wondered how I could
> print/view/display the problem together with its constraints(including
> the branching constraints) at the node where SCIP found the best
> solution. I tried "display transproblem" in the interactive shell after
> the problem was solved but I am not sure where the problem displayed is
> taken from, because it does not seem to contain all the constraints
> corresponding to the branching decisions that should have been made.
>
>
> Thanks,
>
> Myroslav
>
> _______________________________________________
> Scip mailing list
> Scip at zib.de
> https://listserv.zib.de/mailman/listinfo/scip
--
______________________________
Benjamin Müller
Zuse Institute Berlin
Takustr. 7, 14195 Berlin
benjamin.mueller at zib.de
+49 30 841 85-195
More information about the Scip
mailing list