Beta is not defined error

20 views
Skip to first unread message

Ahmet Heperkan

unread,
Dec 28, 2022, 5:15:42 PM12/28/22
to Biogeme
Hello everyone. I'm getting Beta not defined error. do you know how I can fix this? 

#Parameters to be estimated

#Base alternative is alternative1, set ASC1 to 0 in the utility function

 

ASC1 = Beta('ASC1',0,-10,10,1)

ASC2 = Beta('ASC2',0,-10,10,0)

ASC3 = Beta('ASC3',0,-10,10,0)

Untitledx.png

Bierlaire Michel

unread,
Dec 28, 2022, 5:31:04 PM12/28/22
to hepe...@gmail.com, Bierlaire Michel, Biogeme
You forgot to import the expressions;

from biogeme.expressions import Beta

--
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/5e962a5d-862e-41b6-8953-2966f450df91n%40googlegroups.com.
<Untitledx.png>

Reply all
Reply to author
Forward
0 new messages