[SCIP] Missing getState method

Maxime GASSE maxime.gasse at gmail.com
Wed Sep 22 16:19:39 CEST 2021


Hi Diego,

The getState() method is not part of SCIP. We implemented it specifically
for the purpose of learning to branch, in our PySCIPOpt clone here (branch
ml-branching)
https://github.com/ds4dm/PySCIPOpt/tree/ml-branching

In particular:
https://github.com/ds4dm/PySCIPOpt/blob/9b88eddcfe99208e737236d39ccd6c9dd1a9bec4/src/pyscipopt/scip.pyx#L3917

Best,
Maxime

On Wed, Sep 22, 2021, 07:08 Diego Mazzieri <d.mazzio97 at gmail.com> wrote:

> Good afternoon,
> I was wondering why the method getState of Model is no longer available in
> SCIP.
> In order to be more precise, what I am trying to reproduce is the code in
> the extract_state method of this file
> https://github.com/ds4dm/learn2branch/blob/master/utilities.py, but my
> editor is not able to run it because getState is missing. I have also tried
> to use Ecole as the README of the repo suggests, however it has various
> compatibility problems with my university cluster which PySCIPOpt does not
> present, therefore I would prefer to use only the latter.
>
> Hope you can explain to me if the method has been deprecated for some
> reason or moved somewhere else.
>
> Thanks in advance and have a nice day, Diego.
> _______________________________________________
> Scip mailing list
> Scip at zib.de
> https://listserv.zib.de/mailman/listinfo/scip
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.zib.de/pipermail/scip/attachments/20210922/012e779f/attachment.html>


More information about the Scip mailing list