Example #1
0
i = 0

usage_models = [PoissonUsageModel(scale=1)]

for rv in rvs:
    for horizon in [0, 1, 2, 3, 4]:
        for u in usage_models:
            for b in [0.001, 1, 10, 100, 1000, 10000]:
                for h in [1]:
                    configs.append(ModelConfig(
                        gamma=1,
                        lead_time=0,
                        info_state_rvs=None,
                        holding_cost=h,
                        backlogging_cost=b,
                        setup_cost=0,
                        unit_price=0,
                        usage_model=u,
                        increments=1,
                        horizon=horizon,
                        info_rv=rv,
                        label="k0_geometric_bookings",
                        label_index=i)
                    )
                    i += 1

if __name__ == "__main__":
    xs = list(range(0, 30))
    ts = list(range(0, 21))
    run_configs(configs, ts, xs, pools=8)
from scm_optimization.model import StationaryOptModel, ModelConfig, run_configs, run_config
from scripts.optimization_model.model_configs import action_increment_configs, \
    non_convex_search_deterministic_usage_configs, leadtime_configs

if __name__ == "__main__":
    xs = [0]
    ts = list(range(0, 25))
    print(action_increment_configs.configs)
    run_configs(non_convex_search_deterministic_usage_configs.configs,
                ts,
                xs,
                pools=8)
    run_configs(leadtime_configs.configs, ts, xs, pools=8)