write_prm: Save Gurobi Parameters

View source: R/dev.R

write_prmR Documentation

Save Gurobi Parameters

Description

Create a .prm file with parameters from Gurobi

Usage

write_prm(params, path, filename)

Arguments

params

A list of Gurobi parameters

path

The directory to store the resulting .prm file

filename

The name of the resulting .prm file

Details

While gurobi::gurobi_write() can save Gurobi models, it cannot save the parameters. The function write_prm overcomes this limitation by creating a .prm file with the parameters.

Value

A .prm file named filename in the directory path that stores params

See Also

gurobi_write

Examples

## Not run: 
params <- list(NonConvex = 0)
write_prm(params, ".", "example")
file.remove("./example.prm")

## End(Not run)


omkarakatta/ivqr documentation built on Aug. 20, 2022, 11:04 p.m.