The following warnings occurred: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.0.30 (Linux)
|
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 |