Decision Optimization

Decision Optimization

Delivers prescriptive analytics capabilities and decision intelligence to improve decision-making.

 View Only
Expand all | Collapse all

varible result : Ilog cplex OPL

  • 1.  varible result : Ilog cplex OPL

    Posted Wed October 08, 2014 11:24 PM

    Originally posted by: Amay_mei


    hi all,

    I have construct a model in Ilog cplex opl, and it works. 

    In the model file, there are some variables which are used for calculating some data, and all these data calculated have nothing to do with objective and constraints.

    The results show that these variables are not computed by the model at all. and the result of all these variable are not listed in the problem browsers.

    I don't know how to deal with this problem? 

    the model is based on a large-scale problem, and the result of decision variables are huge, I do not want to copy the solution results of all decision variables to the data file, and recalculate them again.

    Could you help me please?

    Thank you so much.

    Amay

     

     


    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: varible result : Ilog cplex OPL

    Posted Mon October 13, 2014 04:24 AM

    There is a separate forum dedicated to OPL here. Please post your question there.


    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: varible result : Ilog cplex OPL

    Posted Mon October 13, 2014 03:11 PM

    Hi

    you should use the OPL setting

    Force element usage

     

    regards


    #CPLEXOptimizers
    #DecisionOptimization


  • 4.  Re: varible result : Ilog cplex OPL

    Posted Wed October 15, 2014 07:45 AM

    PS:

    let me give you an example

    dvar int x[1..2] in 1..2;
    dvar int y in 1..3;

    subject to
    {
    x[1]==2;
    }

    by default this gives

    x = [2
             1];

     

    if you set force usage the you get

    x = [2
             1];
    y = 1;

     

    regards

     


    #CPLEXOptimizers
    #DecisionOptimization