Returns the maximum number of dimensions of any argument in the problem.
(self)
| 300 | |
| 301 | @perf.compute_once |
| 302 | def _max_ndim(self) -> int: |
| 303 | """ |
| 304 | Returns the maximum number of dimensions of any argument in the problem. |
| 305 | """ |
| 306 | return max(expr._max_ndim() for expr in self.constraints + [self.objective.expr]) |
| 307 | |
| 308 | @perf.compute_once |
| 309 | def _supports_cpp(self) -> bool: |