Best Food - For all Patches (genetic algorithm)


  • Hi,

    I wrote a genetic algorithm that find for every Patch the best food.

    My best found Combination (94.45 SP without the 12 Basepoints) was:
    Macaroons
    Sweet Salad
    Sweet Salad
    Elk Wellington
    Bear S U P R E M

    Have Fun =)


  • 3
    Posts
    10420
    Views
    Log in to reply


  • hey mate, im total idiot to python is there away u can make a video or screenshot heelp how to set it up ? so more there is not that good in python can get it 2?



  • nice script.. currently getting script warnings/errors when running it though.

    S:\eco>python find_best_food.py
    find_best_food.py:43: SyntaxWarning: name 'ban_items' is assigned to before global declaration
    global max_food_combinations, ban_items
    C:\Python27\lib\site-packages\deap\tools_hypervolume\pyhv.py:33: ImportWarning: Falling back to the python version of hypervolume module. Expect this to be very slow.
    "module. Expect this to be very slow.", ImportWarning)
    Traceback (most recent call last):
    File "find_best_food.py", line 93, in <module>
    data = load_data(path_to_food)
    File "find_best_food.py", line 75, in load_data
    if(len(only_craft) == 0 or match.group("craft") in craftstations):
    NameError: global name 'only_craft' is not defined


3
Posts
10420
Views
Log in to reply

Internal error.

Oops! Looks like something went wrong!