example_solver {highs} | R Documentation |
Create a HiGHS Solver Object
Description
Creates and solves an example optimization model using the HiGHS solver. This is a convenience wrapper that combines model creation and solving in a single function call.
Usage
example_solver(op_type = c("LP", "MILP", "QP"))
Arguments
op_type |
Character string specifying the type of optimization model. Must be one of "LP", "MILP", or "QP". |
Value
An object of class "highs_solver"
.
Examples
solver <- example_solver("LP")
solver <- example_solver("MILP")
solver <- example_solver("QP")
[Package highs version 1.10.0-2 Index]