Question-and-Answer Resource for the Building Energy Modeling Community
Get s tarted with the Help page

# 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)

edit retag close merge delete

Sort by » oldest newest most voted

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.

more