Learn R Programming

CVXR (version 0.99-7)

Solver-class: The Solver class.

Description

This virtual class represents the generic interface for a solver.

Usage

# S4 method for Solver
validate_solver(solver, constraints)

# S4 method for Solver nonlin_constr(solver)

# S4 method for Solver Solver.solve(solver, objective, constraints, cached_data, warm_start, verbose, ...)

# S4 method for Solver format_results(solver, results_dict, data, cached_data)

Arguments

solver

A '>Solver object.

constraints

A list of canonicalized constraints.

objective

A list representing the canonicalized objective.

cached_data

A list mapping solver name to cached problem data.

warm_start

A logical value indicating whether the previous solver result should be used to warm start.

verbose

A logical value indicating whether to print solver output.

...

Additional arguments to the solver.

results_dict

A list containing the solver output.

data

A list containing information about the problem.

Methods (by generic)

  • validate_solver: Verify the solver can solve the problem.

  • nonlin_constr: A logical value indicating whether nonlinear constraints are needed.

  • Solver.solve: Call the solver on the canonicalized problem.

  • format_results: Convert raw solver output into standard list of results.