write.lp: Write Linear Program

View source: R/write.lp.R

write.lpR Documentation

Write Linear Program

Description

Write an lpSolve linear program model object to a file.

Usage

write.lp(lprec, filename, type = c("lp", "mps", "freemps"),
         use.names = c(TRUE, TRUE))

Arguments

lprec

an lpSolve linear program model object.

filename

a character string containing the name of the output file.

type

either "lp", "mps" or "freemps". The type of file to output. Please see the reference for a description of these formats.

use.names

a logical vector of length two specifying repectively whether row and column names should be written into the file. If TRUE then the names are written into the file, otherwise lpSolve's internal names are used. This can be useful if the model names do not comply with the syntax of the chosen file type.

Value

a NULL value is invisibly returned.

Author(s)

Kjell Konis kjell.konis@me.com

References

https://lpsolve.sourceforge.net/5.5/index.htm


lpSolveAPI documentation built on Sept. 11, 2024, 9:27 p.m.