Initializing help system before first use

Optimizer Library C API

Once the problem has been loaded into the Xpress Optimizer, it can be written to an MPS file using the API call XPRSwriteprob():

XPRSwriteprob(prob, "myproblem", "");

This will save the current problem in prob in the MPS format to the file myproblem.mps.

In order to create the binary saved state file, you should add the call

XPRSsave(prob);

just before any call to XPRSmipoptimize(). The XPRSsave() function will write to a file whose name is given by the name of the problem itself. This name can be changed using XPRSsetprobname(). If the problem name is "myproblem", then XPRSsave() will create a file called myproblem.svf.

Equivalent functions exist for the Java, .Net and VB APIs. Please refer to the appropriate reference manual.


© 2001-2021 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.