example_model | R Documentation |
Creates example optimization models for different problem types: - Linear Programming (LP) - Mixed Integer Linear Programming (MILP) - Quadratic Programming (QP)
example_model(op_type = c("LP", "MILP", "QP"))
op_type |
Character string specifying the type of optimization model. Must be one of "LP", "MILP", or "QP". |
A HiGHS model object configured according to the specified type: - LP: Maximization problem with 3 variables and 3 constraints - MILP: Maximization problem with mixed integer and continuous variables - QP: Problem with quadratic objective function
model <- example_model("LP")
model <- example_model("MILP")
model <- example_model("QP")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.