Learn R Programming

sybil (version 1.1.2)

writeProb-methods: Write Problem Object to File

Description

Write problem object to file (e.g. in lp format).

Usage

## S3 method for class 'optObj_clpAPI,character':
writeProb(lp, fname, ff = "lp")

## S3 method for class 'optObj_cplexAPI,character': writeProb(lp, fname, ff = "lp")

## S3 method for class 'optObj_glpkAPI,character': writeProb(lp, fname, ff = "lp")

## S3 method for class 'optObj_lpSolveAPI,character': writeProb(lp, fname, ff = "lp")

Arguments

lp
An object extending class optObj.
fname
A single character string giving the file name to write to.
ff
A single character string giving the file format to use, see Details. Default: "lp".

encoding

utf8

Details

Argument "ff" is unused with clpAPI. Valid values for cplexAPI and lpSolveAPI are available in their documentations. For glpkAPI, argument "ff" can be "lp" for LP file format, "mps" for MPS file format or "glpk" for GLPK file format.

See Also

Superclass optObj and constructor function optObj.