Draws are defined outside the MonteCarlo operator

42 views
Skip to first unread message

Saptarshi Sen

unread,
Feb 11, 2025, 10:28:41 AM2/11/25
to Biogeme
Dear Prof. Bierlaire,

Hope you are doing well.

I have performed a mixed logit model on Biogeme and it is running fine. I used Halton draws for the random number generations. However, when I am trying to estimate the elasticities or the market shares I get the following error -
"The following draws are defined outside the MonteCarlo operator: {'EC_B', 'ASC_B_Rand', 'EC_T', 'ASC_T_Rand'}". 
I can understand the meaning of the error but I cannot identify which part of the code needs to be modified. I tried different modifications but I cannot get rid of this error.
Please, if you could help me to identify the modification that I need to do in my code? I have attached the .py file to this email for your reference.

Looking forward to hearing from you.

Thank you so much. Kind regards.
Saptarshi
LD_SP_MXL_W_Elast1.py

Michel Bierlaire

unread,
Feb 11, 2025, 10:30:19 AM2/11/25
to saptar...@ucd.ie, Michel Bierlaire, Biogeme
You forgot to integrate.

MonteCarlo(elas_Bus_time)
> --
> 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 visit https://groups.google.com/d/msgid/biogeme/db173d35-d19f-43b8-9184-e975270b7bdcn%40googlegroups.com.
> <LD_SP_MXL_W_Elast1.py>

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

Reply all
Reply to author
Forward
0 new messages