-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
massive rework & cleanup; implement pydantic validation and extend ch…
…ecks, simplify tests with matrixes, remove cumbersome test fixtures, use simple typing, create and update SolverSettings, rework n_max checks to properly respect calculation times, major performance upgrade to bruteforce solver (closes #66), fix and include gapfill solver, prepare structure for #68 metrics
- Loading branch information
1 parent
5c2812b
commit d131042
Showing
18 changed files
with
312 additions
and
332 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,19 @@ | ||
version = "v1.0.0" | ||
from pydantic import BaseModel | ||
|
||
# solver parameter | ||
n_max_precise = 9 # 10 takes 30s on a beefy desktop, 9 only 1.2s | ||
n_max = 500 # around 1 million with n^2 | ||
# used for git tags | ||
version = "v1.0.1" | ||
|
||
|
||
class SolverSettings(BaseModel): | ||
bruteforce_max_combinations: int | ||
n_max: int | ||
|
||
|
||
# TODO should be startup parameter | ||
solverSettings = SolverSettings( | ||
# Desktop with Ryzen 2700X: | ||
# (4, 3, 2)=1260 => 0.1s, (4, 3, 3)=4200 => 0.8s, (5, 3, 3)=9240 => 8s | ||
bruteforce_max_combinations=5000, | ||
# that is already unusable x100, but the solver takes it easily | ||
n_max=2000 | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.