hi all,
i need some help to modelling this model in
GLPK.
i dont know how to represent upper and lower bounds
in the sum.
I try this, but wasnt sucessfull.:
/* objetive function */
minimize z:
sum{i in TAREFAS, t in TEMPOS: t<=tempo_total-tempo_producao[i]+1}
custo[i,t]*x[i,t];
/* constraints */
/*todas atividades devem ser executadas*/
s.t. rest1{i in TAREFAS}:
sum{t in TEMPOS} x[i,t] = 1;
/*maximo uma atividade por período*/
s.t. rest2{t in TEMPOS}: sum{i in
TAREFAS, s=t-tempo_producao[i]+1 .. t}x[i,s] <= 1;
any help is welcome.
thanks to all.
Renato Diniz
[EMAIL PROTECTED]
|
hi all,
i need some help to modelling this model in
GLPK.
i dont know how to represent upper and lower bounds
in the sum.
![]() I try this, but wasnt sucessfull.:
/* objetive function */
minimize z: sum{i in TAREFAS, t in TEMPOS: t<=tempo_total-tempo_producao[i]+1} custo[i,t]*x[i,t]; /* constraints */ /*todas atividades devem ser executadas*/
s.t. rest1{i in TAREFAS}: sum{t in TEMPOS} x[i,t] = 1; /*maximo uma atividade por período*/
s.t. rest2{t in TEMPOS}: sum{i in TAREFAS, s=t-tempo_producao[i]+1 .. t}x[i,s] <= 1; any help is welcome.
thanks to all.
Renato Diniz
|
_______________________________________________ Help-glpk mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-glpk

