I'm currently working on a dynamic facade where the reflectance changes accordingly to the outdoor temperature. I would like to use GenOpt, in particular, the GPSPSOCCHJ algorithm to find the best solution to my climate. I need to change two parameters that have been introduced as a global variable in the EMS of E+, however, when I replace the name of my variable using GenOPT, EnergyPlus consider this parameter string and not integer value as shown below. Moreover, even if I place the EPW file in the correct folder GenOpt is not able to view it.
These errors are shown: * Severe * EMS ParseExpression: Entity=R_SURFACE_S_CONTROL * ~~~ * ...Line=IF ATTICTCM_S_OUTTEMP <= %TRANSTEMPERATURE% * ~~~ * ...Failed to process String="ATTICTCM_S_OUTTEMP <= %TRANSTEMPERATURE%".
In the command file I set the following parameter: Vary{ Parameter{ // TransitionTemperature Name = TransTemp; Min = 15; Ini = 18; Max = 30; Step = 1; } }
While in my IDF Template:
EnergyManagementSystem:Program, TransTemperature, !- Name Set TransTemp = %TransTemperature%; !- Program Line 2