Initializing help system before first use

XPRScreateprob

Purpose
Sets up a new problem within the Optimizer.
Topic area
Synopsis
int XPRS_CC XPRScreateprob(XPRSprob *p_prob);
Argument
p_prob 
Pointer to a variable holding the new problem.
Return value
Success
255 
Optimizer is not intialized (call XPRSinit)
other 
An error occurred
Example
The following creates a problem which will contain myprob:
XPRSprob prob;
XPRSinit(NULL);
XPRScreateprob(&prob);
XPRSreadprob(prob,"myprob","");
Further information
1. XPRScreateprob must be called after XPRSinit and before using the other Optimizer routines.
2. Any number of problems may be created in this way, depending on your license details. All problems should be removed using XPRSdestroyprob once you have finished working with them.
3. If XPRScreateprob cannot complete successfully, a nonzero value is returned and *p_prob is set to NULL (as a consequence, it is not possible to retrieve further error information using e.g. XPRSgetlasterror).
Related topics

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