Skip to content

Commit

Permalink
All permutation simulation has been added along with a readme on how …
Browse files Browse the repository at this point in the history
…to simulate
  • Loading branch information
Darkros1245 committed May 16, 2024
1 parent 00bef4d commit af84301
Show file tree
Hide file tree
Showing 6 changed files with 545 additions and 37 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,19 @@ The backend can now be built:
cargo build
```

# Simulation
When you want to simulate, you have to recreate the database, to ensure that the database does not have any old data.
Go to the backend directory and execute the following
## Windows
>> .\make_new_db.bat
## Linux & Mac
>> ./make_new_db.sh
After that, the backend shall be executed in simulator mode
>> cargo run -- --simulator
Then open a new terminal in the simulator directory and modify the parameters in the compare function in `simulator/src/compare_alforithms.rs` to match the simulation.
It is important that the available wattage match the tasks, so given n tasks the available watt per timeslot should be [1000; 2*505n], but you may round the calculated number up to a "nicer" number.
When that is done, simply run the simulation
>> cargo run
Loading

0 comments on commit af84301

Please sign in to comment.