Initializing help system before first use

writeprob

Purpose
Write the current problem to a file.
Synopsis
procedure writeprob(fname:string, options:string)
procedure writeprob(fname:string, options:string, fnamed:string)
Arguments
fname 
Extended file name for the matrix
options 
String of format options (default: full precision)
fnamed 
Extended file name for the directives
Example
Load the current problem into the Optimizer and save it to an MPS file "mypb.mps" and to the file "mypb.lp" in LP format ('l') using scrambled names ('s'):
loadprob(myobj)
setparam("xprs_objsense",1) ! for 'minimize'
writeprob("mypb.mps","")
writeprob("mypb.lp","ls")
Further information
This procedure writes the current problem held in the Optimizer to a file by calling the Optimizer function XPRSwriteprob and XPRSwritedirs if a file name for the directives is also specified. Note that the matrix written by this procedure may be different from the one produced by exportprob since it may include the effects of presolve or cuts generated by the Optimizer. For more detail on the options and behavior of this procedure, refer to the Xpress Optimizer Reference Manual.
Related topics
Module

© 2001-2025 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.