by susiezhao » Thu Mar 09, 2023 4:05 pm
Thank you Professor. I have one last question.
In my scenario there is an attribute "Check-in luggage" with levels "yes" and "no". When the level is "no", the "Luggage check-in time" at the terminal is 0. The "Luggage check-in time" at the airport is also 0. "I don't know how to code this condition. I am attaching my code. Please help me to check.
Design
;alts = mode1, mode2
;rows = 64
;eff = (mnl,d)
;cond:
if(mode1.luggage=0, mode1.luggage_airport=0 AND mode2.luggage_terminal=0)
;model:
U(mode1) = b1[-0.05] * luggage_airport[0,10,20,30] +
b2[-0.05] * security_airport[5,12,19,26] +
luggage.dummy[0.1] * luggage[1,0] /
U(mode2) = b3[-0.1] * luggage_terminal[0,3,6,9] +
b4[-0.1] * security_terminal[3,5,7,9]
luggage * luggage[luggage]
$