jeplus.org forums
Setting EA for the first time without eplusout.csv file - Printable Version

+- jeplus.org forums (http://jeplus.org/mybb)
+-- Forum: Building simulation tools (http://jeplus.org/mybb/forumdisplay.php?fid=1)
+--- Forum: jEPlus+EA (http://jeplus.org/mybb/forumdisplay.php?fid=3)
+--- Thread: Setting EA for the first time without eplusout.csv file (/showthread.php?tid=427)



Setting EA for the first time without eplusout.csv file - rkbest - 10-26-2016

I am trying to set a optimization problem  from JEplus. However, following what is suggested I wanted to use the alloutput.rvi from example file. However on my local simulation I could extract data from eplustble.html but non of the rvi that uses 'eplusout.eso' and 'eplusout.csv' have any results collected. Further, under the simulation folders I don't see any 'eplusput.csv' at all but eplusout.eso is present.
1. In the absence of eplusout.csv I extracted all my required values from eplustbl.csv. Does it make any difference?
If the above is also acceptable
2. My objective is to reduce the total annual cost and minimize peak electricity kWh and have minimum number of unmet hours from the simulation (while having minimum warnings).
Does this mean I have to have 3 objective?
I have the following from the reults file
Obj1--number of unmet hours hrs---C1
Obj2-- Annual cost       $           ---C17
Obj3-- Peak energy kWh            ---C18

Do I need a constraint defined? what is scaling used for?
3. How to define objectives
As this is a minima or maxima problem, how can I pick the lower and upper bounds? Is this a simple guess between 0 and some value higher than I get from single simulation?

AllCombinedResults.csv file is attached.


RE: Setting EA for the first time without eplusout.csv file - rkbest - 10-27-2016

I setup the first optimization and the simulation are running with t1 and t2 both 0 while s1 has some numbers. Something wrong with my objective function definition. I used c1 as constraint while c17 and c18 as objectives. As both need to be minimized I set the lb=0 and ul a value higher than what I got from simulating individually as a guess.Does the two objectives need to be inversely proportional to make this work?


RE: Setting EA for the first time without eplusout.csv file - Yi - 10-29-2016

If there are known issues with the project files, e.g. RVX elements are suspected to be not working, they need to be sorted out before running optimisation. Do a test run of the project in jEPlus and check the contents of AllCombinedResults.csv and AllDerivedResults.csv. The latter contains your objective and constraint functions results. Check variable names are matched and all columns contain values as they should.

jEPlus+EA is minimizing only. Scaling is not necessary for objectives. How to choose objectives and constraints depends on the answers you are looking for...


RE: Setting EA for the first time without eplusout.csv file - rkbest - 10-29-2016

AllCombinedResults.csv is providing me the values I am pulling from plustbl.csv.
AllDerivedResults.csv is empty with only three column with
# | Job_ID | Reserved
0 | EP_G-T_0-W_0-P1_0 |
0 | EP_G-T_0-W_0-P1_2 |
0 | EP_G-T_0-W_0-P1_1 |
0 | EP_G-T_0-W_0-P1_3 |

What could be wrong?

The RVX seems to pull the data to only the file and AllCombinedResults.csv.


RE: Setting EA for the first time without eplusout.csv file - Yi - 10-29-2016

There must be some errors in the RVX that breaks the data collection steps. Check if there is any error report in the jeplus.err file. Or post the RVX file here.


RE: Setting EA for the first time without eplusout.csv file - rkbest - 10-29-2016

I checked the JE+ error file and it is empty.
The rvx is attached for reference.


RE: Setting EA for the first time without eplusout.csv file - Yi - 10-29-2016

There aren't any constraints nor objectives defined?


RE: Setting EA for the first time without eplusout.csv file - rkbest - 10-30-2016

That was the JEPlus rvx I used to add constraints. Sorry, I sent you the original. This is the one I used.

Here is a portion of the log that shows some error parsing with t1=c17. these are repeated for almost all runs

2016-10-28 19:55:07,639 ERROR [EAengine Thread] jeplus.EPlusBatch (   ) - Error parsing expression t1=c17.
2016-10-28 19:55:07,651 ERROR [EAengine Thread] jeplus.EPlusBatch (   ) - Error parsing expression t1=c17.
2016-10-28 19:55:07,663 ERROR [EAengine Thread] jeplus.EPlusBatch (   ) - Error parsing expression t1=c17.
2016-10-28 19:55:07,675 ERROR [EAengine Thread] jeplus.EPlusBatch (   ) - Error parsing expression t1=c17.
2016-10-28 19:55:07,693 ERROR [EAengine Thread] jeplus.EPlusBatch (   ) - Error parsing expression t1=c17.
2016-10-28 19:55:07,708 ERROR [EAengine Thread] jeplus.EPlusBatch (   ) - Error parsing expression t1=c17.
2016-10-28 19:55:07,720 ERROR [EAengine Thread] jeplus.EPlusBatch (   ) - Error parsing expression t1=c17.
2016-10-28 19:55:07,733 ERROR [EAengine Thread] jeplus.EPlusBatch (   ) - Error parsing expression t1=c17.
2016-10-28 19:55:07,745 ERROR [EAengine Thread] jeplus.EPlusBatch (   ) - Error parsing expression t1=c17.
2016-10-28 19:55:07,764 ERROR [EAengine Thread] jeplus.EPlusBatch (   ) - Error parsing expression t1=c17.
2016-10-28 19:55:07,765 INFO  [EAengine Thread] jeplus.JEPlusMO_EventHandler (   ) - # [Pop-196] 11 solutions; Best Solution: obj= -1.0 inf= -1.0;
 0: ( 0 2 0 ); Evaluation: Objs = 0.0 7323965.79, Cons = 0.0, Rank = 2, Crowding = Infinity, Fitness = 0.0; Job_ID: G-0_2_0
 1: ( 0 1 0 ); Evaluation: Objs = 0.0 7325485.8, Cons = 0.0, Rank = 3, Crowding = 0.0022192508129292555, Fitness = 1.0; Job_ID: G-0_1_0
 2: ( 0 3 0 ); Evaluation: Objs = 0.0 7327739.2, Cons = 0.0, Rank = 4, Crowding = 0.003854495683029338, Fitness = 2.0; Job_ID: G-0_3_0
 3: ( 0 3 1 ); Evaluation: Objs = 0.0 7332039.63, Cons = 0.0, Rank = 5, Crowding = 0.002926440317249589, Fitness = 3.0; Job_ID: G-0_3_1
 4: ( 0 4 1 ); Evaluation: Objs = 0.0 7332715.05, Cons = 0.0, Rank = 6, Crowding = 7.944501632777797E-4, Fitness = 4.0; Job_ID: G-0_4_1
 5: ( 0 2 2 ); Evaluation: Objs = 0.0 7333390.44, Cons = 0.0, Rank = 7, Crowding = 6.415131695786631E-4, Fitness = 5.0; Job_ID: G-0_2_2
 6: ( 0 3 2 ); Evaluation: Objs = 0.0 7333805.82, Cons = 0.0, Rank = 8, Crowding = 6.922039844027101E-4, Fitness = 6.0; Job_ID: G-0_3_2
 7: ( 0 2 3 ); Evaluation: Objs = 0.0 7334567.4, Cons = 0.0, Rank = 9, Crowding = 7.766769132020637E-4, Fitness = 7.0; Job_ID: G-0_2_3
 8: ( 0 3 3 ); Evaluation: Objs = 0.0 7335126.41, Cons = 0.0, Rank = 10, Crowding = Infinity, Fitness = 8.0; Job_ID: G-0_3_3
 9: ( 0 2 4 ); Evaluation: Objs = 0.0 7335296.83, Cons = 0.0, Rank = 11, Crowding = Infinity, Fitness = 9.0; Job_ID: G-0_2_4
 10: ( 0 0 2 ); Evaluation: Objs = 0.0 5634988.79, Cons = 1.0, Rank = 1, Crowding = Infinity, Fitness = 10.0; Job_ID: G-0_0_2

2016-10-28 19:55:13,699 INFO  [Thread-683] agent.EPlusAgent  (   ) - Nearly there ...
2016-10-28 19:55:13,699 INFO  [Thread-683] agent.EPlusAgent  (   ) - Local batch simulation controller is FINISHED [Que=0, Run=0, Fin=0]
2016-10-28 19:55:13,699 INFO  [Thread-683] agent.EPlusAgent  (   ) - Local agent stopped.
2016-10-28 19:55:13,699 INFO  [Thread-683] agent.EPlusAgent  (   ) - Collecting results ...
2016-10-28 19:55:13,700 INFO  [Thread-683] agent.EPlusAgent  (   ) - Standard report collector collected 0 simulation reports in F:\Rajeev Simulation\output\RunTimes.csv
2016-10-28 19:55:13,701 INFO  [Thread-683] agent.EPlusAgent  (   ) - Standard report collector collected job index table in F:\Rajeev Simulation\output\SimJobIndex.csv
2016-10-28 19:55:13,709 INFO  [Thread-683] agent.EPlusAgent  (   ) - Combined result table AllCombinedResults.csv is created.
2016-10-28 19:55:13,711 INFO  [Thread-683] agent.EPlusAgent  (   ) - Derivative result table AllDerivedResults.csv is created.
2016-10-28 19:55:13,711 INFO  [Thread-683] agent.EPlusAgent  (   ) - All done!
2016-10-28 19:55:13,749 INFO  [Thread-683] agent.EPlusAgent  (   ) - Simulation finished at: Fri, 28 Oct 2016 19:55:13
2016-10-28 19:55:13,749 INFO  [Thread-683] agent.EPlusAgent  (   ) - Total execution time = 0 seconds.


RE: Setting EA for the first time without eplusout.csv file - Yi - 10-30-2016

Cannot see the rvx... Do you get c17 in AllCombinedResults.csv?


RE: Setting EA for the first time without eplusout.csv file - rkbest - 10-31-2016

I was able to fix and run the simulation now. hourlymeter rvi was throwing 0 in the results table making it wrong/uneven columns.