Converting a PySCIPOpt model to Ecole doesn't seem to work #357
-
I've been trying to solve a simple set cover problem using Ecole with the intention of scaling it up and solving it using the GCNN based branching mechanism (https://github.com/ds4dm/ecole/blob/master/examples/branching-imitation/example.ipynb) Here is the definition in PySCIPOpt
Calling However, when I try to wrap it using Ecole, it does not work and the environment reset return done = True.
Solving it using the steps defined in the branching imitation notebook returns the following :
Is there something I'm doing wrong? (This works perfectly well with the inbuilt set cover instance generator though, but I would like to pass in my own constraints) Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Have you solved this problem? I meet the same issue |
Beta Was this translation helpful? Give feedback.
If I remember right, the way it expects the objective was a little different. Here is some code I used that might work (sorry I've moved away from working on this so don't exactly remember if this is how I worked around it) :