Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Genopt: independent variables and function

I want to ask if there is any way to enforce the sum of independent variables take a value one. the independent variables take the value of zero or 1 (they regulate the water entering the water heater in EnergyPlus)

for example when field 0 is 1 the remaining values must be zero, Therefore I want the result of the sum be 1. Can someone help me?

  Name2             = "termo1";
  Function2         = "add(%Field0%,%Field1%,%Field2%,%Field3%,%Field4%,%Field5%)";