example_model: Generate Example Optimization Models

View source: R/examples.R

example_modelR 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")


highs documentation built on June 8, 2025, 10:36 a.m.