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

Method parameters

cvxpy/problems/problem.py:470–481  ·  view source on GitHub ↗

Accessor method for parameters. Returns ------- list of :class:`~cvxpy.expressions.constants.parameter.Parameter` A list of the parameters in the problem.

(self)

Source from the content-addressed store, hash-verified

468
469 @perf.compute_once
470 def parameters(self):
471 """Accessor method for parameters.
472
473 Returns
474 -------
475 list of :class:`~cvxpy.expressions.constants.parameter.Parameter`
476 A list of the parameters in the problem.
477 """
478 params = self.objective.parameters()
479 for constr in self.constraints:
480 params += constr.parameters()
481 return unique_list(params)
482
483 @perf.compute_once
484 def constants(self) -> list[Constant]:

Calls 1

unique_listFunction · 0.90