Оновити 'main.py'
This commit is contained in:
parent
9bff7908ee
commit
bb6911b7bb
9
main.py
9
main.py
@ -59,6 +59,15 @@ func_output = []
|
||||
for e in menu.extension(['meal',]):
|
||||
func_output.append(e)
|
||||
|
||||
def fittnes_f(sol):
|
||||
output = 0
|
||||
if sol in menu.extension([sol],):
|
||||
output = 0.5
|
||||
#output = np.sum(sol * func_input)
|
||||
r_out = 1
|
||||
fitness = 1.0 / np.abs(output - r_out)
|
||||
return fitness
|
||||
|
||||
####
|
||||
class Tile:
|
||||
def __init__(self, x, y, canwalk, table, kitchen):
|
||||
|
Loading…
Reference in New Issue
Block a user