Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lesquoyb opened this issue Sep 13, 2024 · 1 comment
Labels
About UI This is an UI-related issue or request 😱 Bug The issue reveals a bug in GAMA

Comments

@lesquoyb
Copy link
Contributor

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

@lesquoyb lesquoyb added 😱 Bug The issue reveals a bug in GAMA About UI This is an UI-related issue or request labels Sep 13, 2024
@AlexisDrogoul
Copy link
Member

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
About UI This is an UI-related issue or request 😱 Bug The issue reveals a bug in GAMA
Projects
None yet
Development

No branches or pull requests

2 participants