Overview | Group | Tree | Graph | Index | Concepts |
The routine CPXwriteprob
is used to write the CPLEX
problem object to a file in one of the formats in the table.
These formats are
documented in the reference manual ILOG CPLEX File Formats and
examples of their use appear in the
ILOG CPLEX User's Manual.
SAV | Binary matrix and basis file |
MPS | MPS format |
LP | CPLEX LP format |
REW | MPS format, with all names changed to generic names |
RMP | MPS format, with all names changed to generic names |
RLP | LP format, with all names changed to generic names |
When this routine is invoked, the current problem is written to a file.
If the file name ends with .gz
, a compressed file is
written.
Example
status = CPXwriteprob (env, lp, "myprob.sav", NULL);
See also the example lpex1.c
in the
ILOG CPLEX User's Manual and in the standard distribution.
env | A pointer to the CPLEX environment as returned by |
lp | A pointer to a CPLEX problem object as returned by |
filename_str | A character string containing the name of the file to which the problem is to be written, unless otherwise specified with the |
filetype_str | A character string containing the type of the file, which can be one of the values in the table. May be NULL, in which case the type is inferred from the file name. The string is not case sensitive. |