diff --git a/README.rst b/README.rst index 57c5c682..097bb313 100644 --- a/README.rst +++ b/README.rst @@ -130,14 +130,14 @@ To use SAMPO for the schedule generation you need to prepare: from sampo.scheduler.genetic import GeneticScheduler - scheduler = GeneticScheduler(mutate_order=0.1, - mutate_resources=0.3) + scheduler = GeneticScheduler(mutate_order=0.05, + mutate_resources=0.05) 2.2. Schedule generation .. code-block:: python - schedule = scheduler.schedule(wg, contractors) + schedule = scheduler.schedule(wg, contractors)[0] 3. Pipeline structure @@ -151,7 +151,7 @@ When data was prepared and scheduler built, you should use scheduling pipeline t .wg(wg) \ .contractors(contractors) \ .schedule(HEFTScheduler()) \ - .finish() + .finish()[0] Supported by ============ diff --git a/docs/source/Usage.rst b/docs/source/Usage.rst index ea8a6106..60ecfb80 100644 --- a/docs/source/Usage.rst +++ b/docs/source/Usage.rst @@ -72,14 +72,14 @@ To use SAMPO for the schedule generation you need to prepare: from sampo.scheduler.genetic import GeneticScheduler - scheduler = GeneticScheduler(mutate_order=0.1, - mutate_resources=0.3) + scheduler = GeneticScheduler(mutate_order=0.05, + mutate_resources=0.05) 2.2. Schedule generation .. code-block:: python - schedule = scheduler.schedule(wg, contractors) + schedule = scheduler.schedule(wg, contractors)[0] 3. Pipeline structure @@ -93,4 +93,4 @@ When data was prepared and scheduler built, you should use scheduling pipeline t .wg(wg) \ .contractors(contractors) \ .schedule(HEFTScheduler()) \ - .finish() \ No newline at end of file + .finish()[0] \ No newline at end of file