[TRNSYS-users] Problem with Genopt (and Trnopt) with more than 9variables

PAULUS Cedric 217865 cedric.paulus at cea.fr
Fri Feb 1 07:55:53 PST 2008


The result back from TRNSYS running with the deck is 10.

If you look at the output listing file for 10 variables the result is 1 and with the output listing file for 9 variables the result is 10 (and genopt find an optimisation).

I've made a change in the initial value of the variables (a,b....,i=1 and j=2). If you look at the file outpoutlistingall_10variables_b.txt, on the first line the result is 2 (the value of j???). When you look at the other line when j changes value, the value of result also change (the same as j??).

You will find the deck in attachement.

Cédric PAULUS

-----Message d'origine-----
De : Jeff Thornton [mailto:thornton at tess-inc.com] 
Envoyé : vendredi 1 février 2008 16:23
À : PAULUS Cedric 217865; trnsys-users at engr.wisc.edu
Objet : Re: [TRNSYS-users] Problem with Genopt (and Trnopt) with more than 9variables

<For example, I've made a deck with one equation and ten variables :
Error=abs(a)+abs(b)+abs(c)+abs(d)+abs(e)+abs(f)+abs(g)+abs(h)+abs(i)+abs(j)
Where a, b, c, d, e, f, g, h, i, j are variables (initial value =1, min
value=0, maxvalue=10, step=0.5)>

>From the output listing, it looks like GenOpt is getting a result back
from TRNSYS that isn't right.  Your first iteration in GenOpt (where all
10 variables are set to 1.0) should return a value of 10 and instead
returns a value of 1.  Please check your equation carefully in TRNSYS and
make sure its giving you the correct result before running GenOpt.  It may
be that the line is too long or something else that is causing the TRNSYS
problem.  Please let us know what you find.

Jeff

Jeff Thornton
President - TESS, LLC

2916 Marketplace Drive - Suite 104
Madison WI 53719 USA

Phone: 608-274-2577
Fax: 608-278-1475
E-mail: thornton at tess-inc.com
Web: www.tess-inc.com

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: OutputListingAll_9variables.txt
URL: <http://lists.onebuilding.org/pipermail/trnsys-users-onebuilding.org/attachments/20080201/891f17a6/attachment-0003.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: OutputListingAll_10variables.txt
URL: <http://lists.onebuilding.org/pipermail/trnsys-users-onebuilding.org/attachments/20080201/891f17a6/attachment-0004.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: deb_genopt.dck
Type: application/octet-stream
Size: 2832 bytes
Desc: deb_genopt.dck
URL: <http://lists.onebuilding.org/pipermail/trnsys-users-onebuilding.org/attachments/20080201/891f17a6/attachment-0001.obj>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: OutputListingAll_10variables_b.txt
URL: <http://lists.onebuilding.org/pipermail/trnsys-users-onebuilding.org/attachments/20080201/891f17a6/attachment-0005.txt>


More information about the TRNSYS-users mailing list