Using SCIP solver in primal task #21
-
|
In the primal task environment, the switch SCIP heuristics are turned off. Does this mean we cannot use SCIP's |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Hi @kushaltirumala , You are not allowed to use Note that you can, however, make a copy of the model using PySCIPOpt as follows: This copy is a perfectly valid observation. You can then use this copy in whichever way you want within your agent, as this will not change the state of the original model, i.e., the inner state of the environment. PS: note that making such a copy of the model can be costly. Maybe you want to do it only once the first time your primal agent is called. Hope this helps, Best, |
Beta Was this translation helpful? Give feedback.
Hi @kushaltirumala ,
You are not allowed to use
model.optimize()in your agent, as this would change the state of the model. Your agent is only allowed to extract information from SCIP (within your observation function), and then return an action (variable assignments in the primal task).Note that you can, however, make a copy of the model using PySCIPOpt as follows:
This copy is a perfectly valid observation. You can then use this copy in whichever way you want within your agent, as this will not change the state of the original model, i.e., the inner state of the environment.
PS: note that making such a…