get_problem_data function

Get Problem Data

Get Problem Data

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

get_problem_data(object, solver, gp)

Arguments

  • 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.

Returns

A list containing the data for the solver, the solving chain for the problem, and the inverse data needed to invert the solution.

Examples

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"]]
  • Maintainer: Anqi Fu
  • License: Apache License 2.0 | file LICENSE
  • Last published: 2024-11-07