Learn R Programming

highs (version 1.10.0-1)

example_solver: 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"))

Value

An object of class "highs_solver".

Arguments

op_type

Character string specifying the type of optimization model. Must be one of "LP", "MILP", or "QP".

Examples

Run this code
solver <- example_solver("LP")
solver <- example_solver("MILP")
solver <- example_solver("QP")

Run the code above in your browser using DataLab