example_solver: Create a HiGHS Solver Object

View source: R/examples.R

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


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