> On 8 Apr 2024, at 10:23, chao chen <
chenc...@gmail.com> wrote:
>
> Two years ago, i have used the Biogeme for estimating mixed logit model, and the running time is fine. Recently i have reused the Biogeme, there are many updates on the codes, and i have to rewrite a new code for estimate mixed logit model.
> But, i do not know why the running time is quite long even if only one parameter is used Monte-Carlo simulation.
It is because the default values have changed. The default number of draws is 20000.
Also, the default algorithm calculates the second derivatives, which can be slow for mixtures.
> I am wondering how can i speed up the algorithm. Am i right to use the following sentences to change estimate algorithm?
>
> the_biogeme = bio.BIOGEME(database, logprob)
> the_biogeme.algorithm_name = 'simple_bounds_BFGS'
> the_biogeme.number_of_draws=R
> the_biogeme.modelName = 'Normal_MixtureWithSocio_AllPopulation_OnlyRandom'
>
> i am quite upset with the function of biogeme.toml, can i directly change the code in this file?
For many users, the use of the TOML file was a big simplification.
Some parameters can be changed once the biogeme object has been created, like the algorithm name:
biogeme.algorithm_name = 'simple_bounds_BFGS'
However, for the number of draws, it is needed by the constructor and cannot be changed afterwards.
If you want to control it from the code, you can use the class Parameters in the module biogeme.parameters
https://biogeme.epfl.ch/sphinx/parameters.html#parameters
It allows you to set the values of the parameters, and to generate the TOML file.
>
> Thank you!!
>
> --
> You received this message because you are subscribed to the Google Groups "Biogeme" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
biogeme+u...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/biogeme/cbced54f-856b-43a6-8b87-85dcd14a250an%40googlegroups.com.
Michel Bierlaire
Transport and Mobility Laboratory
School of Architecture, Civil and Environmental Engineering
EPFL - Ecole Polytechnique Fédérale de Lausanne
http://transp-or.epfl.ch
http://people.epfl.ch/michel.bierlaire