example_model {highs} | R Documentation |
Generate Example Optimization Models
Description
Creates example optimization models for different problem types: - Linear Programming (LP) - Mixed Integer Linear Programming (MILP) - Quadratic Programming (QP)
Usage
example_model(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
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
Examples
model <- example_model("LP")
model <- example_model("MILP")
model <- example_model("QP")
[Package highs version 1.10.0-2 Index]