Learn R Programming

CVXR (version 1.9.1)

Maximize: Create a Maximization Objective

Description

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

Usage

Maximize(expr)

Value

A Maximize object.

Arguments

expr

A CVXR expression or numeric value to maximize.

See Also

Minimize, Problem

Examples

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

Run the code above in your browser using DataLab