pywraplp.Solver
deep copy
#3960
Replies: 1 comment
-
Just answered on stack overflow. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What language and solver does this apply to?
Python
Describe the problem you are trying to solve.
I want to copy a
Solver
object and in the copy, add a variable to each constraint.These two features apply:
Describe the solution you'd like
I'd like something like
solver.copy()
to copy the solver.I'd like an easy way to add variables to an existing constraint (if this does not exist already, which I haven't been able to accomplish)
Describe alternatives you've considered
Not sure I have alternatives for this
Additional context
I want to add MIP model debugging by the process described in the code
asked on Stack Overflow: https://stackoverflow.com/questions/77348474/ortools-mip-solver-copy-pywraplp-solver-copy
Beta Was this translation helpful? Give feedback.
All reactions