Learn R Programming

CVXR (version 0.99-7)

GLPK-class: The GLPK class

Description

This class is an interface for Gnu Linear Programming Toolkit solver

Usage

GLPK()

# S4 method for GLPK lp_capable(solver)

# S4 method for GLPK socp_capable(solver)

# S4 method for GLPK sdp_capable(solver)

# S4 method for GLPK exp_capable(solver)

# S4 method for GLPK mip_capable(solver)

# S4 method for GLPK name(object)

# S4 method for GLPK import_solver(solver)

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

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

Arguments

object, solver

A '>GLPK 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: GLPK can handle linear programs.

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

  • sdp_capable: GLPK can handle semidefinite programs.

  • exp_capable: GLPK cannot handle exponential cone programs.

  • mip_capable: GLPK cannot handle mixed-integer programs.

  • name: The name of the solver.

  • import_solver: Imports the Rgpkk library.

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

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

See Also

the Gnu GLKP site.