Originally posted by: SystemAdmin
Types of sensitivity information that are available from OPL Script and OPL APIs are documented under "Sensitivity Analysis" at:
IDE and OPL > Optimization Programming Language (OPL) > Language User’s Manual > The application areas > Applications of linear and integer programming > Linear programming
For objective, reduced cost info is available from scripts however, for getting the range over which obj coefficients can vary without a change in optimal basis you could use CPLEX API: IloCplex::getObjSA().
Note that IloCplex instance is available when you are solving OPL model through java. All you should need is create an IloNumVar[] and populate it with IloNumVars that can be accessed by iterating over IloNumVarMap fetched from OPL model.
#DecisionOptimization#OPLusingCPLEXOptimizer