def load_simulation(self, N, M, goods_list, M_perishable, perish_period, production_delay, value, parallel, selection_rule): env = sim.create_enviroment(N, M, goods_list, M_perishable, perish_period, production_delay, value, parallel, selection_rule) output = Output(env) env.output = output sim.start_simulation(N, M, goods_list, M_perishable, perish_period, production_delay, value, output, env, selection_rule)
def startSimulation(self): if self.check_parameters(): self.setGoodsList() env = sim.create_enviroment(self.N, self.M, self.goods_list, self.M_perishable, self.perish_period, self.production_delay, self.value, self.parallel, self.selection_rule, self.like_factors, self.balance, self.nominal_values, self.start_agents, self.optimize) self.output = Output(env) env.output = self.output sim.start_simulation(self.N, self.M, self.goods_list, self.M_perishable, self.perish_period, self.production_delay, self.value, self.output, env, self.selection_rule)