IF THEN ELSE with ALLOCATE AVAILABLE
Posted: Mon Jun 22, 2015 1:55 pm
Hello,
In order to speed up my model I would like to avoid calculating a dispatch (with Allocate Available) in every time step. So I am trying to do something like:
IF THEN ELSE(GET TIME VALUE(1,0,4)=1,
ALLOCATE AVAILABLE( Supply[Country,Tech], Supply Curve[Country,Tech,ptype], Demand[Country])
,0)
But I get this error: "Only expressions separated by commas are valid in this context"
Can you please help me solve this issue or give me ideas on how to speed up this function?
Thank you!
In order to speed up my model I would like to avoid calculating a dispatch (with Allocate Available) in every time step. So I am trying to do something like:
IF THEN ELSE(GET TIME VALUE(1,0,4)=1,
ALLOCATE AVAILABLE( Supply[Country,Tech], Supply Curve[Country,Tech,ptype], Demand[Country])
,0)
But I get this error: "Only expressions separated by commas are valid in this context"
Can you please help me solve this issue or give me ideas on how to speed up this function?
Thank you!