Commit 58c2684f authored by nojhan's avatar nojhan
Browse files

readme update

- remove the need to rename snp
- more info on the expected interface
parent 22b88982
......@@ -75,10 +75,6 @@ Exercises
### Setup
To setup your own solver, first copy the `snp.py` file and rename it
with your name, for instance `dreo.py`.
You will then add your algorithm(s) into this executable.
Two example algorithms are provided: a `random` search
and a `greedy` search.
Several useful stopping criterions are provided.
......@@ -87,6 +83,14 @@ for both numeric and bitstring encodings.
The `snp.py` file shows how to assemble either a numeric greedy solver
or a bitstring greedy solver.
To setup your own solver, add your algorithm(s) into the `algo.py` module,
then assemble its instance under its name into `snp.py`.
For instance, if you created the `annealing` algorithm,
you will be able to immediatly assemble `num_annealing` and `bit_annealing`.
One should be able to call your solvers with `python3 snp.py --solver num_annealing`,
for instance.
### List of exercises
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment