I need to code this in .NET but no idea how.. but I have the logic :
Lets say we have Point A, Point B, Point C and Point D.
We have 2 cars at Point A.
Distance from A to B is 5 miles.
Distance from A to C is 17 miles.
Distance from A to D is 11 miles.
Point A is the main warehouse.
Let's say also that we have priority 1 wich is the time ordered and Priority 2 wich is the distance.
Let's say time ordered for Point B is 13:00
Let's say time ordered for Point C is 12:00
Let's say time ordered for Point D is 14:00
Ok so what it needs to calculate is... from A wich car will go to the first client always remembering the priority. So here since both car are at the same place it doens matter wich car.
Lets say Car 1 leaves and of course it will go at Point C because time is 12:00.
So because Car 1 left.. car 2 is still at warehouse it will go at Point B so the car can be useful while Car 1 is going to Point C.
From there we need to compare is car 1 or car 2 will go to Point D ?
Lets say distance from B to D is 12 miles and distance from C to D is 9 miles
well it should be Car 2.
is there a way we can code this in vb.net ??