Skip to content

Commit

Permalink
fix readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Timotshak committed Feb 14, 2024
1 parent 699b943 commit df2369f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
============
Expand Down
8 changes: 4 additions & 4 deletions docs/source/Usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -93,4 +93,4 @@ When data was prepared and scheduler built, you should use scheduling pipeline t
.wg(wg) \
.contractors(contractors) \
.schedule(HEFTScheduler()) \
.finish()
.finish()[0]

0 comments on commit df2369f

Please sign in to comment.