exportprob
| exportprob | 
  Purpose
 
  
  Synopsis
 
 int exportprob(XPRMcontext ctx, const char *options, const char *fname, XPRMlinctr obj);
 
  Arguments
 
 | 
     ctx 
     | 
     Mosel's execution context
     | ||||||||
| 
     options 
     | 
 | ||||||||
| 
     fname 
     | 
     File name, may be
     NULL
     | ||||||||
| 
     obj 
     | 
     Objective to use for optimization, may be
     NULL
     | 
  Return value
 
 
 0 if executed successfully,
 XPRM_RT_ERROR if no problem is available or
 XPRM_RT_IOERR in case of IO error.
 
  Further information
 
 
 This function exports the current problem to an MPS or LP format matrix file. If the filename is set to
 NULL, the output is printed to the console. If the filename is given without an extension, the extension
 .mps for MPS files or
 .lp for LP format files is added. The output format options can be combined in a single string (
 e.g.
 "sp"). This function is disabled (
 i.e. it succeeds but performs no operation) when Mosel is running in trial mode.
 
 
