Ejemplo n.º 1
0
def get_latest_heuristic():
    """
    Returns the latest heuristic that was found with the genetic algorithm
    """
    return Heuristics.Main(weights=tuple(LATEST_VECTOR))
Ejemplo n.º 2
0
def vec_to_agent(vector):
    """
    Returns a new agent based on the given vector
    """
    heur = Heuristics.Main(weights=tuple(vector))
    return Agent.OneMoveHeuristicAgent(heuristic=heur)