Include a log function in the utility function

Skip to first unread message

yufei xu

Sep 22, 2021, 3:20:25 AMSep 22
to Biogeme
Dear Professor Bierlaire,

I am trying to use a log function in the utility function for the destination choice model. The utility function will look like: U = a1x1+ a2x2 + log(a3x3+a4x4), where a and x are coefficients and variables respectively. I would like to know if Biogeme allows me to do so.


Bierlaire Michel

Sep 22, 2021, 3:22:47 AMSep 22
to, Bierlaire Michel, Biogeme
Yes. Just import the “log” function from “biogeme.expressions” module. 

from biogeme.expressions import log

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
To view this discussion on the web visit

Reply all
Reply to author
0 new messages