martin-fleck / momot

Marrying Search-based Optimization and Model Transformation Technology
http://martin-fleck.github.io/momot/
17 stars 6 forks source link

Run search on multiple instances? #16

Open LiBobb opened 7 years ago

LiBobb commented 7 years ago

Hello, I wonder if MOMoT provides any ways to run search on multiple instances concurrently or sequentially? And if not, is there any tricky way to do so? I got lots of generated instance models to run, manually change the .xmi name and click run is too painful for me.

Thanks.

martin-fleck-at commented 7 years ago

Hi, Currently, there is no way to run MOMoT on multiple input models concurrently or sequentially directly from the MOMoT language (.momot file). However, you should be able to do it from the Java API. You also do not have to start from scratch, because when you create a .momot file, a Java file is automatically generated in your project. This file is also the one that gets actually executed. Therefore I suggest you have a look at the generated Java file, copy it somewhere (so it does not get overridden when you change the *.momot file) and see how you can adapt it, e.g., by looping over it with multiple inputs etc.