Search found 3 matches

by unyelf
6 years ago
Forum: Modeling
Topic: Investment Decision on the Number of Producing Units
Replies: 0
Views: 2560

Investment Decision on the Number of Producing Units

I am trying to satisfy a demand by different production units which have different capacity constraints, different efficiencies, and different initial purchasing prices. I want to obtain the minimum total cost of the system in a year, and also the number of the most optimal units that I should purch...
by unyelf
6 years ago
Forum: Modeling
Topic: Daily subsets of annual data
Replies: 2
Views: 4626

Re: Daily subsets of annual data

Hi, One way to do this, is using the "mod" function together with the "ord" operator: set t hours of a year /t1*t8760/; * Init everything to 5 parameter P_el(t) electricity price /#t 5/; * Set peak hours to 10 P_el(t)$(mod(ord(t),24)>=7 and mod(ord(t),24)<=18 ) = 10; If you need...
by unyelf
6 years ago
Forum: Modeling
Topic: Daily subsets of annual data
Replies: 2
Views: 4626

Daily subsets of annual data

I am trying to optimize an energy production process in a year, based on the hourly resolutions. The purchased electricity price from the grid has two different values based on the two times of a day; between 07:00-18:00 the price is 10, between 18:00-07:00 the price is 5. The time sets are: P_el el...