nicojensen.de/vendor/bundle/gems/rouge-3.3.0/lib/rouge/demos/mosel

11 lines
419 B
Text
Raw Normal View History

2019-03-12 13:49:49 +01:00
(!******************************************************
Mosel Example Problems
*******************************************************!)
! Objective function: total daily cost
Cost:= sum(p in TYPES, t in TIME) (CSTART(p)*start(p,t) +
LEN(t)*(CMIN(p)*work(p,t) + CADD(p)*padd(p,t)))
! Limit on power production above minimum level
forall(p in TYPES, t in TIME) padd(p,t) <= (PMAX(p)-PMIN(p))*work(p,t)