Skip to content

Primal task, trying to get simple baseline working #31

Answered by gasse
kushaltirumala asked this question in Q&A
Discussion options

You must be logged in to vote

Dear all,

I figured the issue, the SCIPcopy() method actually copies the transformed problem from the source SCIP instance into the original problem of the target SCIP instance. So it suffices to extract solution values for the original variables in the copies instance and then index those values with the var_ids (variable indexes in the transformed problem for the environment's SCIP model, which is equivalent to variable indexes in the original problem for the agent's copied SCIP model). The following code seems to work. I think this baseline might be valuable to other participants as well, so maybe what we'll do now is polish it a little and then expose it to other participants by distr…

Replies: 4 comments 22 replies

Comment options

You must be logged in to vote
4 replies
@gasse
Comment options

@kushaltirumala
Comment options

@th-yoon
Comment options

@th-yoon
Comment options

Comment options

You must be logged in to vote
3 replies
@th-yoon
Comment options

@zhejiangzhoulei
Comment options

@kushaltirumala
Comment options

Comment options

You must be logged in to vote
1 reply
@kushaltirumala
Comment options

Comment options

You must be logged in to vote
14 replies
@harshadkhadilkar
Comment options

@harshadkhadilkar
Comment options

@gasse
Comment options

@harshadkhadilkar
Comment options

@gasse
Comment options

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
6 participants