def main(): # file = "instances/f1_l-d_kp_10_269" # items, total_weight = parser.read_file(file) items, total_weight = parser.read_file("instances/" + sys.argv[1]) objective_function, m = model.solve(items, total_weight) model.print_used_vars(m) print("Objective Function: " + str(objective_function))
def main(): graph, n = parser.read_file('Instances/instance1.txt') objective_function, m = model.solve(graph, n) model.print_used_vars(m) print("Objective Function: " + str(objective_function))
def main(): n, m, c, f = parser.read_file('Instances/instance1.txt') objective_function, model_created = model.solve(n, m, c, f) model.print_used_vars(model_created) print("Objective Function: " + str(objective_function))