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

Method constants

cvxpy/transforms/partial_optimize.py:220–223  ·  view source on GitHub ↗

Returns the constants in the problem.

(self)

Source from the content-addressed store, hash-verified

218 return self.args[0].parameters()
219
220 def constants(self) -> list[Constant]:
221 """Returns the constants in the problem.
222 """
223 return self.args[0].constants()
224
225 @property
226 def grad(self):

Calls

no outgoing calls