Topic
  • 1 reply
  • Latest Post - ‏2013-07-31T06:13:04Z by AlexFleischer
IdoR
IdoR
1 Post

Pinned topic Sensitivity analysis report

‏2013-07-31T00:14:38Z |

Hi

I'm relatively new with OPL.

How can I see the allowable ranges for the right-hand side and for the coefficients of the objective function value after the problem is solved? these are usually called "maximum allowable increase" and "maximum allowable decrease". Is it possible to specify the constraints / coefficients of interest so not to try to display or print too much information?

The allowable ranges are not displayed by clicking over the constraint / variable name in the Problem browser. And couldn't find neither a specific command to display this information. The only commands I could find are: dual, slack, UB and LB for the constraints, and reducedCost for the variables.

Thanks in advance,

 

Hernan

Updated on 2013-07-31T00:16:33Z at 2013-07-31T00:16:33Z by IdoR
  • AlexFleischer
    AlexFleischer
    1852 Posts

    Re: Sensitivity analysis report

    ‏2013-07-31T06:13:04Z  

    Hi,

    let me give you an example:

     

    dvar float+ Gas[1..1];
    dvar float+ Chloride[1..1];

    maximize
      40 * Gas[1] + 50 * Chloride[1];
    subject to {
     
      ctMaxTotal:     
        Gas[1] + Chloride[1] <= 50;
      ctMaxTotal2:    
        3 * Gas[1] + 4 * Chloride[1] <= 180;
      ctMaxChloride:  
        Chloride[1] <= 40;
    }

     

    and then if you right click on Gas in the IDE you get sensitivity analysis.

    If you need more than what is available thru scripting you may use an external java call.

     

    Regards