Learn R Programming

CVXR (version 0.99-7)

get_problem_data: Get Problem Data

Description

Get the problem data used in the call to the solver.

Usage

get_problem_data(object, solver)

Arguments

object

A '>Problem object.

solver

A string indicating the solver that the problem data is for. Call installed_solvers() to see all available.

Value

A list of arguments for the solver.

Examples

Run this code
# NOT RUN {
a <- Variable(name = "a")
data <- get_problem_data(Problem(Maximize(exp(a) + 2)), "SCS")
data[["dims"]]
data[["c"]]
data[["A"]]

x <- Variable(2, name = "x")
data <- get_problem_data(Problem(Minimize(p_norm(x) + 3)), "ECOS")
data[["dims"]]
data[["c"]]
data[["A"]]
data[["G"]]
# }

Run the code above in your browser using DataLab