[rules-users] Drools Planner: Vehicle routing problems

Geoffrey De Smet ge0ffrey.spam at gmail.com
Fri Mar 2 07:27:27 EST 2012


Just pushed my vehicle routing prototype, it works pretty well :)

Op 27-02-12 12:16, Geoffrey De Smet schreef:
>
> Op 27-02-12 12:07, davidglassborow schreef:
>> Geoffrey,
>>
>>> Check your Solution's cloning method.
>>> If you clone the Visit, you need to make sure that planning variables of
>>> each cloned Visit are pointing to the new clones and not the original
>>> Visits.
>>> See my implementation in TSP.
>> Sure, my clone method is virtually the same as your TSP one (my whole
>> project was basically a copy of TSP):
>>
>> https://github.com/davidglassborow/drools-planner/blob/vehicle_routing/drools-planner-examples/src/main/java/org/drools/planner/examples/tsp/domain/TravelingSalesmanTour.java#L96
>>
>> and
>>
>> https://github.com/davidglassborow/drools-planner/blob/vehicle_routing/drools-planner-examples/src/main/java/org/drools/planner/examples/vehiclerouting/domain/VehicleRouter.java#L41
>>
>> Did you have to make any other changes to make multi TSP work ?  Was it just
>> a case of adding another domicile, and then removing the return to domicile
>> cost rule ?
> Yep and fix the gui not to draw it.
>> Cheers,
>> Dave
>>
>> --
>> View this message in context: http://drools.46999.n3.nabble.com/Drools-Planner-Vehicle-routing-problems-tp3772797p3780331.html
>> Sent from the Drools: User forum mailing list archive at Nabble.com.
>> _______________________________________________
>> rules-users mailing list
>> rules-users at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-users
>>

-- 
With kind regards,
Geoffrey De Smet





More information about the rules-users mailing list