[rules-users] Drools Planner: Vehicle routing problems

2012-02-24 Thread davidglassborow
together an example into my fork of planner, showing a simplified example of how I am approaching it, and the problem that can be replicated. https://github.com/davidglassborow/drools-planner/tree/vehicle_routing It is a very simple console app along the same lines as the hello world example

Re: [rules-users] Drools Planner: Vehicle routing problems

2012-02-24 Thread davidglassborow
Some more details on my problem: Here is an example of a vehicle routing solution, 2 crews and 4 Jobs A, B, C and D. The print out below is the solver and solutions found at each step (it prints out each chain of jobs) As you can see the initial solution is valid. The next and last solutions are

Re: [rules-users] Drools Planner: Vehicle routing problems

2012-02-27 Thread davidglassborow
is pointing both to A and to Crew1 ? It's only a single pointer? VrpCustomer.getPreviousAppereance() Indeed this is my problem. There seems to be more than 1 instance of B. I've debugged my example code, and then issue seems to be: https://github.com/davidglassborow/drools-planner/blob

Re: [rules-users] Drools Planner: Vehicle routing problems

2012-02-27 Thread davidglassborow
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