Skip to content

Conversation

@henriquebecker91
Copy link
Contributor

There is no plan to support copying the underlying solver and, if this is not done, then the object returned by deepcopy does not behave as would be expected (both copy and original edit the same underlying model).
This has been a source of frustration before:
https://discourse.julialang.org/t/jump-gurobi-bug-value-of-variable-in-solved-model-changes-after-deleting-another-variable/29619/7
https://discourse.julialang.org/t/strange-behavior-with-deepcopy/23342/3
https://discourse.julialang.org/t/workaround-for-modifying-coefficients-in-constraints-in-jump/27123/9

…t copying the underlying solver and, if this is not done, then deepcopy does not behave as would be expected).
…or Model, not AbstractModel. Added more info to the error message.
@codecov
Copy link

codecov bot commented Oct 11, 2019

Codecov Report

Merging #2079 into master will decrease coverage by 0.02%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2079      +/-   ##
==========================================
- Coverage    91.1%   91.08%   -0.03%     
==========================================
  Files          38       38              
  Lines        4318     4319       +1     
==========================================
  Hits         3934     3934              
- Misses        384      385       +1
Impacted Files Coverage Δ
src/copy.jl 90.47% <0%> (-4.53%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 487b993...1d613a6. Read the comment docs.

@mlubin mlubin merged commit 1ac0d60 into jump-dev:master Oct 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants