Skip to content
Discussion options

You must be logged in to vote

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:

m = model.as_pyscipopt()
m_copy = pyscipopt.Model(sourceModel=m, globalcopy=True)

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…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kushaltirumala
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants