Dear All,
I want to solve the following test model (one time) for each given values of sets S and CLIM. I know it needs a loop over the solve statement, but don’t succeed to do it. Can anyone advise? thanks!!
SETS S STRATS /M1*M4/
CLIM CLIMATIC STAGE /HSH, SAS, SAI, ARID /
equations
objective(s,clim)
fert(s,clim)
mecan(s,clim)
trav(s,clim)
water(s,clim)
Objective1(s,clim)
;
objective(s,clim)… F_Income(s,clim)=e=sum(i,({Rendement(I,s,clim)*Prix_Prod(I,s,clim)+ Sous_produits(I,s,clim)*Prix_Sprod(I,s,clim)}
-{Semence(I,s,clim)*Prix_Sem(I,s,clim)+ Fertilisation(I,s,clim)*Prix_Fert(I,s,clim)+Traitement(I,s,clim)*Prix_Trai(I,s,clim)+
Mecanisation(I,s,clim)*Prix_Mec(I,s,clim)+ Travail(I,s,clim)*Prix_Trav(I,s,clim)+Eau_irrigation(I,s,clim)*Prix_Eau(I,s,clim)+
Divers(I,s,clim)*Prix_Div(I,s,clim)})*X_Sim(i,s,clim)) ;
fert(s,clim)… sum(i,X_Sim(i,s,clim)*Fertilisation(I,s,clim))=l=fert_Available(s,clim) ;
mecan(s,clim)… sum(i,X_Sim(i,s,clim)*Mecanisation(I,s,clim))=l=mecan_Available(s,clim) ;
trav(s,clim)… sum(i,X_Sim(i,s,clim)*Travail(I,s,clim))=l=trav_Available(s,clim) ;
water(s,clim)… sum(i,X_Sim(i,s,clim)*Eau_irrigation(I,s,clim))=l=W_Available(s,clim) ;
Objective1(s,clim)… F_Income(s,clim)=e=z ;
model Test01 /all/;
\
To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.