read_lpt, read_LPTCreate an lprec structure and read a CPLEX lp model from file. lprec *read_lpt(FILE *stream, int verbose, char *lp_name); lprec *read_LPT(char *filename, int verbose, char *lp_name); 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 CPLEX lp model from. verbose The verbose level. Can be one of the following values: See also set_verbose and get_verbose. lp_name Initial name of the model. See also set_lp_name and get_lp_name. May be NULL if the model has no name. Remarks The read_lpt and read_LPT functions construct a new lprec structure and read the model from filename. read_lpt needs a file pointer to an already opened file. read_LPT accepts the name of the file. The latter function will generally be more convenient.
The model in the file must be in CPLEX lp-format.
Example
See Also delete_lp, free_lp, make_lp, write_lpt, write_LPT, read_lp, read_LP, write_lp, write_LP, read_mps, read_freemps, read_MPS, read_freeMPS, read_XLI, write_mps, write_freemps, write_MPS, write_freeMPS |