def searchfile (jobs, machines, path = "../tests/"):
    """
    Given a number of jobs and a number of machines that define
    the complexity of a problem, this method looks for the file
    with the correct benchmarks.

    If the exactly specified number of jobs and machine is not found,
    an exception is raised.

    """
    try:
        filename = f"t_j{jobs}_m{machines}.txt"
        f = open(path + filename)
        f.close()
        return filename
    except:
        raise Exception("Bechmarks with required caracteristics not found.")