FICO
FICO Xpress Optimization Examples Repository
FICO Optimization Community FICO Xpress Optimization Home
Back to examples browserPrevious exampleNext example

Renewable and non-renewable resources

Description
Examples of the definition of resource constraints for renewable and non-renewable resources.
  • Provision/requirement of a renewable resource modeled with task and resource objects (renewa.mos).
  • Production/consumption of a non-renewable resource modeled with task and resource objects (renewb.mos). Alternative formulation with a 'producer_consumer' constraint (renewb2.mos)
Further explanation of this example: 'Xpress Kalis User Guide', Section 5.5 Renewable and non-renewable resources


Source Files

Data Files





renewb.dat

! Datafile for 'renewb.mos'

DUR:   [('P1') [3 15] ('P2') [4 26] ('EndP1') [0 0] ('EndP2') [0 0]
	('P3') [0 15] ('P4') [4 25] ('P5') [10 20]]

RESAMT: [('EndP1') 10 ('EndP2') 12 ('P3') 5 ('P4') 8 ('P5') 7] 

HORIZON: 35 

PROFIT: [('P3') 5.5 ('P4') 7 ('P5') 6.2] 
COST: [('P1') 1.8 ('P2') 1.6]

CAP: 0


Back to examples browserPrevious exampleNext example