Accessor method for parameters. Returns ------- list of :class:`~cvxpy.expressions.constants.parameter.Parameter` A list of the parameters in the problem.
(self)
| 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]: |