ContentsIndexHome
PreviousUpNext
ISolverMathProgramInstance::GetSensitivityData Method

Provides sensitivity range information.

virtual _LONG_T GetSensitivityData(
    _LONG_T first, 
    _LONG_T last, 
    _LONG_T type, 
    double lower[], 
    double upper[]
) = 0;
Parameters 
Description 
_LONG_T first 
The number of the column or row indicating the beginning of the range 
_LONG_T last 
The number of the column or row indicating the end of the range 
_LONG_T type 
Type of sensitivity that should be returned, value taken from the SensitivityType enumeration 
double lower[] 
Array for filling in the lower bounds of the sensitivity ranges 
double upper[] 
Array for filling in the upper bounds of the sensitivity ranges 

The GetSensitivityData method should return AOSI_FAILURE in case of an error, or if the solver cannot handle the type of sensitivity that is called for. Otherwise it should return AOSI_SUCCESS.

The GetSensitivityData method is called by AIMMS to access a range of lower and upper sensitivity ranges for objective function coefficients, or to access a range of lower and upper ranges for right-hand side values.

  1. The GetSensitivityData method will only be called by AIMMS if the capability flag SolverCapability::CAPAB_RHS_SENSE or SolverCapability::CAPAB_OBJ_SENSE is set in the GetInitialInfo method.
  2. The arrays lower and upper have length last - first + 1.
  3. RHS ranges are calculated for constraints for which the property RightHandSideRange is specified in the AIMMS model. Ranges for objective function coefficients are calculated for variables for which the property CoefficientRange is specified.

Copyright © 1993–2016 by AIMMS B.V. All rights reserved.