1

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

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)

Astronaut's avatar
85
Astronaut
asked 2016-02-22 10:13:12 -0500
MatthewSteen's avatar
10.1k
MatthewSteen
updated 2016-02-22 16:07:18 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

1

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.

Michael Wetter's avatar
1.7k
Michael Wetter
answered 2016-02-23 12:27:28 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments