From fc9072ede722bb935a6397131465a2563e1b9f78 Mon Sep 17 00:00:00 2001 From: oblonski Date: Wed, 11 Mar 2015 18:25:27 +0100 Subject: [PATCH] prepare release - update whats_new --- WHATS_NEW.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/WHATS_NEW.md b/WHATS_NEW.md index 558a5e9c..70b59818 100644 --- a/WHATS_NEW.md +++ b/WHATS_NEW.md @@ -39,15 +39,18 @@ Using the new algorithm is as simple as coding this:
VehicleRoutingAlgorithm algorithm = Jsprit.createAlgorithm(problem);
-or, if you need to assign your own ConstraintManager or to configure the algorithm: +or, if you need to assign your own ConstraintManager or to just configure the algorithm by yourself code:
VehicleRoutingAlgorithm algorithm = Jsprit.Builder.newInstance(problem) ... .buildAlgorithm();
-Since, the algorithm is more computational intense, it is recommended to use all your idle computational power by setting +Since, the algorithm is more computationally intense, it is recommended to use all your idle computational power by setting the number of threads you want to use (try for example noThreads = #cores+1 first).
VehicleRoutingAlgorithm algorithm = Jsprit.Builder.newInstance(problem).setProperty(Parameter.THREADS,5).buildAlgorithm();
+By using .setProperty(...) you can basically configure the algorithm the way you want. +This way, you can even change it back to the schrimpf-configuration. + The second major improvement is that we changed the way locations are defined. Instead of separately assigning location-id and coordinates, we encapsulated these attributes in an object called Location. It is not only clearer, but it allows you to assign a location index. Thus, you can save the transport times and distances