Initializing help system before first use

XSLPconstruct

XSLPconstruct


Purpose
Create the full augmented SLP matrix and data structures, ready for optimization
Synopsis
int XPRS_CC XSLPconstruct(XSLPprob Prob);
Argument
Prob 
The current SLP problem.
Example
The following example constructs the augmented matrix and then outputs the result in MPS format to a file called augment.mat
/* creation and/or loading of data */
/* precedes this segment of code   */
...
XSLPconstruct(Prob);
XSLPwriteprob(Prob,"augment","l");
The "l" flag causes output of the current linear problem (which is now the augmented structure and the current linearization) rather than the original nonlinear problem.
Further information

XSLPconstruct adds new rows and columns to the SLP matrix and calculates initial values for the non-linear coefficients. Which rows and columns are added will depend on the setting of XSLP_AUGMENTATION. Names for the new rows and columns are generated automatically, based on the existing names and the string control variables XSLP_xxxFORMAT.

Once XSLPconstruct has been called, no new rows, columns or non-linear coefficients can be added to the problem. Any rows or columns which will be required must be added first. Non-linear coefficients must not be changed; constant matrix elements can generally be changed after XSLPconstruct, but not after XSLPpresolve if used.

XSLPconstruct is called automatically by the SLP optimization procedure, and so only needs to be called explicitly if changes need to be made between the augmentation and the optimization.


Related topics