Finds optimal allocations, started testing