def fitness(individual, data):
    values, weights = 0, 0
    for selected, box in zip(individual, data):
        if selected:
            values += box.get('value')
            weights += box.get('weight')
    if 15 > weights:
        values = 0
    return values
dataset/ETHPy150Open remiomosowon/pyeasyga/examples/one_dimensional_knapsack.py/fitness/swapped operands of `>`