[Scip] help with objective function

Armin Fügenschuh fuegenschuh at mathematik.tu-darmstadt.de
Thu Nov 15 22:56:17 MET 2007


Dear Robert,

2007/11/15, Robert Fleming <robert.e.fleming at gmail.com>:
> What we have so far in ZIMPL is:
>
> #Objective maximize total value
> maximize MaxVal := sum <i,k> in GS do (sum <t> in TEAMS do
> MapTeamsGames[i,t]*CostTeamSlot[k,t])*X[i,k];
>

This should work:
maximize MaxVal: sum <i,k> in GS do (sum <t> in TEAMS do
MapTeamsGames[i,t]*CostTeamSlot[k,t])*X[i,k];

Alternatively:
maximize MaxVal: sum <i,k,t> in GS*TEAMS do
MapTeamsGames[i,t]*CostTeamSlot[k,t]*X[i,k];

Or, if you need the variable MaxVal:
maximize cost: MaxVal;
subto defineMaxVal: MaxVal == sum <i,k,t> in GS*TEAMS do
MapTeamsGames[i,t]*CostTeamSlot[k,t]*X[i,k];

Kind regards,
Armin





-- 

Dr. Armin Fügenschuh

TU Darmstadt / FB Mathematik / AG Optimierung
Schlossgartenstr. 7 (S2 15-313)
64289 Darmstadt

Tel. : +49(0)6151 163689
Fax  : +49(0)6151 163954
email: fuegenschuh at mathematik.tu-darmstadt.de



More information about the Scip mailing list