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