read_mps, read_freemps, read_MPS, read_freeMPSCreate an lprec structure and read an mps model from file. lprec *read_mps(FILE *stream, int verbose); lprec *read_freemps(FILE *stream, int verbose); lprec *read_MPS(char *filename, int verbose); lprec *read_freeMPS(char *filename, int verbose); Return Value
Returns a pointer to a new lprec structure. This must be provided to almost all
lp_solve functions. Parameters stream Pointer to FILE structure. filename Filename to read the mps model from. verbose The verbose level. Can be one of the following values: See also set_verbose and get_verbose. Remarks The read_mps, read_freemps, read_MPS, read_freeMPS functions construct a new lprec structure and read the model from filename. read_mps, read_freemps need a file pointer to an already opened file. read_MPS, read_freeMPS accepts the name of the file. The latter functions will generally be more convenient.
The model in the file must be in mps-format.
The read_free* routines accept files in free MPS format.
The other routines accept files in fixed MPS format. Example
See Also delete_lp, free_lp, make_lp, write_mps, write_freemps, write_MPS, write_freeMPS, read_lp, read_LP, write_lp, write_LP |