[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TRNSYS-users] Fwd: Re: GenOpt: Identifing equality constraints for independent variables (x*y*z=1000)



If you have equality constraints like "x*y*z=1000", you'd be better off
making z calculated from x and y, rather than using constrained
optimisation. I don't how you can do that with GenOpt, but with jEPlus+EA it
is quite simple. You define x and y as parameters, and z as the dependant
variable of x and y, with an equation syntax "@calc(1000/x/y)".
Documentation of jEPlus parameters is here:
http://www.jeplus.org/wiki/doku.php?id=docs:manual_1_7_params.

Yi

-----Original Message-----
From: TRNSYS-users [mailto:trnsys-users-bounces@lists.onebuilding.org] On
Behalf Of Ma via TRNSYS-users
Sent: 28 October 2016 10:56
To: trnsys-users@lists.onebuilding.org
Subject: [TRNSYS-users] Fwd: Re: GenOpt: Identifing equality constraints for
independent variables (x*y*z=1000)



Dear Reza,

you write:

"...Constraints:
1- Boundary constraints: 0<x<20, 0<y<20, 0<z<20
2- Equality constraints: x*y*z=1000
To this end, I could make the boundary constraints in command file..."

I have the same problem with GenOpt and Trnsys. I am trying to implement
some constraints into the simulation files, but unfortunately there are no
examples of the proper code in the GenOpt manual. My question is how
mathematical functions/operators can be "translated" into a GenOpt code
(e.g. nth power in a penalty function or division and addition both in one
function etc.)? How could the code e.g. for your constraints look like?

Kind regards,
ma




_______________________________________________
TRNSYS-users mailing list
TRNSYS-users@lists.onebuilding.org
http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org