| scip_solve | R Documentation |
One-shot interface to the SCIP solver. Formulates and solves:
\min_{x} \; obj' x
subject to constraint rows defined by A, b, sense,
with variable types vtype and bounds lb, ub.
scip_solve(obj, A, b, sense, vtype = "C", lb = 0, ub = Inf, control = list())
obj |
Numeric vector of length |
A |
Constraint matrix ( |
b |
Numeric vector of length |
sense |
Character vector of length |
vtype |
Character; variable types. Either a single value applied to all
variables, or a vector of length |
lb |
Numeric; lower bounds for variables. Single value or vector of
length |
ub |
Numeric; upper bounds for variables. Single value or vector of
length |
control |
A list of solver parameters, typically from |
A named list with components:
Character; solver status (e.g., "optimal", "infeasible", "unbounded").
Numeric; optimal objective value (or NA if no solution).
Numeric vector; primal solution (or NULL if no solution).
Integer; number of solutions found.
Numeric; relative optimality gap.
List with additional solver information (solve_time, iterations, nodes).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.