Skip to contents

Specifies that the objective expression should be maximized. The expression must be concave and scalar for a DCP-compliant problem.

Usage

Maximize(expr)

Arguments

expr

A CVXR expression or numeric value to maximize.

Value

A Maximize object.

See also

Examples

x <- Variable()
obj <- Maximize(-x^2 + 1)