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

EMS: how to initialize parameters for an equation with many variables

asked May 21

Leticia's avatar

updated May 21

I'm using EMS to set a logistic regression equation, but I'm having the following error message: "Error: EvaluateExpression: Variable = 'C50' used in expression has not been initialized!"

This error appears when I add variables to my equation. With only two variables (intercept plus one more) the simulation runs correctly. Ex: when my equation is: 'set handle=A35+B47Top' it runs ok when my equation is: 'set handle=A35+B47Top+C50*RH' I receive the above error message

My input objects for 'EnergyManagementSystem:Program' are: image description

For 'EnergyManagementSystem:ProgramCallingManager' they are: image description

Thank you for any help!

Preview: (hide)

Comments

Can you link to your IDF via e.g. Google Drive or Dropbox?

shorowit's avatar shorowit  ( May 22 )

Sure. The idf (version 9.6) and weather file are here: link text

Leticia's avatar Leticia  ( May 22 )

1 Answer

Sort by » oldest newest most voted
1

answered May 22

Jamie Sullivan's avatar

Looking at your model, I believe the issue is that you don't have C50 in your global variables, so its value can't be passed between programs (the same with D61 etc.).

Preview: (hide)
link

Comments

Oh yes, the mistake was really simple, thank you! I think I went through it so much that I forgot a simple detail. Thanks a lot.

Leticia's avatar Leticia  ( May 26 )

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Training Workshops

Careers

Question Tools

2 followers

Stats

Asked: May 21

Seen: 209 times

Last updated: May 22 '24