The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.0.30 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.0.30 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $awaitingusers - Line: 36 - File: global.php(844) : eval()'d code PHP 8.0.30 (Linux)
File Line Function
/global.php(844) : eval()'d code 36 errorHandler->error
/global.php 844 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 909 - File: global.php PHP 8.0.30 (Linux)
File Line Function
/global.php 909 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5132 - File: inc/functions.php PHP 8.0.30 (Linux)
File Line Function
/inc/functions.php 5132 errorHandler->error
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7288 - File: inc/functions.php PHP 8.0.30 (Linux)
File Line Function
/inc/functions.php 7288 errorHandler->error
/inc/functions.php 5152 is_member
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7288 - File: inc/functions.php PHP 8.0.30 (Linux)
File Line Function
/inc/functions.php 7288 errorHandler->error
/inc/functions.php 5152 is_member
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.0.30 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.0.30 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.0.30 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.0.30 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.0.30 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.0.30 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.0.30 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.0.30 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



jeplus.org forums
Objective definition for TRNSYS project - 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: Objective definition for TRNSYS project (/showthread.php?tid=406)



Objective definition for TRNSYS project - borisd - 01-02-2016

Hi!

I've created jEPlus project for TRNSYS input file but I'm unable to find how to define objective function and input .csv file for TRNSYS project. Only .rvi .rvx files are mentioned for EnergyPlus projects.

Any help?


RE: Objective definition for TRNSYS project - Yi - 01-03-2016

Good question! Since the TRNSYS project GUI has not been updated to let you select and edit a RVX file, you will have to do some manual hacking. First, prepare a RVX file named my.rvx containing only the UserVars, Constraints and Objectives sections like this one here:

{
"userVars" : [
{
"identifier" : "v0",
"formula" : "c0",
"caption" : "CO2 Emmission [kg]",
"report" : true
}
],

"constraints" : [
{
"identifier" : "s1",
"formula" : "c1/1000",
"caption" : "Chiller Capacity [kW]",
"scaling" : true,
"lb" : 0,
"ub" : 200,
"min" : 0,
"max" : 300,
"weight" : 1.0
}
],

"objectives" : [
{
"identifier" : "t1",
"formula" : "v0/1000",
"caption" : "CO2 [ton]",
"scaling" : false,
"min" : 0,
"max" : 100000,
"weight" : 1.0
}
]
}

And then, edit the project (.jep) file to add three lines:

<void property="RVIFile">
<string>my.rvx</string>
</void>

after

<void property="DCKTemplate">
<string>?????????.dck</string>
</void>

Save the project and load it in jEPlus. If running the simulations will give you output in the AllDerivedResults.csv, then the project should work with jEPlus+EA.

Yi


RE: Objective definition for TRNSYS project - borisd - 01-04-2016

Many thanks Dr. Zhang, it works as you described.


RE: Objective definition for TRNSYS project - Yi - 01-04-2016

Excellent! You are welcome.

Yi