Constraints on continuous attributes
Posted: Wed Jun 17, 2015 3:10 am
Hi All
A small silly question, how can I add constraints on continuous attribute.. I would like to fix threshold base on other attributes levels
Design
;alts = alt1*,alt2*,alt3*,alt4*,alt5*,none
;rows = 400
;block= 50
;eff = (mnl,d)
;cond:
if(alt1.booking1=4, alt1.seat1=1),
if(alt3.booking3=4, alt3.seat3=1),
if(alt1.booking1=4, alt1.mobility1=[1,2,3]),
if(alt3.booking3=4, alt3.mobility3=[1,2,3]),
if(alt1.booking1=4, alt1.flex1=1),
if(alt1.booking1=4, alt2.flex2=1),
if(alt3.booking3=4, alt3.flex3=1),
if(alt3.booking3=4, alt4.flex4=1),
if(alt1.flex1=1, alt1.price1 < .8)
;model:
price is defined as continuous attribute....
The unconstrained syntax is running quite fine..
Best
Naji
A small silly question, how can I add constraints on continuous attribute.. I would like to fix threshold base on other attributes levels
Design
;alts = alt1*,alt2*,alt3*,alt4*,alt5*,none
;rows = 400
;block= 50
;eff = (mnl,d)
;cond:
if(alt1.booking1=4, alt1.seat1=1),
if(alt3.booking3=4, alt3.seat3=1),
if(alt1.booking1=4, alt1.mobility1=[1,2,3]),
if(alt3.booking3=4, alt3.mobility3=[1,2,3]),
if(alt1.booking1=4, alt1.flex1=1),
if(alt1.booking1=4, alt2.flex2=1),
if(alt3.booking3=4, alt3.flex3=1),
if(alt3.booking3=4, alt4.flex4=1),
if(alt1.flex1=1, alt1.price1 < .8)
;model:
price is defined as continuous attribute....
The unconstrained syntax is running quite fine..
Best
Naji