Learn R Programming

highs (version 1.10.0-1)

hi_solver_write_model: Write Model to File

Description

This function writes the current optimization model to a file.

Usage

hi_solver_write_model(solver, filename)

Value

Invisible NULL.

Arguments

solver

An object of class "highs_solver".

filename

A character string specifying the output file path.

Examples

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

Run the code above in your browser using DataLab