write_mps, write_freemps, write_MPS, write_freeMPS, MPS_writefileex
Write an mps model.
unsigned char write_MPS(lprec *lp, FILE *stream);
unsigned char write_freeMPS(lprec *lp, FILE *stream);
unsigned char write_mps(lprec *lp, char *filename);
unsigned char write_freemps(lprec *lp, char *filename);
unsigned char MPS_writefileex(lprec *lp, int typeMPS, void *userhandle, (void *userhandle, char *buf) write_modeldata_routine);
The routines return TRUE (1) if the operation was
successful. A return value of FALSE (0) indicates an error.
Pointer to FILE structure.
Filename to write the mps model to.
type of the MPS file. Can be one of the following values:
Routine to write the MPS model to. The routine has following definition:
The write_mps, write_freemps, write_MPS, write_freeMPS functions write the model to filename. write_MPS, write_freeMPS need a file pointer to an already opened file. write_mps, write_freemps accept the name of the file. The latter function will generally be more convenient. MPS_writefileex writes the model via a user defined routine.When stream or filename are NULL, then output is written to output set by set_outputstream, set_outputfile. By default this is stdout.
The model in the file will be in mps-format. The write_free* routines write files in free MPS format. The other routines write files in fixed MPS format.