Decision Optimization

Decision Optimization

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

 View Only
  • 1.  change color in gantt chart

    Posted Sat October 22, 2016 04:56 PM

    Originally posted by: Treee


    hi,

    is it possible to change to color displayed in the gantt chart? Right now the chart is green, when there is no object, and purple when there is an object. 

    I want to change the color (f.e. yellow) for the object , when its EndTime1[1][t][r][c]==2.

    I attached my current gantt chart.

     

    tuple ZP2ChartBLock1
    {
    int a;
    int t;
    }
    {ZP2ChartBLock1} projectionZP1Block1[r in Row][c in Column]={<1,t> | 1 in Block,t in Tier : EndTime1[1][t][r][c]==1 ||EndTime1[1][t][r][c]==2 };
    int projection2ZP1Block1[r in Row][c in Column]=(0!=card(projectionZP1Block1[r][c]))?1:0;
    string labelZP1Block1[r in Row][c in Column]=" ";
    execute
    {
    projectionZP1Block1;
    for(var r in Row) for(var c in Column) for(var i in projectionZP1Block1[r][c])
    labelZP1Block1[r][c]+="("+i.t+")";
    }
                                 
    tuple sequence_likeZP1 {
       int start;
       int end;
       string label;
       int type;
     };   
     
    {sequence_likeZP1} arrayZP1Block1[i in Row] = {<j-1,j,labelZP1Block1[i][j],projection2ZP1Block1[i][j]> | j in Column};

     
      execute DISPLAY_RESULTSZ_P2 {
        arrayZP1Block1;

     

    kind regards


    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: change color in gantt chart

    Posted Mon October 24, 2016 03:20 AM


  • 3.  Re: change color in gantt chart

    Posted Mon October 24, 2016 06:13 PM

    Originally posted by: Treee


    So, it is just possible to get three different colors? Purple, green and white?

    kind regards


    #CPLEXOptimizers
    #DecisionOptimization


  • 4.  Re: change color in gantt chart

    Posted Tue October 25, 2016 01:48 AM

    Hi,

    indeed 3 colors with the latest version.

    For more colors, log a wish at https://twitter.com/AlexFleischer1/status/677761826352963584

    regards


    #CPLEXOptimizers
    #DecisionOptimization