-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* lib-feature: (24 commits) added rho subset func, fix README fix test script fix test script permissions updated functionality examples, fix requirements file update documentation, rename problem module update combine_t algorithm. some fixes updated tests, removed problem instance dependency from space module updated combine_t algorithm partially updated unit tests added formulas core precheck to solver using unit propagation, fix gad sampling generation connect 'pysatmc' subcomponent to other evoguess modules, update requirements SAT logic has been separated (variables, encoding, solver and instance modules) into new 'pysatmc' subcomponent and implemented its functionality updated encoding interface, added maxSAT solver try to fix header in source encoding added source encoding added minisatCS wrapper separate budget logic to module, update function typings, fix intervals, update tests fix tests fixed runtime errors and added log_search algorithm separated space module to package, added searchable interface, added interval backdoors ...
- Loading branch information
Showing
203 changed files
with
6,283 additions
and
3,601 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
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 |
---|---|---|
|
@@ -3,5 +3,6 @@ docs/build | |
data/experiments | ||
|
||
tools/ | ||
examples/data | ||
examples/logs | ||
examples/solvers |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
from typing import TYPE_CHECKING | ||
|
||
from ..abc import Evolution | ||
from ..module.mutation import Mutation | ||
from ..module.selection import Selection | ||
|
||
from typings.optional import Int | ||
|
||
if TYPE_CHECKING: | ||
from core.model.point import PointSet | ||
|
||
|
||
class LogSearch(Evolution): | ||
slug = 'evolution:log_search' | ||
|
||
def __init__(self, population_size: int, mutation: Mutation, selection: Selection, | ||
min_update_size: int = 1, max_queue_size: Int = None): | ||
self.population_size = population_size | ||
min_update_size = min(min_update_size, population_size) | ||
super().__init__(min_update_size, max_queue_size, mutation, selection) | ||
|
||
def join(self, parents: 'PointSet', offspring: 'PointSet') -> 'PointSet': | ||
return sorted([*parents, *offspring])[:self.population_size] | ||
|
||
def __info__(self): | ||
return { | ||
**super().__info__(), | ||
'mutation': self.mutation, | ||
'selection': self.selection, | ||
'population_size': self.population_size, | ||
} | ||
|
||
|
||
__all__ = [ | ||
'LogSearch' | ||
] |
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.