def setUp(self):
     self.cake_problem = have_cake()
     self.ac_problem_1 = air_cargo_p1()
     self.ac_problem_2 = air_cargo_p2()
     self.ac_problem_3 = air_cargo_p3()
     self.ac_problem_4 = air_cargo_p4()
     self.cake_node = Node(self.cake_problem.initial)
     self.ac_node_1 = Node(self.ac_problem_1.initial)
     self.ac_node_2 = Node(self.ac_problem_2.initial)
     self.ac_node_3 = Node(self.ac_problem_3.initial)
     self.ac_node_4 = Node(self.ac_problem_4.initial)
Exemple #2
0
def get_prob_specs():
    Probs = [acp.air_cargo_p1(), acp.air_cargo_p2(),
             acp.air_cargo_p3(), acp.air_cargo_p4()]

    problems_specs = {'Problem': [name for name in problems],
                      'Air cargo problem': [i+1 for i in range(len(problems))],
                      'Cargos': [len(p.cargos) for p in Probs],
                      'Planes': [len(p.planes) for p in Probs],
                      'Airports': [len(p.airports) for p in Probs],
                      'Goal': [len(p.goal) for p in Probs]}
    return pd.DataFrame(problems_specs)
Exemple #3
0
 def setUp(self):
     self.cake_problem = have_cake()
     self.ac_problem_1 = air_cargo_p1()
     self.ac_problem_2 = air_cargo_p2()
     self.ac_problem_3 = air_cargo_p3()
     self.ac_problem_4 = air_cargo_p4()
     self.cake_node = Node(self.cake_problem.initial)
     self.ac_node_1 = Node(self.ac_problem_1.initial)
     self.ac_node_2 = Node(self.ac_problem_2.initial)
     self.ac_node_3 = Node(self.ac_problem_3.initial)
     self.ac_node_4 = Node(self.ac_problem_4.initial)
     self.msg = "Make sure all your mutex tests pass before troubleshooting this function."