Get Problem Data
Get the problem data used in the call to the solver.
get_problem_data(object, solver, gp)
object
: A Problem object.solver
: A string indicating the solver that the problem data is for. Call installed_solvers()
to see all available.gp
: (Optional) A logical value indicating whether the problem is a geometric program.A list containing the data for the solver, the solving chain for the problem, and the inverse data needed to invert the solution.
a <- Variable(name = "a") data <- get_problem_data(Problem(Minimize(exp(a) + 2)), "SCS")[[1]] data[["dims"]] data[["c"]] data[["A"]] x <- Variable(2, name = "x") data <- get_problem_data(Problem(Minimize(p_norm(x) + 3)), "ECOS")[[1]] data[["dims"]] data[["c"]] data[["A"]] data[["G"]]