gama-platform / gama

Main repository for developing the 2024+ versions of GAMA
https://gama-platform.org
GNU General Public License v3.0
17 stars 5 forks source link

[batch] wrong message in the status bar when pref_parallel_simulations_all is true #325

Open lesquoyb opened 5 days ago

lesquoyb commented 5 days ago

Describe the bug I noticed that the text in the status bar wasn't making much sense during a batch experiments when pref_parallel_simulations_all is true:

  1. In an exploration experiment:

    1. the value after "Run" doesn't change at all during the whole execution and is always equals to the total number of simulations to be run instead of the number of simulations that finished or are currently running.
    2. just after there's the number that is supposed to be the number of currently running simulations over the number of repetition, but for me it is the total number of simulations to be run - the size of a batch over the number of repetition and it also doesn't change along the time: image
  2. In an optimization experiment the number after "Run" is updated but the numbers of currently for example Optimization from Exploration.gaml I always have "0/2 simulations" with 2 being the number of repetition asked. But I actually am running batches of 6 simulations. image

To Reproduce Steps to reproduce the behavior:

  1. For optimization you can run Optimization from Exploration.gaml in the model library
  2. For exploration you can run this model:
    
    model batchtest

/ Insert your model definition here /

global { float start <- gama.machine_time; float seed <- 3.1415; int k;

reflex d {
    int size <- 200;
    let m <- matrix_with({size,size}, rnd(0,255));
    m <- shuffle(m);
    loop i from:0 to:size-1 {
        loop j from:0 to:size-1 {
            m[i,j] <- rnd(255);
        }
    }
}

reflex f when:cycle=49{
    write "simulation " + int(self);
}

}

experiment b type:batch until:cycle>=50 repeat:100 keep_simulations:false{ parameter "test i" var:k <- 0 among:[0,1,2];

}



**Expected behavior**
Messages that make sense in the status bar when pref_parallel_simulations_all is true
AlexisDrogoul commented 4 days ago

To be honest I am a little bit lost in what should be written here. For instance, in these two experiments, what would be the correct sentence / numbers ?