RMPSolverInterface: An interface R6 class for a solver

Description Methods

Description

You can also use any other data structure that implements the same methods.

Methods

Public methods


Method add_variable()

Usage
RMPSolverInterface$add_variable(type, lower_bound = -Inf, upper_bound = Inf)

Method add_linear_constraint()

Usage
RMPSolverInterface$add_linear_constraint(linear_expr, type, rhs)

Method set_linear_objective()

Usage
RMPSolverInterface$set_linear_objective(linear_expr, sense)

Method add_quadratic_constraint()

Usage
RMPSolverInterface$add_quadratic_constraint(quadratic_expr, type, rhs)

Method set_quadratic_objective()

Usage
RMPSolverInterface$set_quadratic_objective(quadratic_expr, sense)

Method set_variable_lb()

Usage
RMPSolverInterface$set_variable_lb(variable_index, value)

Method set_variable_ub()

Usage
RMPSolverInterface$set_variable_ub(variable_index, value)

Method nvars()

Usage
RMPSolverInterface$nvars()

Method nconstraints()

Usage
RMPSolverInterface$nconstraints()

Method optimize()

Usage
RMPSolverInterface$optimize()

Method get_variable_value()

Usage
RMPSolverInterface$get_variable_value(var_index)

Method get_variable_dual()

Usage
RMPSolverInterface$get_variable_dual(var_index)

Method get_row_dual()

Usage
RMPSolverInterface$get_row_dual(row_index)

Method set_variable_value()

Usage
RMPSolverInterface$set_variable_value(var_index, value)

Method get_objective_value()

Usage
RMPSolverInterface$get_objective_value()

Method get_termination_status()

Usage
RMPSolverInterface$get_termination_status()

Method get_termination_message()

Usage
RMPSolverInterface$get_termination_message()

Method clone()

The objects of this class are cloneable with this method.

Usage
RMPSolverInterface$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.


dirkschumacher/rmpk documentation built on April 6, 2020, 6:36 a.m.