Car configurator sample - How to represent incompatible

Proposed Answer Car configurator sample - How to represent incompatible

  • Friday, July 06, 2012 3:30 AM
     
     

    Hi,

    I am trying to customize the car configurator sample.  If I want to ensure compatibility of the  car Engine - V8 , Car Model - starter  and Car Package - Comfort I can add a constraint like

     (CarEngine =="V8" &  CarModel == "starter"   & CarPackage == "comfort"    )

    What if I want to make sure that the combination (V8,starter, comfort) should not exisit.

    What constraint should I give ?  Any idea ?

All Replies

  • Monday, July 09, 2012 9:20 AM
     
     Proposed Answer

    Negate the constraint. 

     !(CarEngine =="V8" &  CarModel == "starter"   & CarPackage == "comfort"    )

    Not(CarEngine =="V8" &  CarModel == "starter"   & CarPackage == "comfort" )