Originally posted by: Bahman
Hi Everyone,
Considering the following codes written in Cplex Studio IDE, I would ask you please advise me how I can write a min max function
tuple s {
int i;
int j;
}
{s} S=...;
{string} G=...;
{int} k=asSet(1..3);
{int} T=asSet(1..6);
float P=...;
float d[K][G]=...;
dvar boolean Z[S][K][T];
dexpr float PE[<i,j> in S][g in G]=sum (k in K, t in T) Z[<i,j>][K][T]*d[k][g]*P;
.............................................................................................................................
Now I would like to write two different codes with the following two objectives (for all <i,j> in S, k in K, t in T and g in G):
1) Minimize the maximum PE[<i,j>][g];
2) Minimize the maximum PE[<i,j>][g] - minimum PE[<i,j>][g]
I would appreciate your reply!
Regards
Bahman
#CPLEXOptimizers#DecisionOptimization