def run_large_experiment(): num_dcs = 10 num_customers = 50 num_commodities = 5 orders_per_day = 10 dcs_per_customer = 3 demand_mean = 200 demand_var = 20 num_steps = 30 num_episodes = 5 runner_random = experiment_runner.create_random_experiment_runner( num_dcs, num_customers, dcs_per_customer, demand_mean, demand_var, num_commodities, orders_per_day, num_steps) runner_dqn = experiment_runner.create_dqn_experiment_runner( num_dcs, num_customers, dcs_per_customer, demand_mean, demand_var, num_commodities, orders_per_day, num_steps) runner_zero = experiment_runner.create_alwayszero_experiment_runner( num_dcs, num_customers, dcs_per_customer, demand_mean, demand_var, num_commodities, orders_per_day, num_steps) runner_bestfit = experiment_runner.create_bestfit_experiment_runner( num_dcs, num_customers, dcs_per_customer, demand_mean, demand_var, num_commodities, orders_per_day, num_steps) #runner_random.run_episodes(num_steps, num_episodes, orders_per_day, experiment_name='dumb_agent') runner_dqn.run_episodes(num_steps, num_episodes, orders_per_day, experiment_name='dqn_agent')
def run_random(): print("***RUNNING RANDOM***") runner_random = experiment_runner.create_random_experiment_runner( num_dcs, num_customers, dcs_per_customer, demand_mean, demand_var, num_commodities, orders_per_day, num_steps, ) runner_random.run_episodes( num_steps, num_episodes, orders_per_day, experiment_name=f"dumb_few_warehouses" ) print("***DONE RANDOM***")
def run_random(): print("***RUNNING RANDOM***") reproducibility.set_seeds(0) print("Check this array to ensure reproducibility") print("Reproducibility RANDOM", np.random.randint(0, 500, size=(5, 1))) runner_random = experiment_runner.create_random_experiment_runner( num_dcs, num_customers, dcs_per_customer, demand_mean, demand_var, num_commodities, orders_per_day, num_steps, ) runner_random.run_episodes(num_steps, num_episodes, orders_per_day, experiment_name=f"dumb_few_warehouses_v3") print("***DONE RANDOM***")
print(( num_dcs, num_customers, dcs_per_customer, demand_mean, demand_var, num_commodities, orders_per_day, num_steps, )) runner_random = experiment_runner.create_random_experiment_runner( num_dcs, num_customers, dcs_per_customer, demand_mean, demand_var, num_commodities, orders_per_day, num_steps, ) # runner_bestfit = experiment_runner.create_bestfit_experiment_runner(num_dcs, num_customers, dcs_per_customer, # demand_mean, # demand_var, num_commodities, orders_per_day, # num_steps) runner_random.run_episodes( num_steps, num_episodes, orders_per_day, experiment_name=f"dumb_agent_experiment_{i}") # runner_bestfit.run_episodes( # num_steps, num_episodes, orders_per_day, experiment_name=f"bestfit_agent_experiment_{i}"