r-and-gama / gamar

An R interface to the GAMA platform (https://gama-platform.github.io)
https://r-and-gama.github.io/gamar
Other
13 stars 4 forks source link

headless to run 'batch' experiment #16

Open meta00 opened 5 years ago

meta00 commented 5 years ago

@gnoubi @jdzucker @benoitgaudou

Can you explain us how gama and gama headless handle batch type experiment? In headless so far, we found that the xml parsed from gaml file is empty.

Example: Tutorials/Predator Prey/models/Model 13.gaml (Optimization experiment)

benoitgaudou commented 5 years ago

Hi, After some investigation by @chapuisk and @roiArthurB on the Headless, it seems that in some part of the headless code, all the experiment of type batch are not taken into account. Cheers

chapuisk commented 5 years ago

I can quote Gama headless :

for (final ExperimentDescription expD : experiments) {
    if (!expD.getLitteral(IKeyword.TYPE).equals(IKeyword.BATCH)) {
        final IExperimentJob tj = ExperimentJob.loadAndBuildJob(expD, model.getFilePath(), model);
        tj.setSeed(12);
        res.add(tj);
    }
}

In the branch we are working on with @roiarthurb we try to build an xml file that take into account the (including batch) experiment define in .gaml model.