Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question
1

genopt give the same f(x) s without any decrease, what is the problem ?

asked 2016-02-22 10:13:12 -0600

Astronaut's avatar

updated 2016-02-22 16:07:18 -0600

I'm using Dymola to simulate and Genopt to optimize a variable c by minimizing the f(x). everything related to simulation works fine, I used "CombiTimeTable" to impose the fist values of c in Dymola. I imported a .txt file called "modelicaschedule.txt" in CombiTimeTable which in Dymola I named it "inputFileName" from c:\genopt...

parameter String inputFileName = "modelicaSchedule.txt"

now the Genopt just print f(x)=255.4355657 and no changing .(mean no itterating)

but when I change the location name in "CombiTimeTable" to "inputFileName" teh value of Genopt changes but whith another f(x) (not the one that Dymola made)

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2016-02-23 12:27:28 -0600

If the results do not change, then Dymola probably compiled the table into the executable, and hence any subsequent change to modelicaSchedule.txt will have no effect. If this is the case, you could change your setup so that GenOpt does not call dymosim (the compiled code) but rather dymola, with a script as argument that translates and simulates your model.

I don't understand your second comment "teh value of Genopt changes but whith another f(x) (not the one that Dymola made)". If this is the case, you probably read a different file.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Training Workshops

Careers

Question Tools

1 follower

Stats

Asked: 2016-02-22 10:13:12 -0600

Seen: 299 times

Last updated: Feb 23 '16