Hi everybody, I am trying to convert the unit power [MW] into the unit energy [MWh] considerung the specific time duration per timestamp [h] or [qh]. Has anyone an idea how to solve that?
Best answer by mohansx
Thanks, I understand better now. One remark, shouldn’t the unit of K_Boiler be Euro/h as you are multiplying MW with Euro/MWh ?
So, the derived unit kWh or MWh in the SI_Energy is not considering at as a product of the SI_Power unit MW and time unit h (hour) but just a conversion from J.
What you can do is, forget about the SI_Energy quantity and declare the MWh yourself as a unit parameter (read more here: Unit-valued Parameters — AIMMS Language Reference)
In SI_Time_Duration, you can add a conversion to hours as 3600s. You add a conversion in SI_Power quantity for MW as 10^6 * W.
Now declare a unit parameter named MWh with definition as MW*hour. Use this MWh in your variable and parameter declarations.
