Closed xunzhang closed 2 years ago
Looks reasonable, though I have to wonder why you apparently manually edited the generated file instead of running SWIG (otherwise you would not have made a typo).
The patch also needs to be rebased against current master.
I am going to look into cleaning this up so that it can be merged.
I rebased your pull request so that it can be merged. I also actually ran SWIG to regenerate the generated files.
Another force-push, fixed "you can adding" to "you can add" in a comment.
Thank you!
This is quite useful in real scenarios, that decouple the definition of the objective function and the variables. This pull request adding interface
scip.changeVarObj
to support that, please check the usage below.Usage: