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

Definition of constraints in jEPlus+EA

asked 2015-08-14 08:47:12 -0500

Xandrika's avatar

updated 2015-08-14 09:31:32 -0500

Could anybody familiar with JEPLUS+EA explain in detail how to define constraints for an optimization run. Below you see the RVX example.

image description

I do not really understand what is meant by feasible range [0, 100000.0] and normalized between [0.0, 400000.0] The RVX code for the constraint definition is:

"constraints" : [
    {
        "identifier" : "s1",
        "formula" : "(c0+c1)/1000/3600",
        "caption" : "Electricity [kWh]",
        "scaling" : true,
        "lb" : "0",
        "ub" : "100000",
        "min" : "0",
        "max" : "400000",
        "weight" : "1.0"
    }
],
edit retag flag offensive close merge delete

Comments

@Ivan Korolija: Maybe you can help me? Thanks a lot.

Xandrika's avatar Xandrika  ( 2015-08-14 09:05:28 -0500 )edit

1 Answer

Sort by » oldest newest most voted
3

answered 2015-08-16 10:18:04 -0500

Yi Zhang's avatar

Ivan's still enjoying sun and sea on a Greek island, I believe :-D

Constraint functions are used to test whether a solution is 'feasible' or not. You may consider them as a special type of objectives, whose values must fall within a range, [lb, ub], defined by the user. Normally you would need to enable 'scaling' in the constraint definition, unless your feasible range is <=0. The use of the five scaling parameters (lb, ub, min, max, and weight) is best illustrated in the diagram below. The algorithm considers 0 and below as feasible, and anything above 0 as unfeasible. It works to minimize the sum of the constraint values if more than on constraint are defined.

image description

edit flag offensive delete link more

Comments

@Yi Zhang: I also would love to enjoy Greek island and the mediteranean sea:-( But it seems that it's not our turn right now;-)

Thanks a lot for you explaination. However, I still have some doubts. Maybe it's better to work with an example: 1. How would the contraint definitition look like when I only want to consider solutions with electricity intensity below 80 kWh/m² 2. Do I have to use scaling when I have only 1 constraint? 3. In your RVX examples objectives and sql extraction are defined in RVI and RVX file. Is this necessary? Warm regards from rainy Germany:-

Xandrika's avatar Xandrika  ( 2015-08-17 04:36:31 -0500 )edit

For your example: 1. set min and lb to 0, ub to 80, and max to some large number, say 500; 2. Yes, as lb and ub are only applied when scaling is enabled. 3. No. RVX overrides the objective definitions in RVI.

Yi Zhang's avatar Yi Zhang  ( 2015-08-20 11:40:57 -0500 )edit

Your Answer

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

Add Answer

Careers

Question Tools

1 follower

Stats

Asked: 2015-08-14 08:47:12 -0500

Seen: 394 times

Last updated: Aug 16 '15