Saataa andagii !
This commit is contained in:
parent
788e5fdf5f
commit
da4d3dca5f
2 changed files with 182 additions and 3 deletions
9
main.py
9
main.py
|
@ -2,21 +2,24 @@
|
|||
|
||||
# project libs importations
|
||||
import lib.ultra_mastermind_obj as libobj
|
||||
import lib.ultra_mastermind_imp as libomp
|
||||
import lib.ultra_mastermind_imp as libimp
|
||||
|
||||
# constants
|
||||
PM = "Hello, world!"
|
||||
NG = 1000
|
||||
NG = 2000
|
||||
N = 400
|
||||
TS = 0.5
|
||||
TM = 0.01
|
||||
ALPHA = 0.5
|
||||
FITNESS_METHOD = 3
|
||||
FITNESS_METHOD = 1
|
||||
|
||||
# main function
|
||||
def main() -> None:
|
||||
pop = libobj.Population(pm = PM, ng = NG, n = N, ts = TS, tm = TM, alpha = ALPHA, fm = FITNESS_METHOD)
|
||||
pop.run()
|
||||
|
||||
pop = libimp.new_population(PM, NG, N, TS, TM, ALPHA, FITNESS_METHOD)
|
||||
libimp.run(pop)
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue