#20414: Add copy/__copy__ methods to CVXOPT, PPL, InteractiveLP backends, and
__deepcopy__ to MixedIntegerLinearProgram and backends
-------------------------------------+-------------------------------------
       Reporter:  mkoeppe            |        Owner:
           Type:  defect             |       Status:  needs_review
       Priority:  major              |    Milestone:  sage-7.2
      Component:  numerical          |   Resolution:
       Keywords:  lp                 |    Merged in:
        Authors:  Matthias Koeppe    |    Reviewers:
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  u/mkoeppe/add_copy___copy___methods_to_cvxopt__ppl__interactivelp_backends|  
3117b01e595febc8fc6de90eeb3cf19a7e97c7bd
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by mkoeppe):

 Replying to [comment:13 dimpase]:
 > was there something about variables that are (not) copied?

 Before this patch, deepcopy didn't even copy the backend of a MIP.
 Now it does, simply by doing the same as copy.

 Both copy and deepcopy have weird semantics in relation to the
 MIPVariables in a problems -- because a MIP does not have an API to gain
 access to its variables; and trying to use the old MIPVariables with the
 copy is questionable and definitely broken if one creates new components
 of this variable, see #15159, #19523. Fixing this would require a
 redesign; a possible stopgap would be to stop all MIPVariables from
 creating new components when they have been subjected to copy().

--
Ticket URL: <http://trac.sagemath.org/ticket/20414#comment:14>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to