-
Notifications
You must be signed in to change notification settings - Fork 12
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
GenAlg number of simulation runs #89
Comments
Hi! Attaching a genetic algorithm simdesign to an nl objectnl@simdesign <- simdesign_GenAlg(nl = nl, Run algorithm with run_nl_dynresults <- run_nl_dyn(nl = nl, seed = getsim(nl, "simseeds")[1]) Attach results to nlsetsim(nl, "simoutput") <- results Store nl objectsaveRDS(nl, file.path(nl@experiment@outpath, "genAlg.rds")) |
Thank you for your time and reply! Just a clarifying question related to you answer. Does that mean that in your example GenAlg will make 30000 runs (popSize * iters)? Or there will be different number of runs once your GenAlg experiment is over? |
No problem. Unfortunately I am not an expert myself. With my code I let the model search 100 times for better parameters. The population parameter refers to the number of individuals (also known as chromosomes or solutions) in each generation of the algorithm. It determines the diversity and exploration capability of the algorithm. (However, I don't really understand this parameter myself tbo) Maybe have a look at the upper left figure in Salecker et al. (2019). Here you can see, that the model searches 100 times for better parameters, each run depending on the previous run. If this parameter would the 10, the algorithm would stop adapting the model parameters after 10 iterations (as seen in my plot below). From what I found in literature it is very difficult to decide on an appropriate value for the population parameter. Two low is not good, because there is too little variation in the population. However, it should take less time then. When the parameter is very high it's also not perfect, because it will take very long and there is too much "chaos". I think this depends on your model. If it is very complex, maybe start with small values, because otherwise it will take forever. I tried my model with quite small population and iteration values at first. Usually the algorithm will not significantly further improve after a certain number of iterations. Hope this helps. |
Thank you so much again. I got what you mean. I'll keep trial runs for now to see how much time it will take for different pop size and iters to run experiments and which results they give. |
How can I determine the number of simulation runs that will be executed by nlrx before the completion of all GenAlg runs? When attempting to print nl, the displayed table showed "number of runs calculated: ✗."
The text was updated successfully, but these errors were encountered: