|
From: | Renato |
Subject: | [Help-glpk] i need some help |
Date: | Fri, 1 Jun 2007 18:20:38 +0400 |
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 address@hidden
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
|
[Prev in Thread] | Current Thread | [Next in Thread] |