example_solver | R Documentation |
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.
example_solver(op_type = c("LP", "MILP", "QP"))
op_type |
Character string specifying the type of optimization model. Must be one of "LP", "MILP", or "QP". |
An object of class "highs_solver"
.
solver <- example_solver("LP")
solver <- example_solver("MILP")
solver <- example_solver("QP")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.