Learn R Programming

CVXR (version 0.99-7)

LPSOLVE-class: The LPSOLVE class

Description

This class is an interface for Gnu Linear Programming Toolkit solver

Usage

LPSOLVE()

# S4 method for LPSOLVE lp_capable(solver)

# S4 method for LPSOLVE socp_capable(solver)

# S4 method for LPSOLVE sdp_capable(solver)

# S4 method for LPSOLVE exp_capable(solver)

# S4 method for LPSOLVE mip_capable(solver)

# S4 method for LPSOLVE name(object)

# S4 method for LPSOLVE import_solver(solver)

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

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

Arguments

object, solver

A '>LPSOLVE object.

objective

A list representing the canonicalized objective.

constraints

A list of canonicalized constraints.

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)

  • lp_capable: LPSOLVE can handle linear programs.

  • socp_capable: LPSOLVE can handle second-order cone programs.

  • sdp_capable: LPSOLVE can handle semidefinite programs.

  • exp_capable: LPSOLVE cannot handle exponential cone programs.

  • mip_capable: LPSOLVE cannot handle mixed-integer programs.

  • name: The name of the solver.

  • import_solver: Imports the Rmosek library.

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

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

See Also

the CRAN lpSolveAPI package.