 |
Writes problem p to an open file in LP format or MPS format. The argument file should be a handle to a file that is open for writing. The use of the argument filetype to specify the format of the output file is the same as in the function QSwrite_prob. This function gives an easy way to write the problem to the screen by specifying the file as stdout or stderr . The function can also be used to store the LP along with other information in a given file. To simply open a file and write the LP, it is usually easier to use the function QSwrite_prob.
|
 |
/* p is a QSprob, a handle to an existing LP problem. */
/* Write the problem to the screen in LP format. */
int rval;
rval = QSwrite_prob_file (p, stdout, "LP");
if (rval) {
fprintf (stderr,
"Could not write LP to stdout, error code %d\n", rval);
}
|