MCPcopy Create free account
hub / github.com/cvxpy/cvxpy / copy

Method copy

cvxpy/reductions/solution.py:85–90  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

83 self.attr = attr
84
85 def copy(self) -> "Solution":
86 return Solution(self.status,
87 self.opt_val,
88 self.primal_vars,
89 self.dual_vars,
90 self.attr)
91
92 def __str__(self) -> str:
93 return "Solution(status=%s, opt_val=%s, primal_vars=%s, dual_vars=%s, attr=%s)" % (

Callers 15

applyMethod · 0.45
replace_zero_sizedFunction · 0.45
_sparse_constant_keyFunction · 0.45
canonicalize_exprMethod · 0.45
canonicalize_exprMethod · 0.45
invertMethod · 0.45
canonicalize_exprMethod · 0.45
psd_canonFunction · 0.45
separable_canonFunction · 0.45
joinFunction · 0.45
equality_canonFunction · 0.45

Calls 1

SolutionClass · 0.85

Tested by

no test coverage detected