[Limdep Nlogit List] Can I use simulation command for RPL models?

Jason Ong doctorjasonong at gmail.com
Mon Dec 28 17:55:10 AEDT 2020


hi,

I am interested in running simulation models from an RPL model
but when I want to change the scenario, do I need to rerun the RPL each
time (takes an hour for each scenario)
or is there a way to run the RPL model (use a "$" before ;simulation) and
save it
then just run the simulation separately?
thanks for your help

NLOGIT
; Lhs = choicev, cset, altij
; Choices = A,B,C
; rpl
; fcn=cost1(n), cost2(n), cost3(n),loc1(n), loc2(n), loc3(n), loc4(n),
app1(n), app2(n), app3(n), result1(n), result2(n), result3(n), result4(n),
deliv1(n), deliv2(n), deliv3(n), deliv4(n), extra(n)
; pds=15
; pts=500
; halton
; Model:
U(A,B)=cost1*cost1+cost2*cost2+cost3*cost3+loc1*loc1+loc2*loc2+loc3*loc3+loc4*loc4+app1*app1+app2*app2+app3*app3
+result1*result1+result2*result2+result3*result3+result4*result4+deliv1*deliv1+deliv2*deliv2+deliv3*deliv3+deliv4*deliv4
+extra*extra/
U(C)=neither
;SIMULATION
;SCENARIO:cost1(a,b)={*}0/cost2(a,b)={*}1/cost3(a,b)={*}0/loc1(a,b)={*}-1/loc2(a,b)={*}-1/loc3(a,b)={*}-1/loc4(a,b)={*}-1/
app1(a,b)={*}1/app2(a,b)={*}0/app3(a,b)={*}0/result1(a,b)={*}0/result2(a,b)={*}1/result3(a,b)={*}0/result4(a,b)={*}0/
deliv1(a,b)={*}-1/deliv2(a,b)={*}-1/deliv3(a,b)={*}-1/deliv4(a,b)={*}-1/extra(a,b)={*}-1

&
cost1(a,b)={*}-1/cost2(a,b)={*}-1/cost3(a,b)={*}-1/loc1(a,b)={*}-1/loc2(a,b)={*}-1/loc3(a,b)={*}-1/loc4(a,b)={*}-1/
app1(a,b)={*}1/app2(a,b)={*}0/app3(a,b)={*}0/result1(a,b)={*}0/result2(a,b)={*}1/result3(a,b)={*}0/result4(a,b)={*}0/
deliv1(a,b)={*}-1/deliv2(a,b)={*}-1/deliv3(a,b)={*}-1/deliv4(a,b)={*}-1/extra(a,b)={*}-1
$

*Jason Ong*


More information about the Limdep mailing list