GenOpt icon indicating copy to clipboard operation
GenOpt copied to clipboard

GenOpt - OpenModelica

Open AHaumer opened this issue 7 years ago • 2 comments

Hi, I'm using GenOpt to optimze Modelica model parameters comparing simulation results with measured trajectories, this works fine. On the Modelica side, I use Dymola - many thanks for the examples, I got my application running in pretty short time! Now I'm wondering how do I have to adapt GenOpt.ini to the usage of OpenModelica? Best regards, Toni

AHaumer avatar Nov 25 '18 12:11 AHaumer

@AHaumer Easiest is to modify https://github.com/lbl-srg/GenOpt/blob/master/cfg/batchSimulation.cfg (for Windows) or https://github.com/lbl-srg/GenOpt/blob/master/cfg/bashSimulation.cfg (for Linux). This configuration file will start a batch or bash file, that you can edit to start OpenModelica.

You should also modify the "ErrorMessage" entry to properly stop if the simulation has an error, see Section 11.1.2 in the GenOpt manual.

mwetter avatar Nov 26 '18 15:11 mwetter

Thanks Michael, I'll try it!

AHaumer avatar Dec 02 '18 10:12 AHaumer

Sorry for giving no feedback for such a long time ... Yes 2018/19 the issue was solved, I could start optimizations with Dymola and OpenModelica. Now (2024) Dymola is still working, OpenModelica has undergone some changes and stopped to work. I have a few questions to get it running again - but I think it's better to open a new issue.

AHaumer avatar Jun 09 '24 12:06 AHaumer