Welcome to WEAP's Website WEAP
WEAP is an initiative of the Stockholm Environment Institute.


About WEAP

Home
Why WEAP?
Features
What's New?
Sample Screens
Demonstration
Publications
History and Credits

Using WEAP
Download
Licensing
User Guide
Tutorial
Videos (YouTube)

User Forum
Discussions
Members List
Edit Profile

Additional Support
Training
University Courses
Collaboration

About Us
SEI-US Water Resources Program
Please Contact Us

LEAP
Interested in Energy?
Read about LEAP: SEI's software for energy planning.

Link WEAP and LEAP for combined Water-Energy planning.
Watch a video demo!
   

User Forum

All Topics | Topic "Result is than minimum of 0. E.g (-0.2)"
Log in to post new messages or reply to existing messages.
 
Author Message
Mr. Shiqeri Dermaku

Subject: Result is than minimum of 0. E.g (-0.2)   
Posted: 4/14/2022 Viewed: 2628 times
Input:
ReadFromFile(Q_Prelez2015.txt) *3.986/14.2-MonthlyValues( Jan, 0.687, Feb, 0.893, Mar, 0.893, Apr, 0.893, May, 0.893, Jun, 0.687, Jul, 0.687, Aug, 0.687, Sep, 0.687, Oct, 0.687, Nov, 0.687, Dec, 0.687 )

When I go to Go to View result strimflow,apper:

Error.
Expression result is less than minimum of 0.The value was -0.204

After that view result not work.

Previous versions of WEAP worked even when the difference between the two parameter values was negative.
Ms. Anne Hereford

Subject: Re: Result is than minimum of 0. E.g (-0.2)   
Posted: 4/14/2022 Viewed: 2458 times
Hi Shigeri,
I would suggest that you make your streamflow input into a "Maximum" expression. The software will then choose the higher value between Zero and your expression, thus avoiding any negative values.

Max(0, ReadFromFile(Q_Prelez2015.txt) *3.986/14.2-MonthlyValues( Jan, 0.687, Feb, 0.893, Mar, 0.893, Apr, 0.893, May, 0.893, Jun, 0.687, Jul, 0.687, Aug, 0.687, Sep, 0.687, Oct, 0.687, Nov, 0.687, Dec, 0.687 ))

Anne


Topic "Result is than minimum of 0. E.g (-0.2)"