Initializing help system before first use

# XSLPvalidate, XPRSnlpvalidate

Purpose
Validate the feasibility of constraints in a converged solution
Topic area
Solution
Synopsis
`int XPRS_CC XSLPvalidate(XSLPprob prob);`
Argument

prob | The current SLP problem.

Example
The following example sets the validation tolerance parameters, validates the converged solution and retrieves the validation indices.

    double IndexA, IndexR;
    XSLPsetdblcontrol(prob, XSLP_VALIDATIONTOL_A, 0.001);
    XSLPsetdblcontrol(prob, XSLP_VALIDATIONTOL_R, 0.001);
    XSLPvalidate(prob);
    XSLPgetdblattrib(prob, XSLP_VALIDATIONINDEX_A, &IndexA);
    XSLPgetdblattrib(prob, XSLP_VALIDATIONINDEX_R, &IndexR);

Further information
XSLPvalidate checks the feasibility of a converged solution against relative and absolute tolerances for each constraint. The left hand side and the right hand side of the constraint are calculated using the converged solution values. If the calculated values imply that the constraint is infeasible, then the difference ( D) is tested against the absolute and relative validation tolerances.
If D < XSLP_VALIDATIONTOL_A
then the constraint is within the absolute validation tolerance. The total positive ( TPos) and negative contributions ( TNeg) to the left hand side are also calculated.
If D < MAX(ABS(TPos), ABS(TNeg))* XSLP_VALIDATIONTOL_R
then the constraint is within the relative validation tolerance. For each constraint which is outside both the absolute and relative validation tolerances, validation factors are calculated which are the factors by which the infeasibility exceeds the corresponding validation tolerance; the smallest factor is printed in the validation report.
The validation index XSLP_VALIDATIONINDEX_A is the largest absolute validation factor multiplied by the absolute validation tolerance; the validation index XSLP_VALIDATIONINDEX_R is the largest relative validation factor multiplied by the relative validation tolerance.
Related topics
XSLP_VALIDATIONINDEX_A, XSLP_VALIDATIONINDEX_R, XSLP_VALIDATIONTOL_A, XSLP_VALIDATIONTOL_R
Parent Topic Library functions and the programming interface

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