hi_solver_write_model: Write Model to File

View source: R/solver-api.R

hi_solver_write_modelR Documentation

Write Model to File

Description

This function writes the current optimization model to a file.

Usage

hi_solver_write_model(solver, filename)

Arguments

solver

An object of class "highs_solver".

filename

A character string specifying the output file path.

Value

Invisible NULL.

Examples

solver <- example_solver()
model_file <- tempfile(fileext = ".mps")
hi_solver_write_model(solver, model_file)


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