Decision Optimization

Expand all | Collapse all

Question about CPLEX 20.1.0 x[i][j] data view

  • 1.  Question about CPLEX 20.1.0 x[i][j] data view

    Posted Wed August 11, 2021 11:20 AM
    Hello, I am new to Cplex and I have been following a video on youtube by Hernan Caceres for guidance. But I have a problem, in his second example he used two indices for the decision variable x , (i) and (j) or (Cargos) and (compartments (comps)) where cargos has the integer range of (1,2,3,4) and comps has the integer range of 1 to 3. In the video when he uses show data view it shows the indices of cargos as a column, indices of comps as another column then the values as separate columns showing the value itself, the reduced cost, and the sensitivity range.

    As shown

    However, when I use data view it shows this

    Can you please tell me if I am doing anything wrong, or if its a settings adjustment. I would really like to have my results more clearly as in the tutorial

    ------------------------------
    Hagar Moguib
    ------------------------------


  • 2.  RE: Question about CPLEX 20.1.0 x[i][j] data view

    Posted Thu August 12, 2021 04:37 AM
    The default in the IDE for 2d arrays is to display them as matrices. It has been requested by many customers.
    You can get the old behaviour that "flattens" the array using a preference



    ------------------------------
    Frederic Delhoume
    ------------------------------