[TRNSYS-users] Problem with GenOpt and TRNOpt: discrete variable
Timothy McDowell
mcdowell at tess-inc.com
Wed Sep 29 09:35:20 PDT 2010
Alexis -
I have usually seen this when the TRNSYS simulation is returning an error
and not completing its simulation. Check the *.lst file from the TRNSYS
run and see if there is an error there.
Regards,
Tim
----------------------------------
Timothy McDowell
Executive Vice President
Thermal Energy System Specialists, LLC
22 N. Carroll St, Suite 370
Madison, WI 53703
Phone: 608-274-2577
Fax: 608-278-1475
----- Original Message -----
From: "Alexis Fabre (Trainee 3E)" <alexis.fabre at 3e.eu>
Sent: Wed, September 29, 2010 9:24
Subject:[TRNSYS-users] Problem with GenOpt and TRNOpt: discrete variable
Dear TRNSyst user,
I try to optimize a system with TRNOpt. I have the
total cost of my system to minimize depending on 2 variables (one continuous
and one discrete which can take 3 values).
When I run TRNOpt with my system which depends only
on the continuous variable (for instance with Hooke-Jeeves) it works really
well, great.
But when I try to add the dependence with de second
variable (i.e the discrete variable and the continuous variable) it does not
work.
I received the error on the GenOpt window:
“GenOpt terminated with error.
See logfile for further information”
I received the error when I used the algorithm with these
parameters:
Hybrid for Continuous and Discrete
NeighborhoodTopology = gbest
NeighborhoodSize = 1
NumberOfParticle = 0
NumberOfGeneration = 0
Seed = 0
CognitiveAcceleration = 0.5
SocialAcceleration = 0.5
MaxVelocityGainContinuous = 0
MaxVelocityDiscrete = 0.5
ConstrictionGain = 0.5
MeshSizeDivider = 2
InitialMeshSizeExponent = 0
MeshSizeExponentIncrement = 1
NumberOfStepReduction = 4
I attach the logfile to this mail and the file where
there are all the parameters for TRNOpt
I tried other algorithms and I received the same
error except for the “parametric” where it worked but with some
errors at the beginning which I paste at the end of this mail.
I do not know which algorithm is the best one to use
when I want to optimize a system with a continuous and a discrete variable
(the
discrete variable has to take three values: 1,2,3)
Maybe somebody has an idea which can help me to find
the solution of my problem?
Thanks a lot
Alexis Fabre
**** Warning ****
Simulation 1: Exception in evaluating x = ( 20.0; 0).
Exception in executing the simulation program
Current command String: 'C:\Program
Files\Trnsys16\Exe\TRNEXE.EXE "C:\Program
Files\Trnsys16\optimization\GENOPT\SIMULATION\GenoptInputFile.DCK" /n
/WAIT '.
Exception message:
Error in executing the simulation program
Exit value of the simulation program: 1
Current command String : 'C:\Program
Files\Trnsys16\Exe\TRNEXE.EXE "C:\Program
Files\Trnsys16\optimization\GENOPT\SIMULATION\GenoptInputFile.DCK" /n
/WAIT '.
Error stream of simulation program : Simulation
program did not return an error stream.
**** Info ****
Simulation 2: Caught 'java.lang.Exception' with message:
Exception in executing the simulation program
Current command String: 'C:\Program
Files\Trnsys16\Exe\TRNEXE.EXE "C:\Program
Files\Trnsys16\optimization\GENOPT\SIMULATION\GenoptInputFile.DCK" /n
/WAIT '.
Exception message:
Error in executing the simulation program
Exit value of the simulation program: 1
Current command String : 'C:\Program
Files\Trnsys16\Exe\TRNEXE.EXE "C:\Program
Files\Trnsys16\optimization\GENOPT\SIMULATION\GenoptInputFile.DCK" /n
/WAIT '.
Error stream of simulation program : Simulation
program did not return an error stream.
Try to evaluate simulation a second time.
**** Warning ****
Simulation 2: Exception in evaluating x = ( 44.0; 0).
Exception in executing the simulation program
Current command String: 'C:\Program
Files\Trnsys16\Exe\TRNEXE.EXE "C:\Program
Files\Trnsys16\optimization\GENOPT\SIMULATION\GenoptInputFile.DCK" /n
/WAIT '.
Exception message:
Error in executing the simulation program
Exit value of the simulation program: 1
Current command String : 'C:\Program
Files\Trnsys16\Exe\TRNEXE.EXE "C:\Program
Files\Trnsys16\optimization\GENOPT\SIMULATION\GenoptInputFile.DCK" /n
/WAIT '.
Error stream of simulation program : Simulation
program did not return an error stream.
Alexis Fabre
Kalkkaai 6
Quai à la Chaux
B-1000 Brussels
T +32 2 217 58 68
F +32 2 219 79 89
3E sa/nv Headquarters
(Invoicing Address)
Vaartstraat 61 Rue du
Canal, B-1000 Brussels
Visit us at www.3E.eu
Not facing but shaping
the changes
SAVE PAPER: THINK TWICE
BEFORE PRINTING!
This email is strictly
confidential and intended solely for the use of the individual to whom it is
addressed. Any views or opinions presented are solely those of the author and
do not necessarily represent those of 3E. If you are not the intended
recipient, be advised that you have received this email in error and that any
use, dissemination, forwarding, printing or copying of this email is strictly
prohibited.
_______________________________________________
TRNSYS-users mailing list
TRNSYS-users at cae.wisc.edu
https://www-old.cae.wisc.edu/mailman/listinfo/trnsys-users
----- End of original message -----
More information about the TRNSYS-users
mailing list