powered by
Specifies that the objective expression should be maximized. The expression must be concave and scalar for a DCP-compliant problem.
Maximize(expr)
A Maximize object.
Maximize
A CVXR expression or numeric value to maximize.
Minimize, Problem
Minimize
Problem
x <- Variable() obj <- Maximize(-x^2 + 1)
Run the code above in your browser using DataLab