├── src ├── contrib │ └── pysp │ │ ├── pyro │ │ ├── __init__.py │ │ └── tests │ │ │ └── __init__.py │ │ ├── tests │ │ ├── examples │ │ │ ├── __init__.py │ │ │ ├── test_model │ │ │ │ ├── continuous │ │ │ │ │ ├── Scenario1.dat │ │ │ │ │ ├── Scenario2.dat │ │ │ │ │ └── Scenario3.dat │ │ │ │ ├── discrete │ │ │ │ │ ├── Scenario1.dat │ │ │ │ │ ├── Scenario2.dat │ │ │ │ │ ├── AAAReadme.txt │ │ │ │ │ ├── coolplot.s │ │ │ │ │ ├── wrhosetter.s │ │ │ │ │ └── rhosetter.cfg │ │ │ │ ├── feas │ │ │ │ │ ├── Scenario1.dat │ │ │ │ │ └── Scenario2.dat │ │ │ │ ├── slackpenalty │ │ │ │ │ ├── Scenario1.dat │ │ │ │ │ ├── Scenario2.dat │ │ │ │ │ ├── AAAReadme.txt │ │ │ │ │ ├── coolplot.s │ │ │ │ │ ├── wrhosetter.s │ │ │ │ │ └── rhosetter.cfg │ │ │ │ ├── twovarslack │ │ │ │ │ ├── Scenario1.dat │ │ │ │ │ ├── Scenario2.dat │ │ │ │ │ ├── AAAReadme.txt │ │ │ │ │ ├── wrhosetter.s │ │ │ │ │ └── coolplot.s │ │ │ │ └── badph.pdf │ │ │ └── baselines │ │ │ │ ├── TestPHFarmer.test10.phbestbound.txt.baseline │ │ │ │ ├── TestPHFarmer.test11.phbestbound.txt.baseline │ │ │ │ ├── TestPHFarmer.test12.phbestbound.txt.baseline │ │ │ │ ├── TestPHFarmer.test7.phbestbound.txt.baseline │ │ │ │ ├── TestPHFarmer.test8.phbestbound.txt.baseline │ │ │ │ ├── TestPHFarmer.test9.phbestbound.txt.baseline │ │ │ │ ├── TestEFFarmer.test1.ef_solution.json.baseline.gz │ │ │ │ ├── TestEFFarmer.test2.ef_solution.json.baseline.gz │ │ │ │ ├── TestEFFarmer.test3.ef_solution.json.baseline.gz │ │ │ │ ├── TestEFFarmer.test4.ef_solution.json.baseline.gz │ │ │ │ ├── TestEFFarmer.test5.ef_solution.json.baseline.gz │ │ │ │ ├── TestPHFarmer.test1.ph_history.json.baseline.gz │ │ │ │ ├── TestPHFarmer.test1.ph_solution.json.baseline.gz │ │ │ │ ├── TestPHFarmer.test10.ph_history.json.baseline.gz │ │ │ │ ├── TestPHFarmer.test11.ph_history.json.baseline.gz │ │ │ │ ├── TestPHFarmer.test12.ph_history.json.baseline.gz │ │ │ │ ├── TestPHFarmer.test13.ph_history.json.baseline.gz │ │ │ │ ├── TestPHFarmer.test14.ph_history.json.baseline.gz │ │ │ │ ├── TestPHFarmer.test2.ph_history.json.baseline.gz │ │ │ │ ├── TestPHFarmer.test2.ph_solution.json.baseline.gz │ │ │ │ ├── TestPHFarmer.test3.ph_history.json.baseline.gz │ │ │ │ ├── TestPHFarmer.test3.ph_solution.json.baseline.gz │ │ │ │ ├── TestPHFarmer.test4.ph_history.json.baseline.gz │ │ │ │ ├── TestPHFarmer.test4.ph_solution.json.baseline.gz │ │ │ │ ├── TestPHFarmer.test5.ph_history.json.baseline.gz │ │ │ │ ├── TestPHFarmer.test5.ph_solution.json.baseline.gz │ │ │ │ ├── TestPHFarmer.test6.ph_history.json.baseline.gz │ │ │ │ ├── TestPHFarmer.test6.ph_solution.json.baseline.gz │ │ │ │ ├── TestPHFarmer.test7.ph_history.json.baseline.gz │ │ │ │ ├── TestPHFarmer.test7.ph_solution.json.baseline.gz │ │ │ │ ├── TestPHFarmer.test8.ph_history.json.baseline.gz │ │ │ │ ├── TestPHFarmer.test8.ph_solution.json.baseline.gz │ │ │ │ ├── TestPHFarmer.test9.ph_history.json.baseline.gz │ │ │ │ ├── TestPHFarmer.test9.ph_solution.json.baseline.gz │ │ │ │ ├── TestPHSizes3.test1.ph_history.json.baseline.gz │ │ │ │ ├── TestPHSizes3.test1.ph_solution.json.baseline.gz │ │ │ │ ├── TestPHFarmer.test10.ph_solution.json.baseline.gz │ │ │ │ ├── TestPHFarmer.test11.ph_solution.json.baseline.gz │ │ │ │ ├── TestPHFarmer.test12.ph_solution.json.baseline.gz │ │ │ │ ├── TestPHFarmer.test13.ph_solution.json.baseline.gz │ │ │ │ ├── TestPHFarmer.test14.ph_solution.json.baseline.gz │ │ │ │ ├── TestEFFarmerMax.test1.ef_solution.json.baseline.gz │ │ │ │ ├── TestEFFarmerMax.test2.ef_solution.json.baseline.gz │ │ │ │ ├── TestEFFarmerMax.test3.ef_solution.json.baseline.gz │ │ │ │ ├── TestEFFarmerMax.test4.ef_solution.json.baseline.gz │ │ │ │ ├── TestEFFarmerMax.test5.ef_solution.json.baseline.gz │ │ │ │ ├── TestPHFarmer.test14_withef.ph_history.json.baseline.gz │ │ │ │ ├── TestPHFarmer.test1_withef.ph_history.json.baseline.gz │ │ │ │ ├── TestPHFarmer.test1_withef.ph_solution.json.baseline.gz │ │ │ │ ├── TestPHFarmer.test6_withef.ph_history.json.baseline.gz │ │ │ │ ├── TestPHFarmer.test6_withef.ph_solution.json.baseline.gz │ │ │ │ ├── TestPHFarmer.test14_withef.ph_solution.json.baseline.gz │ │ │ │ ├── TestPHNetworkFlow1ef3.test1.ph_history.json.baseline.gz │ │ │ │ ├── TestPHNetworkFlow1ef3.test1.ph_solution.json.baseline.gz │ │ │ │ ├── TestPHNetworkFlow1ef3.test2.ph_history.json.baseline.gz │ │ │ │ ├── TestPHNetworkFlow1ef3.test2.ph_solution.json.baseline.gz │ │ │ │ ├── TestPHNetworkFlow1ef3.test3.ph_history.json.baseline.gz │ │ │ │ ├── TestPHNetworkFlow1ef3.test3.ph_solution.json.baseline.gz │ │ │ │ ├── TestPHFarmer.test14_withef.postphef_solution.json.baseline.gz │ │ │ │ ├── TestPHFarmer.test1_withef.postphef_solution.json.baseline.gz │ │ │ │ ├── TestPHFarmer.test6_withef.postphef_solution.json.baseline.gz │ │ │ │ ├── TestPHForestryUnequalProbs.test1.ph_history.json.baseline.gz │ │ │ │ ├── TestPHForestryUnequalProbs.test1.ph_solution.json.baseline.gz │ │ │ │ ├── TestPHFarmer.test10.phbound.txt.baseline │ │ │ │ ├── TestPHFarmer.test11.phbound.txt.baseline │ │ │ │ ├── TestPHFarmer.test12.phbound.txt.baseline │ │ │ │ └── TestPHFarmer.test9.phbound.txt.baseline │ │ ├── unit │ │ │ ├── testdata │ │ │ │ ├── root.dat │ │ │ │ ├── n2.dat │ │ │ │ ├── n3.dat │ │ │ │ ├── s2.dat │ │ │ │ ├── s3.dat │ │ │ │ ├── n1.dat │ │ │ │ ├── s1.dat │ │ │ │ ├── yaml_data │ │ │ │ │ ├── s1.yaml │ │ │ │ │ ├── s2.yaml │ │ │ │ │ └── s3.yaml │ │ │ │ ├── archive_test.tgz │ │ │ │ ├── bundles.dat │ │ │ │ └── ScenarioStructure.py │ │ │ ├── baselines │ │ │ │ ├── lagrange_pr_testPRoptimal.csv │ │ │ │ ├── lagrange_pr_testOptimalSelections.csv │ │ │ │ ├── lagrange_pr_testScenarioList.csv │ │ │ │ ├── forestry_ef.baseline.lp.gz │ │ │ │ ├── sizes3_ef.baseline.lp.gz │ │ │ │ ├── networkflow1ef10_ef.baseline.lp.gz │ │ │ │ ├── lagrangian_cc_networkflow1ef3_cplex.baseline │ │ │ │ └── farmer_ef_with_solve_cplex_with_csv_writer_StageCostDetail.csv │ │ │ └── __init__.py │ │ ├── convert │ │ │ ├── schuripopt_baselines │ │ │ │ ├── piecewise_bundles_baseline │ │ │ │ │ └── PySP_Subproblems.txt │ │ │ │ ├── piecewise_baseline │ │ │ │ │ ├── PySP_Subproblems.txt │ │ │ │ │ ├── Scenario1.col │ │ │ │ │ ├── Scenario2.col │ │ │ │ │ └── Scenario3.col │ │ │ │ └── farmer_baseline │ │ │ │ │ ├── PySP_Subproblems.txt │ │ │ │ │ ├── AverageScenario.row │ │ │ │ │ ├── AboveAverageScenario.row │ │ │ │ │ ├── BelowAverageScenario.row │ │ │ │ │ ├── AverageScenario.col │ │ │ │ │ ├── AboveAverageScenario.col │ │ │ │ │ └── BelowAverageScenario.col │ │ │ ├── ddsip_baselines │ │ │ │ ├── farmer_baseline │ │ │ │ │ ├── ddsip.stdin │ │ │ │ │ ├── rhs.sc │ │ │ │ │ ├── ddsip.config │ │ │ │ │ └── core.lp.symbols │ │ │ │ └── piecewise_baseline │ │ │ │ │ ├── ddsip.stdin │ │ │ │ │ ├── cost.sc │ │ │ │ │ ├── ddsip.config │ │ │ │ │ └── core.lp.symbols │ │ │ ├── smps_embedded_baselines │ │ │ │ ├── baa99_embedded_LP_symbolic_names_baseline │ │ │ │ │ ├── baa99.cor.symbols │ │ │ │ │ └── baa99.tim │ │ │ │ ├── baa99_embedded_MPS_symbolic_names_baseline │ │ │ │ │ ├── baa99.cor.symbols │ │ │ │ │ └── baa99.tim │ │ │ │ ├── piecewise_embedded_MPS_symbolic_names_baseline │ │ │ │ │ ├── piecewise.tim │ │ │ │ │ └── piecewise.cor.symbols │ │ │ │ └── piecewise_embedded_LP_symbolic_names_baseline │ │ │ │ │ └── piecewise.cor.symbols │ │ │ ├── smps_baselines │ │ │ │ ├── farmer_MPS_baseline │ │ │ │ │ ├── farmer.tim │ │ │ │ │ ├── farmer.cor.symbols │ │ │ │ │ ├── farmer.sto.struct │ │ │ │ │ ├── farmer.col │ │ │ │ │ ├── scenario_files │ │ │ │ │ │ ├── farmer.tim.AverageScenario │ │ │ │ │ │ ├── farmer.mps.symbols.AverageScenario │ │ │ │ │ │ ├── farmer.tim.AboveAverageScenario │ │ │ │ │ │ ├── farmer.tim.BelowAverageScenario │ │ │ │ │ │ ├── farmer.mps.symbols.AboveAverageScenario │ │ │ │ │ │ ├── farmer.mps.symbols.BelowAverageScenario │ │ │ │ │ │ ├── farmer.sto.struct.AverageScenario │ │ │ │ │ │ ├── farmer.sto.struct.AboveAverageScenario │ │ │ │ │ │ ├── farmer.sto.struct.BelowAverageScenario │ │ │ │ │ │ ├── farmer.col.AverageScenario │ │ │ │ │ │ ├── farmer.col.AboveAverageScenario │ │ │ │ │ │ ├── farmer.col.BelowAverageScenario │ │ │ │ │ │ ├── farmer.row.AverageScenario │ │ │ │ │ │ ├── farmer.row.AboveAverageScenario │ │ │ │ │ │ ├── farmer.row.BelowAverageScenario │ │ │ │ │ │ ├── farmer.sto.AverageScenario │ │ │ │ │ │ ├── farmer.sto.AboveAverageScenario │ │ │ │ │ │ └── farmer.sto.BelowAverageScenario │ │ │ │ │ └── farmer.row │ │ │ │ ├── farmer_LP_baseline │ │ │ │ │ ├── farmer.cor.symbols │ │ │ │ │ ├── farmer.sto.struct │ │ │ │ │ ├── farmer.col │ │ │ │ │ ├── scenario_files │ │ │ │ │ │ ├── farmer.lp.symbols.AverageScenario │ │ │ │ │ │ ├── farmer.lp.symbols.AboveAverageScenario │ │ │ │ │ │ ├── farmer.lp.symbols.BelowAverageScenario │ │ │ │ │ │ ├── farmer.sto.struct.AverageScenario │ │ │ │ │ │ ├── farmer.sto.struct.AboveAverageScenario │ │ │ │ │ │ ├── farmer.sto.struct.BelowAverageScenario │ │ │ │ │ │ ├── farmer.col.AverageScenario │ │ │ │ │ │ ├── farmer.col.AboveAverageScenario │ │ │ │ │ │ ├── farmer.col.BelowAverageScenario │ │ │ │ │ │ ├── farmer.row.AverageScenario │ │ │ │ │ │ ├── farmer.row.AboveAverageScenario │ │ │ │ │ │ ├── farmer.row.BelowAverageScenario │ │ │ │ │ │ ├── farmer.sto.AverageScenario │ │ │ │ │ │ ├── farmer.sto.AboveAverageScenario │ │ │ │ │ │ └── farmer.sto.BelowAverageScenario │ │ │ │ │ └── farmer.row │ │ │ │ ├── piecewise_MPS_baseline │ │ │ │ │ ├── piecewise.tim │ │ │ │ │ ├── scenario_files │ │ │ │ │ │ ├── piecewise.tim.Scenario1 │ │ │ │ │ │ ├── piecewise.tim.Scenario2 │ │ │ │ │ │ ├── piecewise.tim.Scenario3 │ │ │ │ │ │ ├── piecewise.col.Scenario1 │ │ │ │ │ │ ├── piecewise.col.Scenario2 │ │ │ │ │ │ ├── piecewise.col.Scenario3 │ │ │ │ │ │ ├── piecewise.mps.symbols.Scenario1 │ │ │ │ │ │ ├── piecewise.mps.symbols.Scenario2 │ │ │ │ │ │ ├── piecewise.mps.symbols.Scenario3 │ │ │ │ │ │ ├── piecewise.row.Scenario1 │ │ │ │ │ │ ├── piecewise.row.Scenario2 │ │ │ │ │ │ └── piecewise.row.Scenario3 │ │ │ │ │ ├── piecewise.col │ │ │ │ │ ├── piecewise.cor.symbols │ │ │ │ │ └── piecewise.row │ │ │ │ ├── farmer_MPS_ignore_derived_baseline │ │ │ │ │ ├── farmer.tim │ │ │ │ │ ├── farmer.cor.symbols │ │ │ │ │ ├── farmer.sto.struct │ │ │ │ │ ├── farmer.col │ │ │ │ │ ├── scenario_files │ │ │ │ │ │ ├── farmer.tim.AverageScenario │ │ │ │ │ │ ├── farmer.mps.symbols.AverageScenario │ │ │ │ │ │ ├── farmer.tim.AboveAverageScenario │ │ │ │ │ │ ├── farmer.tim.BelowAverageScenario │ │ │ │ │ │ ├── farmer.mps.symbols.AboveAverageScenario │ │ │ │ │ │ ├── farmer.mps.symbols.BelowAverageScenario │ │ │ │ │ │ ├── farmer.sto.struct.AverageScenario │ │ │ │ │ │ ├── farmer.sto.struct.AboveAverageScenario │ │ │ │ │ │ ├── farmer.sto.struct.BelowAverageScenario │ │ │ │ │ │ ├── farmer.col.AverageScenario │ │ │ │ │ │ ├── farmer.col.AboveAverageScenario │ │ │ │ │ │ ├── farmer.col.BelowAverageScenario │ │ │ │ │ │ ├── farmer.row.AverageScenario │ │ │ │ │ │ ├── farmer.row.AboveAverageScenario │ │ │ │ │ │ ├── farmer.row.BelowAverageScenario │ │ │ │ │ │ ├── farmer.sto.AverageScenario │ │ │ │ │ │ ├── farmer.sto.AboveAverageScenario │ │ │ │ │ │ └── farmer.sto.BelowAverageScenario │ │ │ │ │ └── farmer.row │ │ │ │ ├── farmer_LP_ignore_derived_baseline │ │ │ │ │ ├── farmer.cor.symbols │ │ │ │ │ ├── farmer.sto.struct │ │ │ │ │ ├── farmer.col │ │ │ │ │ ├── scenario_files │ │ │ │ │ │ ├── farmer.lp.symbols.AverageScenario │ │ │ │ │ │ ├── farmer.lp.symbols.AboveAverageScenario │ │ │ │ │ │ ├── farmer.lp.symbols.BelowAverageScenario │ │ │ │ │ │ ├── farmer.sto.struct.AverageScenario │ │ │ │ │ │ ├── farmer.sto.struct.AboveAverageScenario │ │ │ │ │ │ ├── farmer.sto.struct.BelowAverageScenario │ │ │ │ │ │ ├── farmer.col.AverageScenario │ │ │ │ │ │ ├── farmer.col.AboveAverageScenario │ │ │ │ │ │ ├── farmer.col.BelowAverageScenario │ │ │ │ │ │ ├── farmer.row.AverageScenario │ │ │ │ │ │ ├── farmer.row.AboveAverageScenario │ │ │ │ │ │ ├── farmer.row.BelowAverageScenario │ │ │ │ │ │ ├── farmer.sto.AverageScenario │ │ │ │ │ │ ├── farmer.sto.AboveAverageScenario │ │ │ │ │ │ └── farmer.sto.BelowAverageScenario │ │ │ │ │ └── farmer.row │ │ │ │ ├── piecewise_MPS_ignore_derived_baseline │ │ │ │ │ ├── piecewise.tim │ │ │ │ │ ├── scenario_files │ │ │ │ │ │ ├── piecewise.tim.Scenario1 │ │ │ │ │ │ ├── piecewise.tim.Scenario2 │ │ │ │ │ │ ├── piecewise.tim.Scenario3 │ │ │ │ │ │ ├── piecewise.col.Scenario1 │ │ │ │ │ │ ├── piecewise.col.Scenario2 │ │ │ │ │ │ ├── piecewise.col.Scenario3 │ │ │ │ │ │ ├── piecewise.mps.symbols.Scenario1 │ │ │ │ │ │ ├── piecewise.mps.symbols.Scenario2 │ │ │ │ │ │ ├── piecewise.mps.symbols.Scenario3 │ │ │ │ │ │ ├── piecewise.row.Scenario1 │ │ │ │ │ │ ├── piecewise.row.Scenario2 │ │ │ │ │ │ └── piecewise.row.Scenario3 │ │ │ │ │ ├── piecewise.col │ │ │ │ │ ├── piecewise.cor.symbols │ │ │ │ │ └── piecewise.row │ │ │ │ ├── piecewise_MPS_symbolic_names_baseline │ │ │ │ │ ├── piecewise.tim │ │ │ │ │ ├── scenario_files │ │ │ │ │ │ ├── piecewise.tim.Scenario1 │ │ │ │ │ │ ├── piecewise.tim.Scenario2 │ │ │ │ │ │ ├── piecewise.tim.Scenario3 │ │ │ │ │ │ ├── piecewise.mps.symbols.Scenario1 │ │ │ │ │ │ ├── piecewise.mps.symbols.Scenario2 │ │ │ │ │ │ ├── piecewise.mps.symbols.Scenario3 │ │ │ │ │ │ ├── piecewise.col.Scenario1 │ │ │ │ │ │ ├── piecewise.col.Scenario2 │ │ │ │ │ │ └── piecewise.col.Scenario3 │ │ │ │ │ ├── piecewise.cor.symbols │ │ │ │ │ └── piecewise.col │ │ │ │ ├── piecewise_MPS_symbolic_names_ignore_derived_baseline │ │ │ │ │ ├── piecewise.tim │ │ │ │ │ ├── scenario_files │ │ │ │ │ │ ├── piecewise.tim.Scenario1 │ │ │ │ │ │ ├── piecewise.tim.Scenario2 │ │ │ │ │ │ ├── piecewise.tim.Scenario3 │ │ │ │ │ │ ├── piecewise.mps.symbols.Scenario1 │ │ │ │ │ │ ├── piecewise.mps.symbols.Scenario2 │ │ │ │ │ │ ├── piecewise.mps.symbols.Scenario3 │ │ │ │ │ │ ├── piecewise.col.Scenario1 │ │ │ │ │ │ ├── piecewise.col.Scenario2 │ │ │ │ │ │ └── piecewise.col.Scenario3 │ │ │ │ │ ├── piecewise.cor.symbols │ │ │ │ │ └── piecewise.col │ │ │ │ ├── farmer_LP_symbolic_names_baseline │ │ │ │ │ ├── farmer.cor.symbols │ │ │ │ │ ├── scenario_files │ │ │ │ │ │ ├── farmer.lp.symbols.AverageScenario │ │ │ │ │ │ ├── farmer.lp.symbols.AboveAverageScenario │ │ │ │ │ │ ├── farmer.lp.symbols.BelowAverageScenario │ │ │ │ │ │ ├── farmer.sto.struct.AverageScenario │ │ │ │ │ │ ├── farmer.sto.struct.AboveAverageScenario │ │ │ │ │ │ ├── farmer.sto.struct.BelowAverageScenario │ │ │ │ │ │ ├── farmer.col.AverageScenario │ │ │ │ │ │ ├── farmer.col.AboveAverageScenario │ │ │ │ │ │ ├── farmer.col.BelowAverageScenario │ │ │ │ │ │ ├── farmer.sto.AverageScenario │ │ │ │ │ │ ├── farmer.row.AverageScenario │ │ │ │ │ │ ├── farmer.row.AboveAverageScenario │ │ │ │ │ │ ├── farmer.row.BelowAverageScenario │ │ │ │ │ │ ├── farmer.sto.AboveAverageScenario │ │ │ │ │ │ └── farmer.sto.BelowAverageScenario │ │ │ │ │ ├── farmer.sto.struct │ │ │ │ │ ├── farmer.col │ │ │ │ │ └── farmer.row │ │ │ │ ├── farmer_MPS_symbolic_names_baseline │ │ │ │ │ ├── farmer.cor.symbols │ │ │ │ │ ├── farmer.tim │ │ │ │ │ ├── scenario_files │ │ │ │ │ │ ├── farmer.mps.symbols.AverageScenario │ │ │ │ │ │ ├── farmer.mps.symbols.AboveAverageScenario │ │ │ │ │ │ ├── farmer.mps.symbols.BelowAverageScenario │ │ │ │ │ │ ├── farmer.tim.AverageScenario │ │ │ │ │ │ ├── farmer.tim.AboveAverageScenario │ │ │ │ │ │ ├── farmer.tim.BelowAverageScenario │ │ │ │ │ │ ├── farmer.sto.struct.AverageScenario │ │ │ │ │ │ ├── farmer.sto.struct.AboveAverageScenario │ │ │ │ │ │ ├── farmer.sto.struct.BelowAverageScenario │ │ │ │ │ │ ├── farmer.col.AverageScenario │ │ │ │ │ │ ├── farmer.col.AboveAverageScenario │ │ │ │ │ │ ├── farmer.col.BelowAverageScenario │ │ │ │ │ │ ├── farmer.sto.AverageScenario │ │ │ │ │ │ ├── farmer.row.AverageScenario │ │ │ │ │ │ ├── farmer.row.AboveAverageScenario │ │ │ │ │ │ ├── farmer.row.BelowAverageScenario │ │ │ │ │ │ ├── farmer.sto.AboveAverageScenario │ │ │ │ │ │ └── farmer.sto.BelowAverageScenario │ │ │ │ │ ├── farmer.sto.struct │ │ │ │ │ ├── farmer.col │ │ │ │ │ └── farmer.row │ │ │ │ ├── farmer_LP_symbolic_names_ignore_derived_baseline │ │ │ │ │ ├── farmer.cor.symbols │ │ │ │ │ ├── scenario_files │ │ │ │ │ │ ├── farmer.lp.symbols.AverageScenario │ │ │ │ │ │ ├── farmer.lp.symbols.AboveAverageScenario │ │ │ │ │ │ ├── farmer.lp.symbols.BelowAverageScenario │ │ │ │ │ │ ├── farmer.sto.struct.AverageScenario │ │ │ │ │ │ ├── farmer.sto.struct.AboveAverageScenario │ │ │ │ │ │ ├── farmer.sto.struct.BelowAverageScenario │ │ │ │ │ │ ├── farmer.col.AverageScenario │ │ │ │ │ │ ├── farmer.col.AboveAverageScenario │ │ │ │ │ │ ├── farmer.col.BelowAverageScenario │ │ │ │ │ │ ├── farmer.sto.AverageScenario │ │ │ │ │ │ ├── farmer.row.AverageScenario │ │ │ │ │ │ ├── farmer.row.AboveAverageScenario │ │ │ │ │ │ ├── farmer.row.BelowAverageScenario │ │ │ │ │ │ ├── farmer.sto.AboveAverageScenario │ │ │ │ │ │ └── farmer.sto.BelowAverageScenario │ │ │ │ │ ├── farmer.sto.struct │ │ │ │ │ ├── farmer.col │ │ │ │ │ └── farmer.row │ │ │ │ ├── farmer_MPS_symbolic_names_ignore_derived_baseline │ │ │ │ │ ├── farmer.cor.symbols │ │ │ │ │ ├── farmer.tim │ │ │ │ │ ├── scenario_files │ │ │ │ │ │ ├── farmer.mps.symbols.AverageScenario │ │ │ │ │ │ ├── farmer.mps.symbols.AboveAverageScenario │ │ │ │ │ │ ├── farmer.mps.symbols.BelowAverageScenario │ │ │ │ │ │ ├── farmer.tim.AverageScenario │ │ │ │ │ │ ├── farmer.tim.AboveAverageScenario │ │ │ │ │ │ ├── farmer.tim.BelowAverageScenario │ │ │ │ │ │ ├── farmer.sto.struct.AverageScenario │ │ │ │ │ │ ├── farmer.sto.struct.AboveAverageScenario │ │ │ │ │ │ ├── farmer.sto.struct.BelowAverageScenario │ │ │ │ │ │ ├── farmer.col.AverageScenario │ │ │ │ │ │ ├── farmer.col.AboveAverageScenario │ │ │ │ │ │ ├── farmer.col.BelowAverageScenario │ │ │ │ │ │ ├── farmer.sto.AverageScenario │ │ │ │ │ │ ├── farmer.row.AverageScenario │ │ │ │ │ │ ├── farmer.row.AboveAverageScenario │ │ │ │ │ │ └── farmer.row.BelowAverageScenario │ │ │ │ │ ├── farmer.sto.struct │ │ │ │ │ ├── farmer.col │ │ │ │ │ └── farmer.row │ │ │ │ ├── piecewise_LP_baseline │ │ │ │ │ ├── piecewise.col │ │ │ │ │ ├── scenario_files │ │ │ │ │ │ ├── piecewise.col.Scenario1 │ │ │ │ │ │ ├── piecewise.col.Scenario2 │ │ │ │ │ │ ├── piecewise.col.Scenario3 │ │ │ │ │ │ ├── piecewise.lp.symbols.Scenario1 │ │ │ │ │ │ ├── piecewise.lp.symbols.Scenario2 │ │ │ │ │ │ ├── piecewise.lp.symbols.Scenario3 │ │ │ │ │ │ ├── piecewise.row.Scenario1 │ │ │ │ │ │ ├── piecewise.row.Scenario2 │ │ │ │ │ │ └── piecewise.row.Scenario3 │ │ │ │ │ ├── piecewise.cor.symbols │ │ │ │ │ └── piecewise.row │ │ │ │ ├── piecewise_LP_ignore_derived_baseline │ │ │ │ │ ├── piecewise.col │ │ │ │ │ ├── scenario_files │ │ │ │ │ │ ├── piecewise.col.Scenario1 │ │ │ │ │ │ ├── piecewise.col.Scenario2 │ │ │ │ │ │ ├── piecewise.col.Scenario3 │ │ │ │ │ │ ├── piecewise.lp.symbols.Scenario1 │ │ │ │ │ │ ├── piecewise.lp.symbols.Scenario2 │ │ │ │ │ │ ├── piecewise.lp.symbols.Scenario3 │ │ │ │ │ │ ├── piecewise.row.Scenario1 │ │ │ │ │ │ ├── piecewise.row.Scenario2 │ │ │ │ │ │ └── piecewise.row.Scenario3 │ │ │ │ │ ├── piecewise.cor.symbols │ │ │ │ │ └── piecewise.row │ │ │ │ ├── piecewise_LP_symbolic_names_baseline │ │ │ │ │ ├── piecewise.cor.symbols │ │ │ │ │ ├── scenario_files │ │ │ │ │ │ ├── piecewise.lp.symbols.Scenario1 │ │ │ │ │ │ ├── piecewise.lp.symbols.Scenario2 │ │ │ │ │ │ ├── piecewise.lp.symbols.Scenario3 │ │ │ │ │ │ ├── piecewise.col.Scenario1 │ │ │ │ │ │ ├── piecewise.col.Scenario2 │ │ │ │ │ │ └── piecewise.col.Scenario3 │ │ │ │ │ └── piecewise.col │ │ │ │ └── piecewise_LP_symbolic_names_ignore_derived_baseline │ │ │ │ │ ├── piecewise.cor.symbols │ │ │ │ │ ├── scenario_files │ │ │ │ │ ├── piecewise.lp.symbols.Scenario1 │ │ │ │ │ ├── piecewise.lp.symbols.Scenario2 │ │ │ │ │ ├── piecewise.lp.symbols.Scenario3 │ │ │ │ │ ├── piecewise.col.Scenario1 │ │ │ │ │ ├── piecewise.col.Scenario2 │ │ │ │ │ └── piecewise.col.Scenario3 │ │ │ │ │ └── piecewise.col │ │ │ ├── piecewise_scenario_tree_bundles.py │ │ │ ├── model_unsupported_variable_bounds.py │ │ │ ├── model_bad_component_type.py │ │ │ └── __init__.py │ │ ├── evalxhat │ │ │ ├── farmer_ef_costs.json │ │ │ ├── networkx_ef_costs.json │ │ │ ├── simple_quadratic_ef_costs.json │ │ │ ├── hydro_ef_costs.json │ │ │ ├── finance_ef_costs.json │ │ │ └── __init__.py │ │ ├── scenariotreemanager │ │ │ ├── postinit_callback1.py │ │ │ ├── postinit_callback2.py │ │ │ ├── aggregate_callback1.py │ │ │ └── aggregate_callback2.py │ │ ├── __init__.py │ │ └── benders │ │ │ └── __init__.py │ │ ├── AUTHORS.txt │ │ ├── bbph │ │ ├── archive │ │ │ ├── AAAReadme.txt │ │ │ └── testnetflow.bash │ │ └── testphscript.bash │ │ └── version.py ├── CapitalInvestments │ ├── __init__.py │ └── investment_utils │ │ └── __init__.py └── __init__.py ├── tests ├── gold │ ├── IncrementalNPV │ │ └── dumpCostOutput.csv │ └── IncrementalNPV_options │ │ └── dumpCostOutput.csv ├── unit_tests │ └── CPM │ │ └── tests ├── CapitalInvestments │ ├── skp │ │ └── gold │ │ │ ├── test_dkp.csv │ │ │ ├── test_skp.csv │ │ │ ├── test_noIndex.csv │ │ │ ├── test_npv.csv │ │ │ ├── test_skp_external_constraint.csv │ │ │ ├── test_mandated.csv │ │ │ └── test_bkp.csv │ ├── mkp │ │ └── gold │ │ │ ├── test_mkp_1.csv │ │ │ ├── test_mkp.csv │ │ │ ├── test_mkp_noindex.csv │ │ │ ├── test_mkp_t.csv │ │ │ └── test_mkp_weing.csv │ └── mckp │ │ ├── gold │ │ └── test_mckp.csv │ │ └── tests ├── Scheduling │ └── tests ├── mkp │ └── availableCapitals.py └── MilestoneTestsSeptFY19 │ ├── use_case_II │ ├── tests │ └── MC │ │ ├── condenser_retubing.py │ │ ├── emergency_diesel_generators.py │ │ ├── service_water_system.py │ │ ├── reactor_vessel_internals.py │ │ ├── replace_lp_turbine.py │ │ ├── hp_feedwater_heater_upgrade_npv.py │ │ ├── seismic_modification.py │ │ └── moisture_separator_reheater.py │ └── use_case_III │ └── tests ├── doc ├── logos │ ├── LOGOS.jpg │ └── LOGOS.png ├── demos │ └── CPM │ │ ├── model1.png │ │ └── model1A.png ├── tests │ ├── pics │ │ ├── DOEbwlogo.pdf │ │ └── inl-left_black.pdf │ └── Makefile ├── sqa │ ├── rtr │ │ └── pics │ │ │ ├── DOEbwlogo.pdf │ │ │ └── inl-left_black.pdf │ ├── sdd │ │ ├── pics │ │ │ ├── DOEbwlogo.pdf │ │ │ └── inl-left_black.pdf │ │ └── DesignStakeHoldersAndConcerns.tex │ ├── srs │ │ └── pics │ │ │ ├── DOEbwlogo.pdf │ │ │ └── inl-left_black.pdf │ ├── LOGOS_SQA_Status_Dashboard.pptx │ └── CIlist │ │ └── LST-1291_LOGOS_Configuration_Items_List.docx ├── web │ └── source │ │ └── figures │ │ ├── CVaR.jpg │ │ ├── image1.png │ │ ├── image11.jpg │ │ ├── image2.png │ │ ├── image3.png │ │ └── LogosRepo.jpg ├── user_manual │ ├── figures │ │ ├── CVaR.jpg │ │ ├── image1.pdf │ │ ├── image2.pdf │ │ ├── image3.pdf │ │ ├── image11.jpg │ │ └── LogosRepo.jpg │ ├── pics │ │ ├── DOEbwlogo.pdf │ │ └── inl-left_black.pdf │ └── Makefile └── CapitalInvestments │ ├── model_extension.docx │ ├── Maintenance Planning.docx │ ├── problem_description.docx │ ├── Optimization Algorithms.docx │ ├── dro_formulation_number2.pdf │ ├── Stochastic_Capital_Budgeting.docx │ ├── Capital_Budgeting_Design_Requirements.docx │ └── Distributional Robust Optimization Model Formulation for Capital Budgeting Full.docx ├── XSDSchemas └── validate_xml.sh └── __init__.py /src/contrib/pysp/pyro/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/contrib/pysp/pyro/tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/unit/testdata/root.dat: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/contrib/pysp/AUTHORS.txt: -------------------------------------------------------------------------------- 1 | See www.pyomo.org 2 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/unit/testdata/n2.dat: -------------------------------------------------------------------------------- 1 | param p := 2.0; -------------------------------------------------------------------------------- /src/contrib/pysp/tests/unit/testdata/n3.dat: -------------------------------------------------------------------------------- 1 | param p := 3.0; -------------------------------------------------------------------------------- /src/contrib/pysp/tests/unit/testdata/s2.dat: -------------------------------------------------------------------------------- 1 | param p := 2.0; -------------------------------------------------------------------------------- /src/contrib/pysp/tests/unit/testdata/s3.dat: -------------------------------------------------------------------------------- 1 | param p := 3.0; -------------------------------------------------------------------------------- /src/contrib/pysp/tests/unit/testdata/n1.dat: -------------------------------------------------------------------------------- 1 | param p := 1.0; 2 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/unit/testdata/s1.dat: -------------------------------------------------------------------------------- 1 | param p := 1.0; 2 | -------------------------------------------------------------------------------- /tests/gold/IncrementalNPV/dumpCostOutput.csv: -------------------------------------------------------------------------------- 1 | fp,NPV 2 | 0.1,21.8624457439 3 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/test_model/continuous/Scenario1.dat: -------------------------------------------------------------------------------- 1 | param c := 1; -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/test_model/continuous/Scenario2.dat: -------------------------------------------------------------------------------- 1 | param c := -1; -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/test_model/continuous/Scenario3.dat: -------------------------------------------------------------------------------- 1 | param c := 1; -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/test_model/discrete/Scenario1.dat: -------------------------------------------------------------------------------- 1 | param c := 10; -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/test_model/discrete/Scenario2.dat: -------------------------------------------------------------------------------- 1 | param c := -10; -------------------------------------------------------------------------------- /doc/logos/LOGOS.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/doc/logos/LOGOS.jpg -------------------------------------------------------------------------------- /doc/logos/LOGOS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/doc/logos/LOGOS.png -------------------------------------------------------------------------------- /src/contrib/pysp/tests/unit/testdata/yaml_data/s1.yaml: -------------------------------------------------------------------------------- 1 | null: 2 | p: 3 | null: 1.0 4 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/unit/testdata/yaml_data/s2.yaml: -------------------------------------------------------------------------------- 1 | null: 2 | p: 3 | null: 2.0 4 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/unit/testdata/yaml_data/s3.yaml: -------------------------------------------------------------------------------- 1 | null: 2 | p: 3 | null: 3.0 4 | -------------------------------------------------------------------------------- /doc/demos/CPM/model1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/doc/demos/CPM/model1.png -------------------------------------------------------------------------------- /doc/demos/CPM/model1A.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/doc/demos/CPM/model1A.png -------------------------------------------------------------------------------- /doc/tests/pics/DOEbwlogo.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/doc/tests/pics/DOEbwlogo.pdf -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/test_model/discrete/AAAReadme.txt: -------------------------------------------------------------------------------- 1 | a single variable oscillation example 2 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/unit/baselines/lagrange_pr_testPRoptimal.csv: -------------------------------------------------------------------------------- 1 | 0.0, 108879.328 2 | 1.0, 129654.16 3 | -------------------------------------------------------------------------------- /doc/sqa/rtr/pics/DOEbwlogo.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/doc/sqa/rtr/pics/DOEbwlogo.pdf -------------------------------------------------------------------------------- /doc/sqa/sdd/pics/DOEbwlogo.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/doc/sqa/sdd/pics/DOEbwlogo.pdf -------------------------------------------------------------------------------- /doc/sqa/srs/pics/DOEbwlogo.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/doc/sqa/srs/pics/DOEbwlogo.pdf -------------------------------------------------------------------------------- /doc/web/source/figures/CVaR.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/doc/web/source/figures/CVaR.jpg -------------------------------------------------------------------------------- /src/CapitalInvestments/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright 2020, Battelle Energy Alliance, LLC 2 | # ALL RIGHTS RESERVED 3 | -------------------------------------------------------------------------------- /doc/tests/pics/inl-left_black.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/doc/tests/pics/inl-left_black.pdf -------------------------------------------------------------------------------- /doc/user_manual/figures/CVaR.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/doc/user_manual/figures/CVaR.jpg -------------------------------------------------------------------------------- /doc/user_manual/figures/image1.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/doc/user_manual/figures/image1.pdf -------------------------------------------------------------------------------- /doc/user_manual/figures/image2.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/doc/user_manual/figures/image2.pdf -------------------------------------------------------------------------------- /doc/user_manual/figures/image3.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/doc/user_manual/figures/image3.pdf -------------------------------------------------------------------------------- /doc/user_manual/pics/DOEbwlogo.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/doc/user_manual/pics/DOEbwlogo.pdf -------------------------------------------------------------------------------- /doc/web/source/figures/image1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/doc/web/source/figures/image1.png -------------------------------------------------------------------------------- /doc/web/source/figures/image11.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/doc/web/source/figures/image11.jpg -------------------------------------------------------------------------------- /doc/web/source/figures/image2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/doc/web/source/figures/image2.png -------------------------------------------------------------------------------- /doc/web/source/figures/image3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/doc/web/source/figures/image3.png -------------------------------------------------------------------------------- /src/contrib/pysp/tests/unit/baselines/lagrange_pr_testOptimalSelections.csv: -------------------------------------------------------------------------------- 1 | 2 | Scenario1,Scenario2,Scenario3 3 | -------------------------------------------------------------------------------- /tests/unit_tests/CPM/tests: -------------------------------------------------------------------------------- 1 | [Tests] 2 | [./utils] 3 | type = 'RavenPython' 4 | input = 'CPM.py' 5 | [../] 6 | [] -------------------------------------------------------------------------------- /doc/sqa/rtr/pics/inl-left_black.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/doc/sqa/rtr/pics/inl-left_black.pdf -------------------------------------------------------------------------------- /doc/sqa/sdd/pics/inl-left_black.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/doc/sqa/sdd/pics/inl-left_black.pdf -------------------------------------------------------------------------------- /doc/sqa/srs/pics/inl-left_black.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/doc/sqa/srs/pics/inl-left_black.pdf -------------------------------------------------------------------------------- /doc/user_manual/figures/image11.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/doc/user_manual/figures/image11.jpg -------------------------------------------------------------------------------- /doc/web/source/figures/LogosRepo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/doc/web/source/figures/LogosRepo.jpg -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/schuripopt_baselines/piecewise_bundles_baseline/PySP_Subproblems.txt: -------------------------------------------------------------------------------- 1 | B1.nl 2 | B2.nl 3 | -------------------------------------------------------------------------------- /tests/CapitalInvestments/skp/gold/test_dkp.csv: -------------------------------------------------------------------------------- 1 | 1,2,3,4,5,6,7,8,9,MaxNPV 2 | 1.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,4.388 3 | -------------------------------------------------------------------------------- /doc/sqa/LOGOS_SQA_Status_Dashboard.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/doc/sqa/LOGOS_SQA_Status_Dashboard.pptx -------------------------------------------------------------------------------- /doc/user_manual/figures/LogosRepo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/doc/user_manual/figures/LogosRepo.jpg -------------------------------------------------------------------------------- /doc/user_manual/pics/inl-left_black.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/doc/user_manual/pics/inl-left_black.pdf -------------------------------------------------------------------------------- /src/contrib/pysp/bbph/archive/AAAReadme.txt: -------------------------------------------------------------------------------- 1 | Files more-or-less as used for the bbph.py paper; 2 | created by dlw Dec 2016 3 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/ddsip_baselines/farmer_baseline/ddsip.stdin: -------------------------------------------------------------------------------- 1 | core.lp 2 | ddsip.config 3 | rhs.sc 4 | matrix.sc 5 | -------------------------------------------------------------------------------- /tests/CapitalInvestments/skp/gold/test_skp.csv: -------------------------------------------------------------------------------- 1 | 1,2,3,4,5,6,7,8,9,10,MaxNPV 2 | 1.0,1.0,0.0,1.0,0.0,0.0,0.0,0.0,1.0,1.0,106.0 3 | -------------------------------------------------------------------------------- /tests/gold/IncrementalNPV_options/dumpCostOutput.csv: -------------------------------------------------------------------------------- 1 | fp,npv_a,npv_b,npv_c 2 | 0.1,21.8624457439,18.903960307,0.22791339255 3 | -------------------------------------------------------------------------------- /src/CapitalInvestments/investment_utils/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright 2020, Battelle Energy Alliance, LLC 2 | # ALL RIGHTS RESERVED 3 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/unit/baselines/lagrange_pr_testScenarioList.csv: -------------------------------------------------------------------------------- 1 | Scenario1, 0.33 2 | Scenario2, 0.33 3 | Scenario3, 0.34 4 | -------------------------------------------------------------------------------- /tests/CapitalInvestments/skp/gold/test_noIndex.csv: -------------------------------------------------------------------------------- 1 | 1,2,3,4,5,6,7,8,9,10,MaxNPV 2 | 1.0,1.0,0.0,1.0,0.0,0.0,0.0,0.0,1.0,1.0,106.0 3 | -------------------------------------------------------------------------------- /doc/CapitalInvestments/model_extension.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/doc/CapitalInvestments/model_extension.docx -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_embedded_baselines/baa99_embedded_LP_symbolic_names_baseline/baa99.cor.symbols: -------------------------------------------------------------------------------- 1 | x1 x1 2 | x2 x2 3 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_embedded_baselines/baa99_embedded_MPS_symbolic_names_baseline/baa99.cor.symbols: -------------------------------------------------------------------------------- 1 | x1 x1 2 | x2 x2 3 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/test_model/feas/Scenario1.dat: -------------------------------------------------------------------------------- 1 | param c := 10 ; 2 | param a := -1 ; 3 | param b := 0 ; 4 | param M := 1000 ; -------------------------------------------------------------------------------- /tests/CapitalInvestments/skp/gold/test_npv.csv: -------------------------------------------------------------------------------- 1 | 1,2,3,4,5,6,7,8,9,MaxNPV 2 | 1.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,3.5097192563586894 3 | -------------------------------------------------------------------------------- /src/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright 2020, Battelle Energy Alliance, LLC 2 | # ALL RIGHTS RESERVED 3 | from LOGOS.src.CapitalInvestments import * 4 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/ddsip_baselines/piecewise_baseline/ddsip.stdin: -------------------------------------------------------------------------------- 1 | core.lp 2 | ddsip.config 3 | rhs.sc 4 | cost.sc 5 | matrix.sc 6 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/schuripopt_baselines/piecewise_baseline/PySP_Subproblems.txt: -------------------------------------------------------------------------------- 1 | Scenario1.nl 2 | Scenario2.nl 3 | Scenario3.nl 4 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/test_model/feas/Scenario2.dat: -------------------------------------------------------------------------------- 1 | param c := -10 ; 2 | param a := 1 ; 3 | param b := 1 ; 4 | param M := 1100 ; 5 | -------------------------------------------------------------------------------- /doc/CapitalInvestments/Maintenance Planning.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/doc/CapitalInvestments/Maintenance Planning.docx -------------------------------------------------------------------------------- /doc/CapitalInvestments/problem_description.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/doc/CapitalInvestments/problem_description.docx -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/test_model/slackpenalty/Scenario1.dat: -------------------------------------------------------------------------------- 1 | param c := 10 ; 2 | param a := -1 ; 3 | param b := 0 ; 4 | param M := 1000 ; -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/test_model/twovarslack/Scenario1.dat: -------------------------------------------------------------------------------- 1 | param c := 10 ; 2 | param a := -1 ; 3 | param b := 0 ; 4 | param M := 1000 ; -------------------------------------------------------------------------------- /tests/CapitalInvestments/skp/gold/test_skp_external_constraint.csv: -------------------------------------------------------------------------------- 1 | 1,2,3,4,5,6,7,8,9,10,MaxNPV 2 | 0.0,1.0,0.0,0.0,0.0,0.0,1.0,0.0,1.0,1.0,96.0 3 | -------------------------------------------------------------------------------- /doc/CapitalInvestments/Optimization Algorithms.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/doc/CapitalInvestments/Optimization Algorithms.docx -------------------------------------------------------------------------------- /doc/CapitalInvestments/dro_formulation_number2.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/doc/CapitalInvestments/dro_formulation_number2.pdf -------------------------------------------------------------------------------- /src/contrib/pysp/tests/evalxhat/farmer_ef_costs.json: -------------------------------------------------------------------------------- 1 | {"AverageScenario": -109350.0, "BelowAverageScenario": -48820.0, "AboveAverageScenario": -167000.0} -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test10.phbestbound.txt.baseline: -------------------------------------------------------------------------------- 1 | Incumbent: -107983.30393982964 2 | Dual: -112378.39515445073 3 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test11.phbestbound.txt.baseline: -------------------------------------------------------------------------------- 1 | Incumbent: -107905.90888195252 2 | Dual: -109440.78054174306 3 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test12.phbestbound.txt.baseline: -------------------------------------------------------------------------------- 1 | Incumbent: -107983.30393982964 2 | Dual: -112378.39515445073 3 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test7.phbestbound.txt.baseline: -------------------------------------------------------------------------------- 1 | Incumbent: -108386.96183374702 2 | Dual: -108399.96406612769 3 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test8.phbestbound.txt.baseline: -------------------------------------------------------------------------------- 1 | Incumbent: -108198.4550757941 2 | Dual: -110290.35571684661 3 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test9.phbestbound.txt.baseline: -------------------------------------------------------------------------------- 1 | Incumbent: -107905.90888195153 2 | Dual: -109440.78054174306 3 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/test_model/slackpenalty/Scenario2.dat: -------------------------------------------------------------------------------- 1 | param c := -10 ; 2 | param a := 1 ; 3 | param b := 1 ; 4 | param M := 1100 ; 5 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/test_model/twovarslack/Scenario2.dat: -------------------------------------------------------------------------------- 1 | param c := -10 ; 2 | param a := 1 ; 3 | param b := 1 ; 4 | param M := 1100 ; 5 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/test_model/badph.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/src/contrib/pysp/tests/examples/test_model/badph.pdf -------------------------------------------------------------------------------- /src/contrib/pysp/tests/unit/testdata/archive_test.tgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/src/contrib/pysp/tests/unit/testdata/archive_test.tgz -------------------------------------------------------------------------------- /doc/CapitalInvestments/Stochastic_Capital_Budgeting.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/doc/CapitalInvestments/Stochastic_Capital_Budgeting.docx -------------------------------------------------------------------------------- /doc/sqa/CIlist/LST-1291_LOGOS_Configuration_Items_List.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/doc/sqa/CIlist/LST-1291_LOGOS_Configuration_Items_List.docx -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/ddsip_baselines/farmer_baseline/rhs.sc: -------------------------------------------------------------------------------- 1 | scen 2 | 0.33333332999999998 3 | scen 4 | 0.33333333999999998 5 | scen 6 | 0.33333332999999998 7 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/schuripopt_baselines/farmer_baseline/PySP_Subproblems.txt: -------------------------------------------------------------------------------- 1 | BelowAverageScenario.nl 2 | AverageScenario.nl 3 | AboveAverageScenario.nl 4 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_baseline/farmer.tim: -------------------------------------------------------------------------------- 1 | TIME farmer 2 | PERIODS IMPLICIT 3 | x1 x13 TIME1 4 | x10 c_l_x15_ TIME2 5 | ENDATA 6 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_LP_baseline/farmer.cor.symbols: -------------------------------------------------------------------------------- 1 | x1 DevotedAcreage:$CORN 2 | x2 DevotedAcreage:$SUGAR_BEETS 3 | x3 DevotedAcreage:$WHEAT 4 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_LP_baseline/farmer.sto.struct: -------------------------------------------------------------------------------- 1 | x1 c_l_x15_ 2 | x2 c_l_x16_ 3 | x3 c_l_x17_ 4 | x1 c_u_x18_ 5 | x2 c_u_x19_ 6 | x3 c_u_x20_ 7 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_baseline/farmer.cor.symbols: -------------------------------------------------------------------------------- 1 | x1 DevotedAcreage:$CORN 2 | x2 DevotedAcreage:$SUGAR_BEETS 3 | x3 DevotedAcreage:$WHEAT 4 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/test_model/slackpenalty/AAAReadme.txt: -------------------------------------------------------------------------------- 1 | slack penalty example - what the scenarios want, they really should *want* 2 | with a sharp penalty 3 | 4 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/unit/baselines/forestry_ef.baseline.lp.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/src/contrib/pysp/tests/unit/baselines/forestry_ef.baseline.lp.gz -------------------------------------------------------------------------------- /src/contrib/pysp/tests/unit/baselines/sizes3_ef.baseline.lp.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/src/contrib/pysp/tests/unit/baselines/sizes3_ef.baseline.lp.gz -------------------------------------------------------------------------------- /doc/CapitalInvestments/Capital_Budgeting_Design_Requirements.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/doc/CapitalInvestments/Capital_Budgeting_Design_Requirements.docx -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_baseline/farmer.sto.struct: -------------------------------------------------------------------------------- 1 | x1 c_l_x15_ 2 | x2 c_l_x16_ 3 | x3 c_l_x17_ 4 | x1 c_u_x18_ 5 | x2 c_u_x19_ 6 | x3 c_u_x20_ 7 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_MPS_baseline/piecewise.tim: -------------------------------------------------------------------------------- 1 | TIME piecewise 2 | PERIODS IMPLICIT 3 | x1 x20 TIME1 4 | x10 c_e_x22_ TIME2 5 | ENDATA 6 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_ignore_derived_baseline/farmer.tim: -------------------------------------------------------------------------------- 1 | TIME farmer 2 | PERIODS IMPLICIT 3 | x1 x13 TIME1 4 | x10 c_l_x15_ TIME2 5 | ENDATA 6 | -------------------------------------------------------------------------------- /tests/CapitalInvestments/skp/gold/test_mandated.csv: -------------------------------------------------------------------------------- 1 | 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,MaxNPV 2 | 1.0,1.0,0.0,1.0,1.0,0.0,0.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,37.12999999999999 3 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_LP_ignore_derived_baseline/farmer.cor.symbols: -------------------------------------------------------------------------------- 1 | x1 DevotedAcreage:$CORN 2 | x2 DevotedAcreage:$SUGAR_BEETS 3 | x3 DevotedAcreage:$WHEAT 4 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_LP_ignore_derived_baseline/farmer.sto.struct: -------------------------------------------------------------------------------- 1 | x1 c_l_x15_ 2 | x2 c_l_x16_ 3 | x3 c_l_x17_ 4 | x1 c_u_x18_ 5 | x2 c_u_x19_ 6 | x3 c_u_x20_ 7 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_ignore_derived_baseline/farmer.cor.symbols: -------------------------------------------------------------------------------- 1 | x1 DevotedAcreage:$CORN 2 | x2 DevotedAcreage:$SUGAR_BEETS 3 | x3 DevotedAcreage:$WHEAT 4 | -------------------------------------------------------------------------------- /tests/CapitalInvestments/mkp/gold/test_mkp_1.csv: -------------------------------------------------------------------------------- 1 | 1,2,3,4,5,6,7,8,9,capitals,MaxNPV 2 | 1.0,1.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0,unit_1,350.0 3 | 0.0,0.0,1.0,1.0,0.0,0.0,1.0,1.0,0.0,unit_2,350.0 4 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_LP_baseline/farmer.col: -------------------------------------------------------------------------------- 1 | x1 2 | x2 3 | x3 4 | x10 5 | x11 6 | x12 7 | x4 8 | x5 9 | x6 10 | x7 11 | x8 12 | x9 13 | ONE_VAR_CONSTANT 14 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_baseline/farmer.col: -------------------------------------------------------------------------------- 1 | x1 2 | x2 3 | x3 4 | x10 5 | x11 6 | x12 7 | x4 8 | x5 9 | x6 10 | x7 11 | x8 12 | x9 13 | ONE_VAR_CONSTANT 14 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_ignore_derived_baseline/farmer.sto.struct: -------------------------------------------------------------------------------- 1 | x1 c_l_x15_ 2 | x2 c_l_x16_ 3 | x3 c_l_x17_ 4 | x1 c_u_x18_ 5 | x2 c_u_x19_ 6 | x3 c_u_x20_ 7 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_MPS_ignore_derived_baseline/piecewise.tim: -------------------------------------------------------------------------------- 1 | TIME piecewise 2 | PERIODS IMPLICIT 3 | x1 x20 TIME1 4 | x13 c_e_x30_ TIME2 5 | ENDATA 6 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/unit/baselines/networkflow1ef10_ef.baseline.lp.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/src/contrib/pysp/tests/unit/baselines/networkflow1ef10_ef.baseline.lp.gz -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_baseline/scenario_files/farmer.tim.AverageScenario: -------------------------------------------------------------------------------- 1 | TIME farmer 2 | PERIODS IMPLICIT 3 | x1 x13 TIME1 4 | x10 c_l_x15_ TIME2 5 | ENDATA 6 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_embedded_baselines/baa99_embedded_MPS_symbolic_names_baseline/baa99.tim: -------------------------------------------------------------------------------- 1 | TIME baa99 2 | PERIODS IMPLICIT 3 | x1 obj TIME1 4 | u1 c_e_d1_ TIME2 5 | ENDATA 6 | -------------------------------------------------------------------------------- /tests/CapitalInvestments/mkp/gold/test_mkp.csv: -------------------------------------------------------------------------------- 1 | 1,2,3,4,5,6,7,8,9,10,capitals,MaxNPV 2 | 0.0,0.0,1.0,1.0,1.0,0.0,0.0,0.0,0.0,0.0,unit_1,452.0 3 | 1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,unit_2,452.0 4 | -------------------------------------------------------------------------------- /XSDSchemas/validate_xml.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | PYTHON_CMD=${PYTHON_CMD:=python} 3 | SCRIPT_DIRNAME=`dirname $0` 4 | SCRIPT_DIR=`(cd $SCRIPT_DIRNAME; pwd)` 5 | 6 | $PYTHON_CMD ${SCRIPT_DIR}/validate_xml.py 7 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_LP_baseline/scenario_files/farmer.lp.symbols.AverageScenario: -------------------------------------------------------------------------------- 1 | x1 DevotedAcreage:$CORN 2 | x2 DevotedAcreage:$SUGAR_BEETS 3 | x3 DevotedAcreage:$WHEAT 4 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_baseline/scenario_files/farmer.mps.symbols.AverageScenario: -------------------------------------------------------------------------------- 1 | x1 DevotedAcreage:$CORN 2 | x2 DevotedAcreage:$SUGAR_BEETS 3 | x3 DevotedAcreage:$WHEAT 4 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_baseline/scenario_files/farmer.tim.AboveAverageScenario: -------------------------------------------------------------------------------- 1 | TIME farmer 2 | PERIODS IMPLICIT 3 | x1 x13 TIME1 4 | x10 c_l_x15_ TIME2 5 | ENDATA 6 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_baseline/scenario_files/farmer.tim.BelowAverageScenario: -------------------------------------------------------------------------------- 1 | TIME farmer 2 | PERIODS IMPLICIT 3 | x1 x13 TIME1 4 | x10 c_l_x15_ TIME2 5 | ENDATA 6 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_MPS_baseline/scenario_files/piecewise.tim.Scenario1: -------------------------------------------------------------------------------- 1 | TIME piecewise 2 | PERIODS IMPLICIT 3 | x1 x20 TIME1 4 | x10 c_e_x22_ TIME2 5 | ENDATA 6 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_MPS_baseline/scenario_files/piecewise.tim.Scenario2: -------------------------------------------------------------------------------- 1 | TIME piecewise 2 | PERIODS IMPLICIT 3 | x1 x20 TIME1 4 | x10 c_e_x22_ TIME2 5 | ENDATA 6 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_MPS_baseline/scenario_files/piecewise.tim.Scenario3: -------------------------------------------------------------------------------- 1 | TIME piecewise 2 | PERIODS IMPLICIT 3 | x1 x20 TIME1 4 | x10 c_e_x22_ TIME2 5 | ENDATA 6 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_LP_baseline/scenario_files/farmer.lp.symbols.AboveAverageScenario: -------------------------------------------------------------------------------- 1 | x1 DevotedAcreage:$CORN 2 | x2 DevotedAcreage:$SUGAR_BEETS 3 | x3 DevotedAcreage:$WHEAT 4 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_LP_baseline/scenario_files/farmer.lp.symbols.BelowAverageScenario: -------------------------------------------------------------------------------- 1 | x1 DevotedAcreage:$CORN 2 | x2 DevotedAcreage:$SUGAR_BEETS 3 | x3 DevotedAcreage:$WHEAT 4 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_LP_baseline/scenario_files/farmer.sto.struct.AverageScenario: -------------------------------------------------------------------------------- 1 | x1 c_l_x15_ 2 | x2 c_l_x16_ 3 | x3 c_l_x17_ 4 | x1 c_u_x18_ 5 | x2 c_u_x19_ 6 | x3 c_u_x20_ 7 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_LP_ignore_derived_baseline/farmer.col: -------------------------------------------------------------------------------- 1 | x1 2 | x2 3 | x3 4 | x10 5 | x11 6 | x12 7 | x4 8 | x5 9 | x6 10 | x7 11 | x8 12 | x9 13 | ONE_VAR_CONSTANT 14 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_baseline/scenario_files/farmer.mps.symbols.AboveAverageScenario: -------------------------------------------------------------------------------- 1 | x1 DevotedAcreage:$CORN 2 | x2 DevotedAcreage:$SUGAR_BEETS 3 | x3 DevotedAcreage:$WHEAT 4 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_baseline/scenario_files/farmer.mps.symbols.BelowAverageScenario: -------------------------------------------------------------------------------- 1 | x1 DevotedAcreage:$CORN 2 | x2 DevotedAcreage:$SUGAR_BEETS 3 | x3 DevotedAcreage:$WHEAT 4 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_baseline/scenario_files/farmer.sto.struct.AverageScenario: -------------------------------------------------------------------------------- 1 | x1 c_l_x15_ 2 | x2 c_l_x16_ 3 | x3 c_l_x17_ 4 | x1 c_u_x18_ 5 | x2 c_u_x19_ 6 | x3 c_u_x20_ 7 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_ignore_derived_baseline/farmer.col: -------------------------------------------------------------------------------- 1 | x1 2 | x2 3 | x3 4 | x10 5 | x11 6 | x12 7 | x4 8 | x5 9 | x6 10 | x7 11 | x8 12 | x9 13 | ONE_VAR_CONSTANT 14 | -------------------------------------------------------------------------------- /tests/CapitalInvestments/mkp/gold/test_mkp_noindex.csv: -------------------------------------------------------------------------------- 1 | 1,2,3,4,5,6,7,8,9,10,capitals,MaxNPV 2 | 0.0,0.0,1.0,1.0,1.0,0.0,0.0,0.0,0.0,0.0,unit_1,452.0 3 | 1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,unit_2,452.0 4 | -------------------------------------------------------------------------------- /tests/CapitalInvestments/skp/gold/test_bkp.csv: -------------------------------------------------------------------------------- 1 | 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,MaxNPV 2 | 1.0,1.0,1.0,0.0,2.0,0.0,3.0,0.0,1.0,0.0,1.0,0.0,0.0,0.0,0.0,0.0,1.0,1.0,1.0,0.0,1.0,0.0,1010.0 3 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_LP_baseline/scenario_files/farmer.sto.struct.AboveAverageScenario: -------------------------------------------------------------------------------- 1 | x1 c_l_x15_ 2 | x2 c_l_x16_ 3 | x3 c_l_x17_ 4 | x1 c_u_x18_ 5 | x2 c_u_x19_ 6 | x3 c_u_x20_ 7 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_LP_baseline/scenario_files/farmer.sto.struct.BelowAverageScenario: -------------------------------------------------------------------------------- 1 | x1 c_l_x15_ 2 | x2 c_l_x16_ 3 | x3 c_l_x17_ 4 | x1 c_u_x18_ 5 | x2 c_u_x19_ 6 | x3 c_u_x20_ 7 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_baseline/scenario_files/farmer.sto.struct.AboveAverageScenario: -------------------------------------------------------------------------------- 1 | x1 c_l_x15_ 2 | x2 c_l_x16_ 3 | x3 c_l_x17_ 4 | x1 c_u_x18_ 5 | x2 c_u_x19_ 6 | x3 c_u_x20_ 7 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_baseline/scenario_files/farmer.sto.struct.BelowAverageScenario: -------------------------------------------------------------------------------- 1 | x1 c_l_x15_ 2 | x2 c_l_x16_ 3 | x3 c_l_x17_ 4 | x1 c_u_x18_ 5 | x2 c_u_x19_ 6 | x3 c_u_x20_ 7 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_ignore_derived_baseline/scenario_files/farmer.tim.AverageScenario: -------------------------------------------------------------------------------- 1 | TIME farmer 2 | PERIODS IMPLICIT 3 | x1 x13 TIME1 4 | x10 c_l_x15_ TIME2 5 | ENDATA 6 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_MPS_symbolic_names_baseline/piecewise.tim: -------------------------------------------------------------------------------- 1 | TIME piecewise 2 | PERIODS IMPLICIT 3 | x o TIME1 4 | fx c_e_p_first_stage_INC_constraint1_ TIME2 5 | ENDATA 6 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/test_model/twovarslack/AAAReadme.txt: -------------------------------------------------------------------------------- 1 | slack penalty example - what the scenarios want, they really should *want* 2 | with a sharp penalty 3 | see comments in reference model 4 | 5 | 6 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_LP_ignore_derived_baseline/scenario_files/farmer.lp.symbols.AverageScenario: -------------------------------------------------------------------------------- 1 | x1 DevotedAcreage:$CORN 2 | x2 DevotedAcreage:$SUGAR_BEETS 3 | x3 DevotedAcreage:$WHEAT 4 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_ignore_derived_baseline/scenario_files/farmer.mps.symbols.AverageScenario: -------------------------------------------------------------------------------- 1 | x1 DevotedAcreage:$CORN 2 | x2 DevotedAcreage:$SUGAR_BEETS 3 | x3 DevotedAcreage:$WHEAT 4 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_ignore_derived_baseline/scenario_files/farmer.tim.AboveAverageScenario: -------------------------------------------------------------------------------- 1 | TIME farmer 2 | PERIODS IMPLICIT 3 | x1 x13 TIME1 4 | x10 c_l_x15_ TIME2 5 | ENDATA 6 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_ignore_derived_baseline/scenario_files/farmer.tim.BelowAverageScenario: -------------------------------------------------------------------------------- 1 | TIME farmer 2 | PERIODS IMPLICIT 3 | x1 x13 TIME1 4 | x10 c_l_x15_ TIME2 5 | ENDATA 6 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_MPS_ignore_derived_baseline/scenario_files/piecewise.tim.Scenario1: -------------------------------------------------------------------------------- 1 | TIME piecewise 2 | PERIODS IMPLICIT 3 | x1 x20 TIME1 4 | x13 c_e_x30_ TIME2 5 | ENDATA 6 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_MPS_ignore_derived_baseline/scenario_files/piecewise.tim.Scenario2: -------------------------------------------------------------------------------- 1 | TIME piecewise 2 | PERIODS IMPLICIT 3 | x1 x20 TIME1 4 | x13 c_e_x30_ TIME2 5 | ENDATA 6 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_MPS_ignore_derived_baseline/scenario_files/piecewise.tim.Scenario3: -------------------------------------------------------------------------------- 1 | TIME piecewise 2 | PERIODS IMPLICIT 3 | x1 x20 TIME1 4 | x13 c_e_x30_ TIME2 5 | ENDATA 6 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_embedded_baselines/piecewise_embedded_MPS_symbolic_names_baseline/piecewise.tim: -------------------------------------------------------------------------------- 1 | TIME piecewise 2 | PERIODS IMPLICIT 3 | x o TIME1 4 | fx c_u_cL_second_stage_ TIME2 5 | ENDATA 6 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/evalxhat/networkx_ef_costs.json: -------------------------------------------------------------------------------- 1 | { 2 | "u00": 9.256727537365752, 3 | "u01": 4.35826150485726, 4 | "u10": 4.28629769771911, 5 | "u11": 5.3861787913091055, 6 | "u20": 9.071818194603951 7 | } -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_LP_baseline/scenario_files/farmer.col.AverageScenario: -------------------------------------------------------------------------------- 1 | x1 2 | x2 3 | x3 4 | x10 5 | x11 6 | x12 7 | x4 8 | x5 9 | x6 10 | x7 11 | x8 12 | x9 13 | ONE_VAR_CONSTANT 14 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_LP_ignore_derived_baseline/scenario_files/farmer.lp.symbols.AboveAverageScenario: -------------------------------------------------------------------------------- 1 | x1 DevotedAcreage:$CORN 2 | x2 DevotedAcreage:$SUGAR_BEETS 3 | x3 DevotedAcreage:$WHEAT 4 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_LP_ignore_derived_baseline/scenario_files/farmer.lp.symbols.BelowAverageScenario: -------------------------------------------------------------------------------- 1 | x1 DevotedAcreage:$CORN 2 | x2 DevotedAcreage:$SUGAR_BEETS 3 | x3 DevotedAcreage:$WHEAT 4 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_LP_ignore_derived_baseline/scenario_files/farmer.sto.struct.AverageScenario: -------------------------------------------------------------------------------- 1 | x1 c_l_x15_ 2 | x2 c_l_x16_ 3 | x3 c_l_x17_ 4 | x1 c_u_x18_ 5 | x2 c_u_x19_ 6 | x3 c_u_x20_ 7 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_ignore_derived_baseline/scenario_files/farmer.mps.symbols.AboveAverageScenario: -------------------------------------------------------------------------------- 1 | x1 DevotedAcreage:$CORN 2 | x2 DevotedAcreage:$SUGAR_BEETS 3 | x3 DevotedAcreage:$WHEAT 4 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_ignore_derived_baseline/scenario_files/farmer.mps.symbols.BelowAverageScenario: -------------------------------------------------------------------------------- 1 | x1 DevotedAcreage:$CORN 2 | x2 DevotedAcreage:$SUGAR_BEETS 3 | x3 DevotedAcreage:$WHEAT 4 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_ignore_derived_baseline/scenario_files/farmer.sto.struct.AverageScenario: -------------------------------------------------------------------------------- 1 | x1 c_l_x15_ 2 | x2 c_l_x16_ 3 | x3 c_l_x17_ 4 | x1 c_u_x18_ 5 | x2 c_u_x19_ 6 | x3 c_u_x20_ 7 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/evalxhat/simple_quadratic_ef_costs.json: -------------------------------------------------------------------------------- 1 | { 2 | "Scenario1": 699.3605485985422, 3 | "Scenario2": 32.65567687762041, 4 | "Scenario3": 50.876552499900214, 5 | "Scenario4": 143.90370952640333 6 | } -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/baselines/TestEFFarmer.test1.ef_solution.json.baseline.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/src/contrib/pysp/tests/examples/baselines/TestEFFarmer.test1.ef_solution.json.baseline.gz -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/baselines/TestEFFarmer.test2.ef_solution.json.baseline.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/src/contrib/pysp/tests/examples/baselines/TestEFFarmer.test2.ef_solution.json.baseline.gz -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/baselines/TestEFFarmer.test3.ef_solution.json.baseline.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/src/contrib/pysp/tests/examples/baselines/TestEFFarmer.test3.ef_solution.json.baseline.gz -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/baselines/TestEFFarmer.test4.ef_solution.json.baseline.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/src/contrib/pysp/tests/examples/baselines/TestEFFarmer.test4.ef_solution.json.baseline.gz -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/baselines/TestEFFarmer.test5.ef_solution.json.baseline.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/src/contrib/pysp/tests/examples/baselines/TestEFFarmer.test5.ef_solution.json.baseline.gz -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test1.ph_history.json.baseline.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test1.ph_history.json.baseline.gz -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test1.ph_solution.json.baseline.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test1.ph_solution.json.baseline.gz -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test10.ph_history.json.baseline.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test10.ph_history.json.baseline.gz -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test11.ph_history.json.baseline.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test11.ph_history.json.baseline.gz -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test12.ph_history.json.baseline.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test12.ph_history.json.baseline.gz -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test13.ph_history.json.baseline.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test13.ph_history.json.baseline.gz -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test14.ph_history.json.baseline.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test14.ph_history.json.baseline.gz -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test2.ph_history.json.baseline.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test2.ph_history.json.baseline.gz -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test2.ph_solution.json.baseline.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test2.ph_solution.json.baseline.gz -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test3.ph_history.json.baseline.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test3.ph_history.json.baseline.gz -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test3.ph_solution.json.baseline.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test3.ph_solution.json.baseline.gz -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test4.ph_history.json.baseline.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test4.ph_history.json.baseline.gz -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test4.ph_solution.json.baseline.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test4.ph_solution.json.baseline.gz -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test5.ph_history.json.baseline.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test5.ph_history.json.baseline.gz -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test5.ph_solution.json.baseline.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test5.ph_solution.json.baseline.gz -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test6.ph_history.json.baseline.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test6.ph_history.json.baseline.gz -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test6.ph_solution.json.baseline.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test6.ph_solution.json.baseline.gz -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test7.ph_history.json.baseline.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test7.ph_history.json.baseline.gz -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test7.ph_solution.json.baseline.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test7.ph_solution.json.baseline.gz -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test8.ph_history.json.baseline.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test8.ph_history.json.baseline.gz -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test8.ph_solution.json.baseline.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test8.ph_solution.json.baseline.gz -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test9.ph_history.json.baseline.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test9.ph_history.json.baseline.gz -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test9.ph_solution.json.baseline.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test9.ph_solution.json.baseline.gz -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/baselines/TestPHSizes3.test1.ph_history.json.baseline.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/src/contrib/pysp/tests/examples/baselines/TestPHSizes3.test1.ph_history.json.baseline.gz -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/baselines/TestPHSizes3.test1.ph_solution.json.baseline.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/src/contrib/pysp/tests/examples/baselines/TestPHSizes3.test1.ph_solution.json.baseline.gz -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/test_model/discrete/coolplot.s: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | runph --user-defined-extension=pysp.plugins.phhistoryextension --max-iterations=50 --default-rho=1 3 | python ../plot_history.py ph_history.json 4 | -------------------------------------------------------------------------------- /tests/Scheduling/tests: -------------------------------------------------------------------------------- 1 | [Tests] 2 | 3 | [./logos_rcpsp] 4 | type = 'LogosRun' 5 | input = 'test_scheduling.xml' 6 | UnorderedCsv = 'test_scheduling.csv' 7 | skip_if_OS = 'windows' 8 | [../] 9 | 10 | [] 11 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_LP_baseline/scenario_files/farmer.col.AboveAverageScenario: -------------------------------------------------------------------------------- 1 | x1 2 | x2 3 | x3 4 | x10 5 | x11 6 | x12 7 | x4 8 | x5 9 | x6 10 | x7 11 | x8 12 | x9 13 | ONE_VAR_CONSTANT 14 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_LP_baseline/scenario_files/farmer.col.BelowAverageScenario: -------------------------------------------------------------------------------- 1 | x1 2 | x2 3 | x3 4 | x10 5 | x11 6 | x12 7 | x4 8 | x5 9 | x6 10 | x7 11 | x8 12 | x9 13 | ONE_VAR_CONSTANT 14 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_LP_ignore_derived_baseline/scenario_files/farmer.sto.struct.AboveAverageScenario: -------------------------------------------------------------------------------- 1 | x1 c_l_x15_ 2 | x2 c_l_x16_ 3 | x3 c_l_x17_ 4 | x1 c_u_x18_ 5 | x2 c_u_x19_ 6 | x3 c_u_x20_ 7 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_LP_ignore_derived_baseline/scenario_files/farmer.sto.struct.BelowAverageScenario: -------------------------------------------------------------------------------- 1 | x1 c_l_x15_ 2 | x2 c_l_x16_ 3 | x3 c_l_x17_ 4 | x1 c_u_x18_ 5 | x2 c_u_x19_ 6 | x3 c_u_x20_ 7 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_baseline/scenario_files/farmer.col.AverageScenario: -------------------------------------------------------------------------------- 1 | x1 2 | x2 3 | x3 4 | x10 5 | x11 6 | x12 7 | x4 8 | x5 9 | x6 10 | x7 11 | x8 12 | x9 13 | ONE_VAR_CONSTANT 14 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_ignore_derived_baseline/scenario_files/farmer.sto.struct.AboveAverageScenario: -------------------------------------------------------------------------------- 1 | x1 c_l_x15_ 2 | x2 c_l_x16_ 3 | x3 c_l_x17_ 4 | x1 c_u_x18_ 5 | x2 c_u_x19_ 6 | x3 c_u_x20_ 7 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_ignore_derived_baseline/scenario_files/farmer.sto.struct.BelowAverageScenario: -------------------------------------------------------------------------------- 1 | x1 c_l_x15_ 2 | x2 c_l_x16_ 3 | x3 c_l_x17_ 4 | x1 c_u_x18_ 5 | x2 c_u_x19_ 6 | x3 c_u_x20_ 7 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test10.ph_solution.json.baseline.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test10.ph_solution.json.baseline.gz -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test11.ph_solution.json.baseline.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test11.ph_solution.json.baseline.gz -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test12.ph_solution.json.baseline.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test12.ph_solution.json.baseline.gz -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test13.ph_solution.json.baseline.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test13.ph_solution.json.baseline.gz -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test14.ph_solution.json.baseline.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test14.ph_solution.json.baseline.gz -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_baseline/scenario_files/farmer.col.AboveAverageScenario: -------------------------------------------------------------------------------- 1 | x1 2 | x2 3 | x3 4 | x10 5 | x11 6 | x12 7 | x4 8 | x5 9 | x6 10 | x7 11 | x8 12 | x9 13 | ONE_VAR_CONSTANT 14 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_baseline/scenario_files/farmer.col.BelowAverageScenario: -------------------------------------------------------------------------------- 1 | x1 2 | x2 3 | x3 4 | x10 5 | x11 6 | x12 7 | x4 8 | x5 9 | x6 10 | x7 11 | x8 12 | x9 13 | ONE_VAR_CONSTANT 14 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_MPS_symbolic_names_ignore_derived_baseline/piecewise.tim: -------------------------------------------------------------------------------- 1 | TIME piecewise 2 | PERIODS IMPLICIT 3 | fx o TIME1 4 | fz c_e_p_second_stage(1)_INC_constraint1_ TIME2 5 | ENDATA 6 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/baselines/TestEFFarmerMax.test1.ef_solution.json.baseline.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/src/contrib/pysp/tests/examples/baselines/TestEFFarmerMax.test1.ef_solution.json.baseline.gz -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/baselines/TestEFFarmerMax.test2.ef_solution.json.baseline.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/src/contrib/pysp/tests/examples/baselines/TestEFFarmerMax.test2.ef_solution.json.baseline.gz -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/baselines/TestEFFarmerMax.test3.ef_solution.json.baseline.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/src/contrib/pysp/tests/examples/baselines/TestEFFarmerMax.test3.ef_solution.json.baseline.gz -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/baselines/TestEFFarmerMax.test4.ef_solution.json.baseline.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/src/contrib/pysp/tests/examples/baselines/TestEFFarmerMax.test4.ef_solution.json.baseline.gz -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/baselines/TestEFFarmerMax.test5.ef_solution.json.baseline.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/src/contrib/pysp/tests/examples/baselines/TestEFFarmerMax.test5.ef_solution.json.baseline.gz -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/test_model/slackpenalty/coolplot.s: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | runph --user-defined-extension=pysp.plugins.phhistoryextension --max-iterations=50 --default-rho=2002 3 | python ../plot_history.py ph_history.json 4 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_LP_ignore_derived_baseline/scenario_files/farmer.col.AverageScenario: -------------------------------------------------------------------------------- 1 | x1 2 | x2 3 | x3 4 | x10 5 | x11 6 | x12 7 | x4 8 | x5 9 | x6 10 | x7 11 | x8 12 | x9 13 | ONE_VAR_CONSTANT 14 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_MPS_symbolic_names_baseline/scenario_files/piecewise.tim.Scenario1: -------------------------------------------------------------------------------- 1 | TIME piecewise 2 | PERIODS IMPLICIT 3 | x o TIME1 4 | fx c_e_p_first_stage_INC_constraint1_ TIME2 5 | ENDATA 6 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_MPS_symbolic_names_baseline/scenario_files/piecewise.tim.Scenario2: -------------------------------------------------------------------------------- 1 | TIME piecewise 2 | PERIODS IMPLICIT 3 | x o TIME1 4 | fx c_e_p_first_stage_INC_constraint1_ TIME2 5 | ENDATA 6 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_MPS_symbolic_names_baseline/scenario_files/piecewise.tim.Scenario3: -------------------------------------------------------------------------------- 1 | TIME piecewise 2 | PERIODS IMPLICIT 3 | x o TIME1 4 | fx c_e_p_first_stage_INC_constraint1_ TIME2 5 | ENDATA 6 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test14_withef.ph_history.json.baseline.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test14_withef.ph_history.json.baseline.gz -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test1_withef.ph_history.json.baseline.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test1_withef.ph_history.json.baseline.gz -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test1_withef.ph_solution.json.baseline.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test1_withef.ph_solution.json.baseline.gz -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test6_withef.ph_history.json.baseline.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test6_withef.ph_history.json.baseline.gz -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test6_withef.ph_solution.json.baseline.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test6_withef.ph_solution.json.baseline.gz -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/test_model/discrete/wrhosetter.s: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | runph --user-defined-extension=pysp.plugins.phhistoryextension --max-iterations=50 --rho-cfgfile=rhosetter.cfg 3 | python ../plot_history.py ph_history.json 4 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_LP_ignore_derived_baseline/scenario_files/farmer.col.AboveAverageScenario: -------------------------------------------------------------------------------- 1 | x1 2 | x2 3 | x3 4 | x10 5 | x11 6 | x12 7 | x4 8 | x5 9 | x6 10 | x7 11 | x8 12 | x9 13 | ONE_VAR_CONSTANT 14 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_LP_ignore_derived_baseline/scenario_files/farmer.col.BelowAverageScenario: -------------------------------------------------------------------------------- 1 | x1 2 | x2 3 | x3 4 | x10 5 | x11 6 | x12 7 | x4 8 | x5 9 | x6 10 | x7 11 | x8 12 | x9 13 | ONE_VAR_CONSTANT 14 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_ignore_derived_baseline/scenario_files/farmer.col.AverageScenario: -------------------------------------------------------------------------------- 1 | x1 2 | x2 3 | x3 4 | x10 5 | x11 6 | x12 7 | x4 8 | x5 9 | x6 10 | x7 11 | x8 12 | x9 13 | ONE_VAR_CONSTANT 14 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test14_withef.ph_solution.json.baseline.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test14_withef.ph_solution.json.baseline.gz -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/baselines/TestPHNetworkFlow1ef3.test1.ph_history.json.baseline.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/src/contrib/pysp/tests/examples/baselines/TestPHNetworkFlow1ef3.test1.ph_history.json.baseline.gz -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/baselines/TestPHNetworkFlow1ef3.test1.ph_solution.json.baseline.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/src/contrib/pysp/tests/examples/baselines/TestPHNetworkFlow1ef3.test1.ph_solution.json.baseline.gz -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/baselines/TestPHNetworkFlow1ef3.test2.ph_history.json.baseline.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/src/contrib/pysp/tests/examples/baselines/TestPHNetworkFlow1ef3.test2.ph_history.json.baseline.gz -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/baselines/TestPHNetworkFlow1ef3.test2.ph_solution.json.baseline.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/src/contrib/pysp/tests/examples/baselines/TestPHNetworkFlow1ef3.test2.ph_solution.json.baseline.gz -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/baselines/TestPHNetworkFlow1ef3.test3.ph_history.json.baseline.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/src/contrib/pysp/tests/examples/baselines/TestPHNetworkFlow1ef3.test3.ph_history.json.baseline.gz -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/baselines/TestPHNetworkFlow1ef3.test3.ph_solution.json.baseline.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/src/contrib/pysp/tests/examples/baselines/TestPHNetworkFlow1ef3.test3.ph_solution.json.baseline.gz -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/test_model/slackpenalty/wrhosetter.s: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | runph --user-defined-extension=pysp.plugins.phhistoryextension --max-iterations=50 --rho-cfgfile=rhosetter.cfg 3 | python ../plot_history.py ph_history.json 4 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/test_model/twovarslack/wrhosetter.s: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | runph --user-defined-extension=pysp.plugins.phhistoryextension --max-iterations=50 --rho-cfgfile=rhosetter.cfg 3 | python ../plot_history.py ph_history.json 4 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_LP_symbolic_names_baseline/farmer.cor.symbols: -------------------------------------------------------------------------------- 1 | DevotedAcreage(CORN) DevotedAcreage:$CORN 2 | DevotedAcreage(SUGAR_BEETS) DevotedAcreage:$SUGAR_BEETS 3 | DevotedAcreage(WHEAT) DevotedAcreage:$WHEAT 4 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_ignore_derived_baseline/scenario_files/farmer.col.AboveAverageScenario: -------------------------------------------------------------------------------- 1 | x1 2 | x2 3 | x3 4 | x10 5 | x11 6 | x12 7 | x4 8 | x5 9 | x6 10 | x7 11 | x8 12 | x9 13 | ONE_VAR_CONSTANT 14 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_ignore_derived_baseline/scenario_files/farmer.col.BelowAverageScenario: -------------------------------------------------------------------------------- 1 | x1 2 | x2 3 | x3 4 | x10 5 | x11 6 | x12 7 | x4 8 | x5 9 | x6 10 | x7 11 | x8 12 | x9 13 | ONE_VAR_CONSTANT 14 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_symbolic_names_baseline/farmer.cor.symbols: -------------------------------------------------------------------------------- 1 | DevotedAcreage(CORN) DevotedAcreage:$CORN 2 | DevotedAcreage(SUGAR_BEETS) DevotedAcreage:$SUGAR_BEETS 3 | DevotedAcreage(WHEAT) DevotedAcreage:$WHEAT 4 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/unit/testdata/bundles.dat: -------------------------------------------------------------------------------- 1 | param Bundling := True; 2 | 3 | set Bundles := 4 | b1 5 | b2 6 | b3 7 | ; 8 | 9 | set BundleScenarios[b1] := s1; 10 | set BundleScenarios[b2] := s2; 11 | set BundleScenarios[b3] := s3; 12 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test14_withef.postphef_solution.json.baseline.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test14_withef.postphef_solution.json.baseline.gz -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test1_withef.postphef_solution.json.baseline.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test1_withef.postphef_solution.json.baseline.gz -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test6_withef.postphef_solution.json.baseline.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test6_withef.postphef_solution.json.baseline.gz -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/baselines/TestPHForestryUnequalProbs.test1.ph_history.json.baseline.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/src/contrib/pysp/tests/examples/baselines/TestPHForestryUnequalProbs.test1.ph_history.json.baseline.gz -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/baselines/TestPHForestryUnequalProbs.test1.ph_solution.json.baseline.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/src/contrib/pysp/tests/examples/baselines/TestPHForestryUnequalProbs.test1.ph_solution.json.baseline.gz -------------------------------------------------------------------------------- /tests/mkp/availableCapitals.py: -------------------------------------------------------------------------------- 1 | import random 2 | import numpy as np 3 | 4 | def run(self,Input): 5 | 6 | self.capitals = np.atleast_1d(['unit_1', 'unit_2']) 7 | self.available_capitals = np.atleast_1d([103 + Input['x'][0], 156 + Input['y'][0]]) 8 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_MPS_symbolic_names_ignore_derived_baseline/scenario_files/piecewise.tim.Scenario1: -------------------------------------------------------------------------------- 1 | TIME piecewise 2 | PERIODS IMPLICIT 3 | fx o TIME1 4 | fz c_e_p_second_stage(1)_INC_constraint1_ TIME2 5 | ENDATA 6 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_MPS_symbolic_names_ignore_derived_baseline/scenario_files/piecewise.tim.Scenario2: -------------------------------------------------------------------------------- 1 | TIME piecewise 2 | PERIODS IMPLICIT 3 | fx o TIME1 4 | fz c_e_p_second_stage(1)_INC_constraint1_ TIME2 5 | ENDATA 6 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_MPS_symbolic_names_ignore_derived_baseline/scenario_files/piecewise.tim.Scenario3: -------------------------------------------------------------------------------- 1 | TIME piecewise 2 | PERIODS IMPLICIT 3 | fx o TIME1 4 | fz c_e_p_second_stage(1)_INC_constraint1_ TIME2 5 | ENDATA 6 | -------------------------------------------------------------------------------- /doc/CapitalInvestments/Distributional Robust Optimization Model Formulation for Capital Budgeting Full.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idaholab/LOGOS/HEAD/doc/CapitalInvestments/Distributional Robust Optimization Model Formulation for Capital Budgeting Full.docx -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_LP_symbolic_names_ignore_derived_baseline/farmer.cor.symbols: -------------------------------------------------------------------------------- 1 | DevotedAcreage(CORN) DevotedAcreage:$CORN 2 | DevotedAcreage(SUGAR_BEETS) DevotedAcreage:$SUGAR_BEETS 3 | DevotedAcreage(WHEAT) DevotedAcreage:$WHEAT 4 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_symbolic_names_ignore_derived_baseline/farmer.cor.symbols: -------------------------------------------------------------------------------- 1 | DevotedAcreage(CORN) DevotedAcreage:$CORN 2 | DevotedAcreage(SUGAR_BEETS) DevotedAcreage:$SUGAR_BEETS 3 | DevotedAcreage(WHEAT) DevotedAcreage:$WHEAT 4 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_LP_baseline/piecewise.col: -------------------------------------------------------------------------------- 1 | x1 2 | x10 3 | x11 4 | x12 5 | x13 6 | x14 7 | x15 8 | x16 9 | x17 10 | x18 11 | x19 12 | x2 13 | x3 14 | x4 15 | x5 16 | x6 17 | x7 18 | x8 19 | x9 20 | ONE_VAR_CONSTANT 21 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_MPS_baseline/piecewise.col: -------------------------------------------------------------------------------- 1 | x1 2 | x10 3 | x11 4 | x12 5 | x13 6 | x14 7 | x15 8 | x16 9 | x17 10 | x18 11 | x19 12 | x2 13 | x3 14 | x4 15 | x5 16 | x6 17 | x7 18 | x8 19 | x9 20 | ONE_VAR_CONSTANT 21 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_symbolic_names_baseline/farmer.tim: -------------------------------------------------------------------------------- 1 | TIME farmer 2 | PERIODS IMPLICIT 3 | DevotedAcreage(CORN) Total_Cost_Objective TIME1 4 | QuantityPurchased(CORN) c_l_EnforceCattleFeedRequirement(CORN)_ TIME2 5 | ENDATA 6 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/test_model/twovarslack/coolplot.s: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | runph --user-defined-extension=pysp.plugins.phhistoryextension --max-iterations=50 --default-rho=200 --report-weights --enable-ww-extensions 3 | python ../plot_history.py ph_history.json 4 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/ddsip_baselines/farmer_baseline/ddsip.config: -------------------------------------------------------------------------------- 1 | BEGIN 2 | 3 | 4 | FIRSTCON 1 5 | FIRSTVAR 3 6 | SECCON 15 7 | SECVAR 12 8 | POSTFIX __DDSIP_FIRSTSTAGE 9 | SCENAR 3 10 | STOCRHS 0 11 | STOCCOST 0 12 | STOCMAT 6 13 | 14 | 15 | END 16 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/ddsip_baselines/piecewise_baseline/cost.sc: -------------------------------------------------------------------------------- 1 | Names 2 | fx 3 | fz 4 | r 5 | ONE_VAR_CONSTANT 6 | scen 7 | 1 8 | -1 9 | 1 10 | 0 11 | scen 12 | 1 13 | -1 14 | 1 15 | -1 16 | scen 17 | 1 18 | -1 19 | 1 20 | -2 21 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/ddsip_baselines/piecewise_baseline/ddsip.config: -------------------------------------------------------------------------------- 1 | BEGIN 2 | 3 | 4 | FIRSTCON 1 5 | FIRSTVAR 1 6 | SECCON 20 7 | SECVAR 19 8 | POSTFIX __DDSIP_FIRSTSTAGE 9 | SCENAR 3 10 | STOCRHS 10 11 | STOCCOST 4 12 | STOCMAT 22 13 | 14 | 15 | END 16 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_LP_symbolic_names_baseline/scenario_files/farmer.lp.symbols.AverageScenario: -------------------------------------------------------------------------------- 1 | DevotedAcreage(CORN) DevotedAcreage:$CORN 2 | DevotedAcreage(SUGAR_BEETS) DevotedAcreage:$SUGAR_BEETS 3 | DevotedAcreage(WHEAT) DevotedAcreage:$WHEAT 4 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_LP_ignore_derived_baseline/piecewise.col: -------------------------------------------------------------------------------- 1 | x1 2 | x10 3 | x11 4 | x12 5 | x2 6 | x6 7 | x7 8 | x8 9 | x9 10 | x13 11 | x14 12 | x15 13 | x16 14 | x17 15 | x18 16 | x19 17 | x3 18 | x4 19 | x5 20 | ONE_VAR_CONSTANT 21 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_MPS_ignore_derived_baseline/piecewise.col: -------------------------------------------------------------------------------- 1 | x1 2 | x10 3 | x11 4 | x12 5 | x2 6 | x6 7 | x7 8 | x8 9 | x9 10 | x13 11 | x14 12 | x15 13 | x16 14 | x17 15 | x18 16 | x19 17 | x3 18 | x4 19 | x5 20 | ONE_VAR_CONSTANT 21 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/ddsip_baselines/farmer_baseline/core.lp.symbols: -------------------------------------------------------------------------------- 1 | DevotedAcreage(CORN)__DDSIP_FIRSTSTAGE DevotedAcreage:$CORN 2 | DevotedAcreage(SUGAR_BEETS)__DDSIP_FIRSTSTAGE DevotedAcreage:$SUGAR_BEETS 3 | DevotedAcreage(WHEAT)__DDSIP_FIRSTSTAGE DevotedAcreage:$WHEAT 4 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_LP_baseline/farmer.row: -------------------------------------------------------------------------------- 1 | x13 2 | c_u_x14_ 3 | c_l_x15_ 4 | c_l_x16_ 5 | c_l_x17_ 6 | c_u_x18_ 7 | c_u_x19_ 8 | c_u_x20_ 9 | r_l_x21_ 10 | r_u_x21_ 11 | r_l_x22_ 12 | r_u_x22_ 13 | r_l_x23_ 14 | r_u_x23_ 15 | c_e_ONE_VAR_CONSTANT -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_LP_symbolic_names_baseline/scenario_files/farmer.lp.symbols.AboveAverageScenario: -------------------------------------------------------------------------------- 1 | DevotedAcreage(CORN) DevotedAcreage:$CORN 2 | DevotedAcreage(SUGAR_BEETS) DevotedAcreage:$SUGAR_BEETS 3 | DevotedAcreage(WHEAT) DevotedAcreage:$WHEAT 4 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_LP_symbolic_names_baseline/scenario_files/farmer.lp.symbols.BelowAverageScenario: -------------------------------------------------------------------------------- 1 | DevotedAcreage(CORN) DevotedAcreage:$CORN 2 | DevotedAcreage(SUGAR_BEETS) DevotedAcreage:$SUGAR_BEETS 3 | DevotedAcreage(WHEAT) DevotedAcreage:$WHEAT 4 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_baseline/farmer.row: -------------------------------------------------------------------------------- 1 | x13 2 | c_u_x14_ 3 | c_l_x15_ 4 | c_l_x16_ 5 | c_l_x17_ 6 | c_u_x18_ 7 | c_u_x19_ 8 | c_u_x20_ 9 | r_l_x21_ 10 | r_u_x21_ 11 | r_l_x22_ 12 | r_u_x22_ 13 | r_l_x23_ 14 | r_u_x23_ 15 | c_e_ONE_VAR_CONSTANT -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_symbolic_names_baseline/scenario_files/farmer.mps.symbols.AverageScenario: -------------------------------------------------------------------------------- 1 | DevotedAcreage(CORN) DevotedAcreage:$CORN 2 | DevotedAcreage(SUGAR_BEETS) DevotedAcreage:$SUGAR_BEETS 3 | DevotedAcreage(WHEAT) DevotedAcreage:$WHEAT 4 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_symbolic_names_ignore_derived_baseline/farmer.tim: -------------------------------------------------------------------------------- 1 | TIME farmer 2 | PERIODS IMPLICIT 3 | DevotedAcreage(CORN) Total_Cost_Objective TIME1 4 | QuantityPurchased(CORN) c_l_EnforceCattleFeedRequirement(CORN)_ TIME2 5 | ENDATA 6 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_symbolic_names_baseline/scenario_files/farmer.mps.symbols.AboveAverageScenario: -------------------------------------------------------------------------------- 1 | DevotedAcreage(CORN) DevotedAcreage:$CORN 2 | DevotedAcreage(SUGAR_BEETS) DevotedAcreage:$SUGAR_BEETS 3 | DevotedAcreage(WHEAT) DevotedAcreage:$WHEAT 4 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_symbolic_names_baseline/scenario_files/farmer.mps.symbols.BelowAverageScenario: -------------------------------------------------------------------------------- 1 | DevotedAcreage(CORN) DevotedAcreage:$CORN 2 | DevotedAcreage(SUGAR_BEETS) DevotedAcreage:$SUGAR_BEETS 3 | DevotedAcreage(WHEAT) DevotedAcreage:$WHEAT 4 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_LP_baseline/scenario_files/piecewise.col.Scenario1: -------------------------------------------------------------------------------- 1 | x1 2 | x10 3 | x11 4 | x12 5 | x13 6 | x14 7 | x15 8 | x16 9 | x17 10 | x18 11 | x19 12 | x2 13 | x3 14 | x4 15 | x5 16 | x6 17 | x7 18 | x8 19 | x9 20 | ONE_VAR_CONSTANT 21 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_LP_baseline/scenario_files/piecewise.col.Scenario2: -------------------------------------------------------------------------------- 1 | x1 2 | x10 3 | x11 4 | x12 5 | x13 6 | x14 7 | x15 8 | x16 9 | x17 10 | x18 11 | x19 12 | x2 13 | x3 14 | x4 15 | x5 16 | x6 17 | x7 18 | x8 19 | x9 20 | ONE_VAR_CONSTANT 21 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_LP_baseline/scenario_files/piecewise.col.Scenario3: -------------------------------------------------------------------------------- 1 | x1 2 | x10 3 | x11 4 | x12 5 | x13 6 | x14 7 | x15 8 | x16 9 | x17 10 | x18 11 | x19 12 | x2 13 | x3 14 | x4 15 | x5 16 | x6 17 | x7 18 | x8 19 | x9 20 | ONE_VAR_CONSTANT 21 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_MPS_baseline/scenario_files/piecewise.col.Scenario1: -------------------------------------------------------------------------------- 1 | x1 2 | x10 3 | x11 4 | x12 5 | x13 6 | x14 7 | x15 8 | x16 9 | x17 10 | x18 11 | x19 12 | x2 13 | x3 14 | x4 15 | x5 16 | x6 17 | x7 18 | x8 19 | x9 20 | ONE_VAR_CONSTANT 21 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_MPS_baseline/scenario_files/piecewise.col.Scenario2: -------------------------------------------------------------------------------- 1 | x1 2 | x10 3 | x11 4 | x12 5 | x13 6 | x14 7 | x15 8 | x16 9 | x17 10 | x18 11 | x19 12 | x2 13 | x3 14 | x4 15 | x5 16 | x6 17 | x7 18 | x8 19 | x9 20 | ONE_VAR_CONSTANT 21 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_MPS_baseline/scenario_files/piecewise.col.Scenario3: -------------------------------------------------------------------------------- 1 | x1 2 | x10 3 | x11 4 | x12 5 | x13 6 | x14 7 | x15 8 | x16 9 | x17 10 | x18 11 | x19 12 | x2 13 | x3 14 | x4 15 | x5 16 | x6 17 | x7 18 | x8 19 | x9 20 | ONE_VAR_CONSTANT 21 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_LP_symbolic_names_ignore_derived_baseline/scenario_files/farmer.lp.symbols.AverageScenario: -------------------------------------------------------------------------------- 1 | DevotedAcreage(CORN) DevotedAcreage:$CORN 2 | DevotedAcreage(SUGAR_BEETS) DevotedAcreage:$SUGAR_BEETS 3 | DevotedAcreage(WHEAT) DevotedAcreage:$WHEAT 4 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_LP_ignore_derived_baseline/farmer.row: -------------------------------------------------------------------------------- 1 | x13 2 | c_u_x14_ 3 | c_l_x15_ 4 | c_l_x16_ 5 | c_l_x17_ 6 | c_u_x18_ 7 | c_u_x19_ 8 | c_u_x20_ 9 | r_l_x21_ 10 | r_u_x21_ 11 | r_l_x22_ 12 | r_u_x22_ 13 | r_l_x23_ 14 | r_u_x23_ 15 | c_e_ONE_VAR_CONSTANT -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_LP_symbolic_names_ignore_derived_baseline/scenario_files/farmer.lp.symbols.AboveAverageScenario: -------------------------------------------------------------------------------- 1 | DevotedAcreage(CORN) DevotedAcreage:$CORN 2 | DevotedAcreage(SUGAR_BEETS) DevotedAcreage:$SUGAR_BEETS 3 | DevotedAcreage(WHEAT) DevotedAcreage:$WHEAT 4 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_LP_symbolic_names_ignore_derived_baseline/scenario_files/farmer.lp.symbols.BelowAverageScenario: -------------------------------------------------------------------------------- 1 | DevotedAcreage(CORN) DevotedAcreage:$CORN 2 | DevotedAcreage(SUGAR_BEETS) DevotedAcreage:$SUGAR_BEETS 3 | DevotedAcreage(WHEAT) DevotedAcreage:$WHEAT 4 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_ignore_derived_baseline/farmer.row: -------------------------------------------------------------------------------- 1 | x13 2 | c_u_x14_ 3 | c_l_x15_ 4 | c_l_x16_ 5 | c_l_x17_ 6 | c_u_x18_ 7 | c_u_x19_ 8 | c_u_x20_ 9 | r_l_x21_ 10 | r_u_x21_ 11 | r_l_x22_ 12 | r_u_x22_ 13 | r_l_x23_ 14 | r_u_x23_ 15 | c_e_ONE_VAR_CONSTANT -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_symbolic_names_ignore_derived_baseline/scenario_files/farmer.mps.symbols.AverageScenario: -------------------------------------------------------------------------------- 1 | DevotedAcreage(CORN) DevotedAcreage:$CORN 2 | DevotedAcreage(SUGAR_BEETS) DevotedAcreage:$SUGAR_BEETS 3 | DevotedAcreage(WHEAT) DevotedAcreage:$WHEAT 4 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/evalxhat/hydro_ef_costs.json: -------------------------------------------------------------------------------- 1 | {"Scen8": 159.5802081554258, "Scen9": 149.6166987441031, "Scen1": 229.39768851213472, "Scen2": 219.434179100812, "Scen3": 209.47066968948923, "Scen4": 189.470736389394, "Scen5": 179.5072269780713, "Scen6": 169.5437175667485, "Scen7": 169.5437175667485} -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_symbolic_names_baseline/scenario_files/farmer.tim.AverageScenario: -------------------------------------------------------------------------------- 1 | TIME farmer 2 | PERIODS IMPLICIT 3 | DevotedAcreage(CORN) Total_Cost_Objective TIME1 4 | QuantityPurchased(CORN) c_l_EnforceCattleFeedRequirement(CORN)_ TIME2 5 | ENDATA 6 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_symbolic_names_ignore_derived_baseline/scenario_files/farmer.mps.symbols.AboveAverageScenario: -------------------------------------------------------------------------------- 1 | DevotedAcreage(CORN) DevotedAcreage:$CORN 2 | DevotedAcreage(SUGAR_BEETS) DevotedAcreage:$SUGAR_BEETS 3 | DevotedAcreage(WHEAT) DevotedAcreage:$WHEAT 4 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_symbolic_names_ignore_derived_baseline/scenario_files/farmer.mps.symbols.BelowAverageScenario: -------------------------------------------------------------------------------- 1 | DevotedAcreage(CORN) DevotedAcreage:$CORN 2 | DevotedAcreage(SUGAR_BEETS) DevotedAcreage:$SUGAR_BEETS 3 | DevotedAcreage(WHEAT) DevotedAcreage:$WHEAT 4 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_LP_ignore_derived_baseline/scenario_files/piecewise.col.Scenario1: -------------------------------------------------------------------------------- 1 | x1 2 | x10 3 | x11 4 | x12 5 | x2 6 | x6 7 | x7 8 | x8 9 | x9 10 | x13 11 | x14 12 | x15 13 | x16 14 | x17 15 | x18 16 | x19 17 | x3 18 | x4 19 | x5 20 | ONE_VAR_CONSTANT 21 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_LP_ignore_derived_baseline/scenario_files/piecewise.col.Scenario2: -------------------------------------------------------------------------------- 1 | x1 2 | x10 3 | x11 4 | x12 5 | x2 6 | x6 7 | x7 8 | x8 9 | x9 10 | x13 11 | x14 12 | x15 13 | x16 14 | x17 15 | x18 16 | x19 17 | x3 18 | x4 19 | x5 20 | ONE_VAR_CONSTANT 21 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_LP_ignore_derived_baseline/scenario_files/piecewise.col.Scenario3: -------------------------------------------------------------------------------- 1 | x1 2 | x10 3 | x11 4 | x12 5 | x2 6 | x6 7 | x7 8 | x8 9 | x9 10 | x13 11 | x14 12 | x15 13 | x16 14 | x17 15 | x18 16 | x19 17 | x3 18 | x4 19 | x5 20 | ONE_VAR_CONSTANT 21 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_MPS_ignore_derived_baseline/scenario_files/piecewise.col.Scenario1: -------------------------------------------------------------------------------- 1 | x1 2 | x10 3 | x11 4 | x12 5 | x2 6 | x6 7 | x7 8 | x8 9 | x9 10 | x13 11 | x14 12 | x15 13 | x16 14 | x17 15 | x18 16 | x19 17 | x3 18 | x4 19 | x5 20 | ONE_VAR_CONSTANT 21 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_MPS_ignore_derived_baseline/scenario_files/piecewise.col.Scenario2: -------------------------------------------------------------------------------- 1 | x1 2 | x10 3 | x11 4 | x12 5 | x2 6 | x6 7 | x7 8 | x8 9 | x9 10 | x13 11 | x14 12 | x15 13 | x16 14 | x17 15 | x18 16 | x19 17 | x3 18 | x4 19 | x5 20 | ONE_VAR_CONSTANT 21 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_MPS_ignore_derived_baseline/scenario_files/piecewise.col.Scenario3: -------------------------------------------------------------------------------- 1 | x1 2 | x10 3 | x11 4 | x12 5 | x2 6 | x6 7 | x7 8 | x8 9 | x9 10 | x13 11 | x14 12 | x15 13 | x16 14 | x17 15 | x18 16 | x19 17 | x3 18 | x4 19 | x5 20 | ONE_VAR_CONSTANT 21 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_symbolic_names_baseline/scenario_files/farmer.tim.AboveAverageScenario: -------------------------------------------------------------------------------- 1 | TIME farmer 2 | PERIODS IMPLICIT 3 | DevotedAcreage(CORN) Total_Cost_Objective TIME1 4 | QuantityPurchased(CORN) c_l_EnforceCattleFeedRequirement(CORN)_ TIME2 5 | ENDATA 6 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_symbolic_names_baseline/scenario_files/farmer.tim.BelowAverageScenario: -------------------------------------------------------------------------------- 1 | TIME farmer 2 | PERIODS IMPLICIT 3 | DevotedAcreage(CORN) Total_Cost_Objective TIME1 4 | QuantityPurchased(CORN) c_l_EnforceCattleFeedRequirement(CORN)_ TIME2 5 | ENDATA 6 | -------------------------------------------------------------------------------- /tests/MilestoneTestsSeptFY19/use_case_II/tests: -------------------------------------------------------------------------------- 1 | [Tests] 2 | 3 | [./capital_budgeting_II] 4 | type = 'RavenFramework' 5 | input = 'raven_capital_budgeting_II.xml' 6 | UnorderedCsv = 'MC/print_main.csv' 7 | output = 'MC/datasetPrint.csv' 8 | skip_if_OS = windows 9 | [../] 10 | 11 | [] 12 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_LP_baseline/scenario_files/farmer.row.AverageScenario: -------------------------------------------------------------------------------- 1 | x13 2 | c_u_x14_ 3 | c_l_x15_ 4 | c_l_x16_ 5 | c_l_x17_ 6 | c_u_x18_ 7 | c_u_x19_ 8 | c_u_x20_ 9 | r_l_x21_ 10 | r_u_x21_ 11 | r_l_x22_ 12 | r_u_x22_ 13 | r_l_x23_ 14 | r_u_x23_ 15 | c_e_ONE_VAR_CONSTANT -------------------------------------------------------------------------------- /src/contrib/pysp/tests/scenariotreemanager/postinit_callback1.py: -------------------------------------------------------------------------------- 1 | def pysp_postinit_callback(worker, scenario): 2 | print("postinit callback1: "+str(scenario.name)+", " 3 | +str(worker._aggregate_user_data['names'])) 4 | print("") 5 | worker._aggregate_user_data['names'].remove(scenario.name) 6 | -------------------------------------------------------------------------------- /tests/MilestoneTestsSeptFY19/use_case_III/tests: -------------------------------------------------------------------------------- 1 | [Tests] 2 | 3 | [./capital_budgeting_III] 4 | type = 'RavenFramework' 5 | input = 'raven_capital_budgeting_III.xml' 6 | UnorderedCsv = 'MC/print_main.csv' 7 | output = 'MC/print_basicStat.csv' 8 | skip_if_OS = windows 9 | [../] 10 | 11 | [] 12 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_LP_baseline/scenario_files/farmer.row.AboveAverageScenario: -------------------------------------------------------------------------------- 1 | x13 2 | c_u_x14_ 3 | c_l_x15_ 4 | c_l_x16_ 5 | c_l_x17_ 6 | c_u_x18_ 7 | c_u_x19_ 8 | c_u_x20_ 9 | r_l_x21_ 10 | r_u_x21_ 11 | r_l_x22_ 12 | r_u_x22_ 13 | r_l_x23_ 14 | r_u_x23_ 15 | c_e_ONE_VAR_CONSTANT -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_LP_baseline/scenario_files/farmer.row.BelowAverageScenario: -------------------------------------------------------------------------------- 1 | x13 2 | c_u_x14_ 3 | c_l_x15_ 4 | c_l_x16_ 5 | c_l_x17_ 6 | c_u_x18_ 7 | c_u_x19_ 8 | c_u_x20_ 9 | r_l_x21_ 10 | r_u_x21_ 11 | r_l_x22_ 12 | r_u_x22_ 13 | r_l_x23_ 14 | r_u_x23_ 15 | c_e_ONE_VAR_CONSTANT -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_baseline/scenario_files/farmer.row.AverageScenario: -------------------------------------------------------------------------------- 1 | x13 2 | c_u_x14_ 3 | c_l_x15_ 4 | c_l_x16_ 5 | c_l_x17_ 6 | c_u_x18_ 7 | c_u_x19_ 8 | c_u_x20_ 9 | r_l_x21_ 10 | r_u_x21_ 11 | r_l_x22_ 12 | r_u_x22_ 13 | r_l_x23_ 14 | r_u_x23_ 15 | c_e_ONE_VAR_CONSTANT -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_symbolic_names_ignore_derived_baseline/scenario_files/farmer.tim.AverageScenario: -------------------------------------------------------------------------------- 1 | TIME farmer 2 | PERIODS IMPLICIT 3 | DevotedAcreage(CORN) Total_Cost_Objective TIME1 4 | QuantityPurchased(CORN) c_l_EnforceCattleFeedRequirement(CORN)_ TIME2 5 | ENDATA 6 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_LP_baseline/scenario_files/farmer.sto.AverageScenario: -------------------------------------------------------------------------------- 1 | BL BLOCK1 PERIOD2 0.33333333999999998 2 | x1 c_l_x15_ 3 3 | x2 c_l_x16_ 20 4 | x3 c_l_x17_ 2.5 5 | x1 c_u_x18_ -3 6 | x2 c_u_x19_ -20 7 | x3 c_u_x20_ -2.5 8 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_baseline/scenario_files/farmer.row.AboveAverageScenario: -------------------------------------------------------------------------------- 1 | x13 2 | c_u_x14_ 3 | c_l_x15_ 4 | c_l_x16_ 5 | c_l_x17_ 6 | c_u_x18_ 7 | c_u_x19_ 8 | c_u_x20_ 9 | r_l_x21_ 10 | r_u_x21_ 11 | r_l_x22_ 12 | r_u_x22_ 13 | r_l_x23_ 14 | r_u_x23_ 15 | c_e_ONE_VAR_CONSTANT -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_baseline/scenario_files/farmer.row.BelowAverageScenario: -------------------------------------------------------------------------------- 1 | x13 2 | c_u_x14_ 3 | c_l_x15_ 4 | c_l_x16_ 5 | c_l_x17_ 6 | c_u_x18_ 7 | c_u_x19_ 8 | c_u_x20_ 9 | r_l_x21_ 10 | r_u_x21_ 11 | r_l_x22_ 12 | r_u_x22_ 13 | r_l_x23_ 14 | r_u_x23_ 15 | c_e_ONE_VAR_CONSTANT -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_baseline/scenario_files/farmer.sto.AverageScenario: -------------------------------------------------------------------------------- 1 | BL BLOCK1 PERIOD2 0.33333333999999998 2 | x1 c_l_x15_ 3 3 | x2 c_l_x16_ 20 4 | x3 c_l_x17_ 2.5 5 | x1 c_u_x18_ -3 6 | x2 c_u_x19_ -20 7 | x3 c_u_x20_ -2.5 8 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_symbolic_names_ignore_derived_baseline/scenario_files/farmer.tim.AboveAverageScenario: -------------------------------------------------------------------------------- 1 | TIME farmer 2 | PERIODS IMPLICIT 3 | DevotedAcreage(CORN) Total_Cost_Objective TIME1 4 | QuantityPurchased(CORN) c_l_EnforceCattleFeedRequirement(CORN)_ TIME2 5 | ENDATA 6 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_symbolic_names_ignore_derived_baseline/scenario_files/farmer.tim.BelowAverageScenario: -------------------------------------------------------------------------------- 1 | TIME farmer 2 | PERIODS IMPLICIT 3 | DevotedAcreage(CORN) Total_Cost_Objective TIME1 4 | QuantityPurchased(CORN) c_l_EnforceCattleFeedRequirement(CORN)_ TIME2 5 | ENDATA 6 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_LP_ignore_derived_baseline/scenario_files/farmer.row.AverageScenario: -------------------------------------------------------------------------------- 1 | x13 2 | c_u_x14_ 3 | c_l_x15_ 4 | c_l_x16_ 5 | c_l_x17_ 6 | c_u_x18_ 7 | c_u_x19_ 8 | c_u_x20_ 9 | r_l_x21_ 10 | r_u_x21_ 11 | r_l_x22_ 12 | r_u_x22_ 13 | r_l_x23_ 14 | r_u_x23_ 15 | c_e_ONE_VAR_CONSTANT -------------------------------------------------------------------------------- /src/contrib/pysp/bbph/testphscript.bash: -------------------------------------------------------------------------------- 1 | #! /bin/bash 2 | EDIR=/home/woodruff/software/pyomo/examples/pysp/sizes 3 | 4 | export PYRO_NS_PORT=9090 5 | runph -i $EDIR/SIZES3 -m $EDIR/models \ 6 | --default-rho=1 \ 7 | --user-defined-extension=pysp.plugins.phboundextension \ 8 | --traceback BBPHTOKEN 9 | 10 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_LP_ignore_derived_baseline/scenario_files/farmer.row.AboveAverageScenario: -------------------------------------------------------------------------------- 1 | x13 2 | c_u_x14_ 3 | c_l_x15_ 4 | c_l_x16_ 5 | c_l_x17_ 6 | c_u_x18_ 7 | c_u_x19_ 8 | c_u_x20_ 9 | r_l_x21_ 10 | r_u_x21_ 11 | r_l_x22_ 12 | r_u_x22_ 13 | r_l_x23_ 14 | r_u_x23_ 15 | c_e_ONE_VAR_CONSTANT -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_LP_ignore_derived_baseline/scenario_files/farmer.row.BelowAverageScenario: -------------------------------------------------------------------------------- 1 | x13 2 | c_u_x14_ 3 | c_l_x15_ 4 | c_l_x16_ 5 | c_l_x17_ 6 | c_u_x18_ 7 | c_u_x19_ 8 | c_u_x20_ 9 | r_l_x21_ 10 | r_u_x21_ 11 | r_l_x22_ 12 | r_u_x22_ 13 | r_l_x23_ 14 | r_u_x23_ 15 | c_e_ONE_VAR_CONSTANT -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_ignore_derived_baseline/scenario_files/farmer.row.AverageScenario: -------------------------------------------------------------------------------- 1 | x13 2 | c_u_x14_ 3 | c_l_x15_ 4 | c_l_x16_ 5 | c_l_x17_ 6 | c_u_x18_ 7 | c_u_x19_ 8 | c_u_x20_ 9 | r_l_x21_ 10 | r_u_x21_ 11 | r_l_x22_ 12 | r_u_x22_ 13 | r_l_x23_ 14 | r_u_x23_ 15 | c_e_ONE_VAR_CONSTANT -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_LP_ignore_derived_baseline/scenario_files/farmer.sto.AverageScenario: -------------------------------------------------------------------------------- 1 | BL BLOCK1 PERIOD2 0.33333333999999998 2 | x1 c_l_x15_ 3 3 | x2 c_l_x16_ 20 4 | x3 c_l_x17_ 2.5 5 | x1 c_u_x18_ -3 6 | x2 c_u_x19_ -20 7 | x3 c_u_x20_ -2.5 8 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_ignore_derived_baseline/scenario_files/farmer.row.AboveAverageScenario: -------------------------------------------------------------------------------- 1 | x13 2 | c_u_x14_ 3 | c_l_x15_ 4 | c_l_x16_ 5 | c_l_x17_ 6 | c_u_x18_ 7 | c_u_x19_ 8 | c_u_x20_ 9 | r_l_x21_ 10 | r_u_x21_ 11 | r_l_x22_ 12 | r_u_x22_ 13 | r_l_x23_ 14 | r_u_x23_ 15 | c_e_ONE_VAR_CONSTANT -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_ignore_derived_baseline/scenario_files/farmer.row.BelowAverageScenario: -------------------------------------------------------------------------------- 1 | x13 2 | c_u_x14_ 3 | c_l_x15_ 4 | c_l_x16_ 5 | c_l_x17_ 6 | c_u_x18_ 7 | c_u_x19_ 8 | c_u_x20_ 9 | r_l_x21_ 10 | r_u_x21_ 11 | r_l_x22_ 12 | r_u_x22_ 13 | r_l_x23_ 14 | r_u_x23_ 15 | c_e_ONE_VAR_CONSTANT -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_ignore_derived_baseline/scenario_files/farmer.sto.AverageScenario: -------------------------------------------------------------------------------- 1 | BL BLOCK1 PERIOD2 0.33333333999999998 2 | x1 c_l_x15_ 3 3 | x2 c_l_x16_ 20 4 | x3 c_l_x17_ 2.5 5 | x1 c_u_x18_ -3 6 | x2 c_u_x19_ -20 7 | x3 c_u_x20_ -2.5 8 | -------------------------------------------------------------------------------- /tests/CapitalInvestments/mckp/gold/test_mckp.csv: -------------------------------------------------------------------------------- 1 | 1__1,2__1,3__1,4__1,4__2,4__3,5__1,5__2,5__3,5__4,6__1,6__2,6__3,6__4,6__5,6__6,6__7,7__1,8__1,9__1,10__1,11__1,12__1,13__1,14__1,15__1,16__1,17__1,MaxNPV 2 | 1.0,1.0,1.0,1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,59.82600000000001 3 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/evalxhat/finance_ef_costs.json: -------------------------------------------------------------------------------- 1 | {"StockBondStockScenario": 1428.57142857141, "BondStockBondScenario": 0.0, "BondBondBondScenario": -48640.0, "BondStockStockScenario": 1428.57142857141, "StockStockBondScenario": 8870.2990476191, "StockBondBondScenario": 0.0, "StockStockStockScenario": 24799.880952381, "BondBondStockScenario": 0.0} -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_LP_baseline/scenario_files/farmer.sto.AboveAverageScenario: -------------------------------------------------------------------------------- 1 | BL BLOCK1 PERIOD2 0.33333332999999998 2 | x1 c_l_x15_ 3.6000000000000001 3 | x2 c_l_x16_ 24 4 | x3 c_l_x17_ 3 5 | x1 c_u_x18_ -3.6000000000000001 6 | x2 c_u_x19_ -24 7 | x3 c_u_x20_ -3 8 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_LP_baseline/scenario_files/farmer.sto.BelowAverageScenario: -------------------------------------------------------------------------------- 1 | BL BLOCK1 PERIOD2 0.33333332999999998 2 | x1 c_l_x15_ 2.3999999999999999 3 | x2 c_l_x16_ 16 4 | x3 c_l_x17_ 2 5 | x1 c_u_x18_ -2.3999999999999999 6 | x2 c_u_x19_ -16 7 | x3 c_u_x20_ -2 8 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_baseline/scenario_files/farmer.sto.AboveAverageScenario: -------------------------------------------------------------------------------- 1 | BL BLOCK1 PERIOD2 0.33333332999999998 2 | x1 c_l_x15_ 3.6000000000000001 3 | x2 c_l_x16_ 24 4 | x3 c_l_x17_ 3 5 | x1 c_u_x18_ -3.6000000000000001 6 | x2 c_u_x19_ -24 7 | x3 c_u_x20_ -3 8 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_baseline/scenario_files/farmer.sto.BelowAverageScenario: -------------------------------------------------------------------------------- 1 | BL BLOCK1 PERIOD2 0.33333332999999998 2 | x1 c_l_x15_ 2.3999999999999999 3 | x2 c_l_x16_ 16 4 | x3 c_l_x17_ 2 5 | x1 c_u_x18_ -2.3999999999999999 6 | x2 c_u_x19_ -16 7 | x3 c_u_x20_ -2 8 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_LP_baseline/piecewise.cor.symbols: -------------------------------------------------------------------------------- 1 | x2 fx 2 | x10 p_first_stage.INC_bin_y:#1 3 | x11 p_first_stage.INC_bin_y:#2 4 | x12 p_first_stage.INC_bin_y:#3 5 | x6 p_first_stage.INC_delta:#1 6 | x7 p_first_stage.INC_delta:#2 7 | x8 p_first_stage.INC_delta:#3 8 | x9 p_first_stage.INC_delta:#4 9 | x1 x 10 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_MPS_baseline/piecewise.cor.symbols: -------------------------------------------------------------------------------- 1 | x2 fx 2 | x10 p_first_stage.INC_bin_y:#1 3 | x11 p_first_stage.INC_bin_y:#2 4 | x12 p_first_stage.INC_bin_y:#3 5 | x6 p_first_stage.INC_delta:#1 6 | x7 p_first_stage.INC_delta:#2 7 | x8 p_first_stage.INC_delta:#3 8 | x9 p_first_stage.INC_delta:#4 9 | x1 x 10 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_LP_ignore_derived_baseline/scenario_files/farmer.sto.AboveAverageScenario: -------------------------------------------------------------------------------- 1 | BL BLOCK1 PERIOD2 0.33333332999999998 2 | x1 c_l_x15_ 3.6000000000000001 3 | x2 c_l_x16_ 24 4 | x3 c_l_x17_ 3 5 | x1 c_u_x18_ -3.6000000000000001 6 | x2 c_u_x19_ -24 7 | x3 c_u_x20_ -3 8 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_LP_ignore_derived_baseline/scenario_files/farmer.sto.BelowAverageScenario: -------------------------------------------------------------------------------- 1 | BL BLOCK1 PERIOD2 0.33333332999999998 2 | x1 c_l_x15_ 2.3999999999999999 3 | x2 c_l_x16_ 16 4 | x3 c_l_x17_ 2 5 | x1 c_u_x18_ -2.3999999999999999 6 | x2 c_u_x19_ -16 7 | x3 c_u_x20_ -2 8 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_ignore_derived_baseline/scenario_files/farmer.sto.AboveAverageScenario: -------------------------------------------------------------------------------- 1 | BL BLOCK1 PERIOD2 0.33333332999999998 2 | x1 c_l_x15_ 3.6000000000000001 3 | x2 c_l_x16_ 24 4 | x3 c_l_x17_ 3 5 | x1 c_u_x18_ -3.6000000000000001 6 | x2 c_u_x19_ -24 7 | x3 c_u_x20_ -3 8 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_ignore_derived_baseline/scenario_files/farmer.sto.BelowAverageScenario: -------------------------------------------------------------------------------- 1 | BL BLOCK1 PERIOD2 0.33333332999999998 2 | x1 c_l_x15_ 2.3999999999999999 3 | x2 c_l_x16_ 16 4 | x3 c_l_x17_ 2 5 | x1 c_u_x18_ -2.3999999999999999 6 | x2 c_u_x19_ -16 7 | x3 c_u_x20_ -2 8 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_LP_ignore_derived_baseline/piecewise.cor.symbols: -------------------------------------------------------------------------------- 1 | x2 fx 2 | x10 p_first_stage.INC_bin_y:#1 3 | x11 p_first_stage.INC_bin_y:#2 4 | x12 p_first_stage.INC_bin_y:#3 5 | x6 p_first_stage.INC_delta:#1 6 | x7 p_first_stage.INC_delta:#2 7 | x8 p_first_stage.INC_delta:#3 8 | x9 p_first_stage.INC_delta:#4 9 | x1 x 10 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_MPS_ignore_derived_baseline/piecewise.cor.symbols: -------------------------------------------------------------------------------- 1 | x2 fx 2 | x10 p_first_stage.INC_bin_y:#1 3 | x11 p_first_stage.INC_bin_y:#2 4 | x12 p_first_stage.INC_bin_y:#3 5 | x6 p_first_stage.INC_delta:#1 6 | x7 p_first_stage.INC_delta:#2 7 | x8 p_first_stage.INC_delta:#3 8 | x9 p_first_stage.INC_delta:#4 9 | x1 x 10 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/scenariotreemanager/postinit_callback2.py: -------------------------------------------------------------------------------- 1 | def pysp_postinit_callback(worker, scenario): 2 | # test the order of callback execution 3 | assert scenario.name not in worker._aggregate_user_data['names'] 4 | print("postinit callback2: "+str(scenario.name)+", " 5 | +str(worker._aggregate_user_data['leaf_node'])) 6 | print("") 7 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_LP_baseline/scenario_files/piecewise.lp.symbols.Scenario1: -------------------------------------------------------------------------------- 1 | x2 fx 2 | x10 p_first_stage.INC_bin_y:#1 3 | x11 p_first_stage.INC_bin_y:#2 4 | x12 p_first_stage.INC_bin_y:#3 5 | x6 p_first_stage.INC_delta:#1 6 | x7 p_first_stage.INC_delta:#2 7 | x8 p_first_stage.INC_delta:#3 8 | x9 p_first_stage.INC_delta:#4 9 | x1 x 10 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_LP_baseline/scenario_files/piecewise.lp.symbols.Scenario2: -------------------------------------------------------------------------------- 1 | x2 fx 2 | x10 p_first_stage.INC_bin_y:#1 3 | x11 p_first_stage.INC_bin_y:#2 4 | x12 p_first_stage.INC_bin_y:#3 5 | x6 p_first_stage.INC_delta:#1 6 | x7 p_first_stage.INC_delta:#2 7 | x8 p_first_stage.INC_delta:#3 8 | x9 p_first_stage.INC_delta:#4 9 | x1 x 10 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_LP_baseline/scenario_files/piecewise.lp.symbols.Scenario3: -------------------------------------------------------------------------------- 1 | x2 fx 2 | x10 p_first_stage.INC_bin_y:#1 3 | x11 p_first_stage.INC_bin_y:#2 4 | x12 p_first_stage.INC_bin_y:#3 5 | x6 p_first_stage.INC_delta:#1 6 | x7 p_first_stage.INC_delta:#2 7 | x8 p_first_stage.INC_delta:#3 8 | x9 p_first_stage.INC_delta:#4 9 | x1 x 10 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/piecewise_scenario_tree_bundles.py: -------------------------------------------------------------------------------- 1 | import piecewise_scenario_tree 2 | 3 | model = piecewise_scenario_tree.model.clone() 4 | model.Scenarios.pprint() 5 | model.Bundling = True 6 | model.Bundles.add("B1") 7 | model.BundleScenarios["B1"] = ["Scenario1", "Scenario2"] 8 | model.Bundles.add("B2") 9 | model.BundleScenarios["B2"] = ["Scenario3"] 10 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_MPS_baseline/scenario_files/piecewise.mps.symbols.Scenario1: -------------------------------------------------------------------------------- 1 | x2 fx 2 | x10 p_first_stage.INC_bin_y:#1 3 | x11 p_first_stage.INC_bin_y:#2 4 | x12 p_first_stage.INC_bin_y:#3 5 | x6 p_first_stage.INC_delta:#1 6 | x7 p_first_stage.INC_delta:#2 7 | x8 p_first_stage.INC_delta:#3 8 | x9 p_first_stage.INC_delta:#4 9 | x1 x 10 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_MPS_baseline/scenario_files/piecewise.mps.symbols.Scenario2: -------------------------------------------------------------------------------- 1 | x2 fx 2 | x10 p_first_stage.INC_bin_y:#1 3 | x11 p_first_stage.INC_bin_y:#2 4 | x12 p_first_stage.INC_bin_y:#3 5 | x6 p_first_stage.INC_delta:#1 6 | x7 p_first_stage.INC_delta:#2 7 | x8 p_first_stage.INC_delta:#3 8 | x9 p_first_stage.INC_delta:#4 9 | x1 x 10 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_MPS_baseline/scenario_files/piecewise.mps.symbols.Scenario3: -------------------------------------------------------------------------------- 1 | x2 fx 2 | x10 p_first_stage.INC_bin_y:#1 3 | x11 p_first_stage.INC_bin_y:#2 4 | x12 p_first_stage.INC_bin_y:#3 5 | x6 p_first_stage.INC_delta:#1 6 | x7 p_first_stage.INC_delta:#2 7 | x8 p_first_stage.INC_delta:#3 8 | x9 p_first_stage.INC_delta:#4 9 | x1 x 10 | -------------------------------------------------------------------------------- /tests/CapitalInvestments/mckp/tests: -------------------------------------------------------------------------------- 1 | [Tests] 2 | 3 | [./logos_mckp] 4 | type = 'LogosRun' 5 | input = 'test_mckp.xml' 6 | UnorderedCsv = 'test_mckp.csv' 7 | [../] 8 | 9 | [./logos_mckp_scenario] 10 | type = 'LogosRun' 11 | input = 'test_mckp_scenario.xml' 12 | UnorderedCsv = 'test_mckp_scenario.csv' 13 | skip_if_OS = windows 14 | [../] 15 | 16 | [] 17 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_LP_baseline/piecewise.row: -------------------------------------------------------------------------------- 1 | x20 2 | c_l_x21_ 3 | c_e_x22_ 4 | c_e_x23_ 5 | c_e_x24_ 6 | c_e_x25_ 7 | c_l_x26_ 8 | c_u_x27_ 9 | c_u_x28_ 10 | c_u_x29_ 11 | c_u_x30_ 12 | c_u_x31_ 13 | c_u_x32_ 14 | c_u_x33_ 15 | c_u_x34_ 16 | c_u_x35_ 17 | c_u_x36_ 18 | c_u_x37_ 19 | c_u_x38_ 20 | r_l_x39_ 21 | r_u_x39_ 22 | c_e_ONE_VAR_CONSTANT -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_MPS_baseline/piecewise.row: -------------------------------------------------------------------------------- 1 | x20 2 | c_l_x21_ 3 | c_e_x22_ 4 | c_e_x23_ 5 | c_e_x24_ 6 | c_e_x25_ 7 | c_l_x26_ 8 | c_u_x27_ 9 | c_u_x28_ 10 | c_u_x29_ 11 | c_u_x30_ 12 | c_u_x31_ 13 | c_u_x32_ 14 | c_u_x33_ 15 | c_u_x34_ 16 | c_u_x35_ 17 | c_u_x36_ 18 | c_u_x37_ 19 | c_u_x38_ 20 | r_l_x39_ 21 | r_u_x39_ 22 | c_e_ONE_VAR_CONSTANT -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_LP_ignore_derived_baseline/scenario_files/piecewise.lp.symbols.Scenario1: -------------------------------------------------------------------------------- 1 | x2 fx 2 | x10 p_first_stage.INC_bin_y:#1 3 | x11 p_first_stage.INC_bin_y:#2 4 | x12 p_first_stage.INC_bin_y:#3 5 | x6 p_first_stage.INC_delta:#1 6 | x7 p_first_stage.INC_delta:#2 7 | x8 p_first_stage.INC_delta:#3 8 | x9 p_first_stage.INC_delta:#4 9 | x1 x 10 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_LP_ignore_derived_baseline/scenario_files/piecewise.lp.symbols.Scenario2: -------------------------------------------------------------------------------- 1 | x2 fx 2 | x10 p_first_stage.INC_bin_y:#1 3 | x11 p_first_stage.INC_bin_y:#2 4 | x12 p_first_stage.INC_bin_y:#3 5 | x6 p_first_stage.INC_delta:#1 6 | x7 p_first_stage.INC_delta:#2 7 | x8 p_first_stage.INC_delta:#3 8 | x9 p_first_stage.INC_delta:#4 9 | x1 x 10 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_LP_ignore_derived_baseline/scenario_files/piecewise.lp.symbols.Scenario3: -------------------------------------------------------------------------------- 1 | x2 fx 2 | x10 p_first_stage.INC_bin_y:#1 3 | x11 p_first_stage.INC_bin_y:#2 4 | x12 p_first_stage.INC_bin_y:#3 5 | x6 p_first_stage.INC_delta:#1 6 | x7 p_first_stage.INC_delta:#2 7 | x8 p_first_stage.INC_delta:#3 8 | x9 p_first_stage.INC_delta:#4 9 | x1 x 10 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_MPS_ignore_derived_baseline/scenario_files/piecewise.mps.symbols.Scenario1: -------------------------------------------------------------------------------- 1 | x2 fx 2 | x10 p_first_stage.INC_bin_y:#1 3 | x11 p_first_stage.INC_bin_y:#2 4 | x12 p_first_stage.INC_bin_y:#3 5 | x6 p_first_stage.INC_delta:#1 6 | x7 p_first_stage.INC_delta:#2 7 | x8 p_first_stage.INC_delta:#3 8 | x9 p_first_stage.INC_delta:#4 9 | x1 x 10 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_MPS_ignore_derived_baseline/scenario_files/piecewise.mps.symbols.Scenario2: -------------------------------------------------------------------------------- 1 | x2 fx 2 | x10 p_first_stage.INC_bin_y:#1 3 | x11 p_first_stage.INC_bin_y:#2 4 | x12 p_first_stage.INC_bin_y:#3 5 | x6 p_first_stage.INC_delta:#1 6 | x7 p_first_stage.INC_delta:#2 7 | x8 p_first_stage.INC_delta:#3 8 | x9 p_first_stage.INC_delta:#4 9 | x1 x 10 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_MPS_ignore_derived_baseline/scenario_files/piecewise.mps.symbols.Scenario3: -------------------------------------------------------------------------------- 1 | x2 fx 2 | x10 p_first_stage.INC_bin_y:#1 3 | x11 p_first_stage.INC_bin_y:#2 4 | x12 p_first_stage.INC_bin_y:#3 5 | x6 p_first_stage.INC_delta:#1 6 | x7 p_first_stage.INC_delta:#2 7 | x8 p_first_stage.INC_delta:#3 8 | x9 p_first_stage.INC_delta:#4 9 | x1 x 10 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_LP_ignore_derived_baseline/piecewise.row: -------------------------------------------------------------------------------- 1 | x20 2 | c_e_x21_ 3 | c_e_x22_ 4 | c_l_x23_ 5 | c_u_x24_ 6 | c_u_x25_ 7 | c_u_x26_ 8 | c_u_x27_ 9 | c_u_x28_ 10 | c_u_x29_ 11 | c_e_x30_ 12 | c_e_x31_ 13 | c_l_x32_ 14 | c_u_x33_ 15 | c_u_x34_ 16 | c_u_x35_ 17 | c_u_x36_ 18 | c_u_x37_ 19 | c_u_x38_ 20 | r_l_x39_ 21 | r_u_x39_ 22 | c_e_ONE_VAR_CONSTANT -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_MPS_ignore_derived_baseline/piecewise.row: -------------------------------------------------------------------------------- 1 | x20 2 | c_e_x21_ 3 | c_e_x22_ 4 | c_l_x23_ 5 | c_u_x24_ 6 | c_u_x25_ 7 | c_u_x26_ 8 | c_u_x27_ 9 | c_u_x28_ 10 | c_u_x29_ 11 | c_e_x30_ 12 | c_e_x31_ 13 | c_l_x32_ 14 | c_u_x33_ 15 | c_u_x34_ 16 | c_u_x35_ 17 | c_u_x36_ 18 | c_u_x37_ 19 | c_u_x38_ 20 | r_l_x39_ 21 | r_u_x39_ 22 | c_e_ONE_VAR_CONSTANT -------------------------------------------------------------------------------- /tests/CapitalInvestments/mkp/gold/test_mkp_t.csv: -------------------------------------------------------------------------------- 1 | 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,capitals,MaxNPV 2 | 1.0,0.0,1.0,1.0,0.0,0.0,1.0,0.0,1.0,1.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0,0.0,1.0,1.0,1.0,1.0,1.0,0.0,0.0,1.0,0.0,unit_1,159846.0 3 | 0.0,0.0,0.0,0.0,1.0,1.0,0.0,1.0,0.0,0.0,0.0,1.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,1.0,0.0,1.0,unit_2,159846.0 4 | -------------------------------------------------------------------------------- /tests/CapitalInvestments/mkp/gold/test_mkp_weing.csv: -------------------------------------------------------------------------------- 1 | 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,capitals,MaxNPV 2 | 1.0,0.0,1.0,1.0,0.0,0.0,1.0,0.0,1.0,1.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0,0.0,1.0,1.0,1.0,1.0,1.0,0.0,0.0,1.0,0.0,unit_1,159846.0 3 | 0.0,0.0,0.0,0.0,1.0,1.0,0.0,1.0,0.0,0.0,0.0,1.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,1.0,0.0,1.0,unit_2,159846.0 4 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_LP_baseline/scenario_files/piecewise.row.Scenario1: -------------------------------------------------------------------------------- 1 | x20 2 | c_l_x21_ 3 | c_e_x22_ 4 | c_e_x23_ 5 | c_e_x24_ 6 | c_e_x25_ 7 | c_l_x26_ 8 | c_u_x27_ 9 | c_u_x28_ 10 | c_u_x29_ 11 | c_u_x30_ 12 | c_u_x31_ 13 | c_u_x32_ 14 | c_u_x33_ 15 | c_u_x34_ 16 | c_u_x35_ 17 | c_u_x36_ 18 | c_u_x37_ 19 | c_u_x38_ 20 | r_l_x39_ 21 | r_u_x39_ 22 | c_e_ONE_VAR_CONSTANT -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_LP_baseline/scenario_files/piecewise.row.Scenario2: -------------------------------------------------------------------------------- 1 | x20 2 | c_l_x21_ 3 | c_e_x22_ 4 | c_e_x23_ 5 | c_e_x24_ 6 | c_e_x25_ 7 | c_l_x26_ 8 | c_u_x27_ 9 | c_u_x28_ 10 | c_u_x29_ 11 | c_u_x30_ 12 | c_u_x31_ 13 | c_u_x32_ 14 | c_u_x33_ 15 | c_u_x34_ 16 | c_u_x35_ 17 | c_u_x36_ 18 | c_u_x37_ 19 | c_u_x38_ 20 | r_l_x39_ 21 | r_u_x39_ 22 | c_e_ONE_VAR_CONSTANT -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_LP_baseline/scenario_files/piecewise.row.Scenario3: -------------------------------------------------------------------------------- 1 | x20 2 | c_l_x21_ 3 | c_e_x22_ 4 | c_e_x23_ 5 | c_e_x24_ 6 | c_e_x25_ 7 | c_l_x26_ 8 | c_u_x27_ 9 | c_u_x28_ 10 | c_u_x29_ 11 | c_u_x30_ 12 | c_u_x31_ 13 | c_u_x32_ 14 | c_u_x33_ 15 | c_u_x34_ 16 | c_u_x35_ 17 | c_u_x36_ 18 | c_u_x37_ 19 | c_u_x38_ 20 | r_l_x39_ 21 | r_u_x39_ 22 | c_e_ONE_VAR_CONSTANT -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_MPS_baseline/scenario_files/piecewise.row.Scenario1: -------------------------------------------------------------------------------- 1 | x20 2 | c_l_x21_ 3 | c_e_x22_ 4 | c_e_x23_ 5 | c_e_x24_ 6 | c_e_x25_ 7 | c_l_x26_ 8 | c_u_x27_ 9 | c_u_x28_ 10 | c_u_x29_ 11 | c_u_x30_ 12 | c_u_x31_ 13 | c_u_x32_ 14 | c_u_x33_ 15 | c_u_x34_ 16 | c_u_x35_ 17 | c_u_x36_ 18 | c_u_x37_ 19 | c_u_x38_ 20 | r_l_x39_ 21 | r_u_x39_ 22 | c_e_ONE_VAR_CONSTANT -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_MPS_baseline/scenario_files/piecewise.row.Scenario2: -------------------------------------------------------------------------------- 1 | x20 2 | c_l_x21_ 3 | c_e_x22_ 4 | c_e_x23_ 5 | c_e_x24_ 6 | c_e_x25_ 7 | c_l_x26_ 8 | c_u_x27_ 9 | c_u_x28_ 10 | c_u_x29_ 11 | c_u_x30_ 12 | c_u_x31_ 13 | c_u_x32_ 14 | c_u_x33_ 15 | c_u_x34_ 16 | c_u_x35_ 17 | c_u_x36_ 18 | c_u_x37_ 19 | c_u_x38_ 20 | r_l_x39_ 21 | r_u_x39_ 22 | c_e_ONE_VAR_CONSTANT -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_MPS_baseline/scenario_files/piecewise.row.Scenario3: -------------------------------------------------------------------------------- 1 | x20 2 | c_l_x21_ 3 | c_e_x22_ 4 | c_e_x23_ 5 | c_e_x24_ 6 | c_e_x25_ 7 | c_l_x26_ 8 | c_u_x27_ 9 | c_u_x28_ 10 | c_u_x29_ 11 | c_u_x30_ 12 | c_u_x31_ 13 | c_u_x32_ 14 | c_u_x33_ 15 | c_u_x34_ 16 | c_u_x35_ 17 | c_u_x36_ 18 | c_u_x37_ 19 | c_u_x38_ 20 | r_l_x39_ 21 | r_u_x39_ 22 | c_e_ONE_VAR_CONSTANT -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_LP_ignore_derived_baseline/scenario_files/piecewise.row.Scenario1: -------------------------------------------------------------------------------- 1 | x20 2 | c_e_x21_ 3 | c_e_x22_ 4 | c_l_x23_ 5 | c_u_x24_ 6 | c_u_x25_ 7 | c_u_x26_ 8 | c_u_x27_ 9 | c_u_x28_ 10 | c_u_x29_ 11 | c_e_x30_ 12 | c_e_x31_ 13 | c_l_x32_ 14 | c_u_x33_ 15 | c_u_x34_ 16 | c_u_x35_ 17 | c_u_x36_ 18 | c_u_x37_ 19 | c_u_x38_ 20 | r_l_x39_ 21 | r_u_x39_ 22 | c_e_ONE_VAR_CONSTANT -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_LP_ignore_derived_baseline/scenario_files/piecewise.row.Scenario2: -------------------------------------------------------------------------------- 1 | x20 2 | c_e_x21_ 3 | c_e_x22_ 4 | c_l_x23_ 5 | c_u_x24_ 6 | c_u_x25_ 7 | c_u_x26_ 8 | c_u_x27_ 9 | c_u_x28_ 10 | c_u_x29_ 11 | c_e_x30_ 12 | c_e_x31_ 13 | c_l_x32_ 14 | c_u_x33_ 15 | c_u_x34_ 16 | c_u_x35_ 17 | c_u_x36_ 18 | c_u_x37_ 19 | c_u_x38_ 20 | r_l_x39_ 21 | r_u_x39_ 22 | c_e_ONE_VAR_CONSTANT -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_LP_ignore_derived_baseline/scenario_files/piecewise.row.Scenario3: -------------------------------------------------------------------------------- 1 | x20 2 | c_e_x21_ 3 | c_e_x22_ 4 | c_l_x23_ 5 | c_u_x24_ 6 | c_u_x25_ 7 | c_u_x26_ 8 | c_u_x27_ 9 | c_u_x28_ 10 | c_u_x29_ 11 | c_e_x30_ 12 | c_e_x31_ 13 | c_l_x32_ 14 | c_u_x33_ 15 | c_u_x34_ 16 | c_u_x35_ 17 | c_u_x36_ 18 | c_u_x37_ 19 | c_u_x38_ 20 | r_l_x39_ 21 | r_u_x39_ 22 | c_e_ONE_VAR_CONSTANT -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_MPS_ignore_derived_baseline/scenario_files/piecewise.row.Scenario1: -------------------------------------------------------------------------------- 1 | x20 2 | c_e_x21_ 3 | c_e_x22_ 4 | c_l_x23_ 5 | c_u_x24_ 6 | c_u_x25_ 7 | c_u_x26_ 8 | c_u_x27_ 9 | c_u_x28_ 10 | c_u_x29_ 11 | c_e_x30_ 12 | c_e_x31_ 13 | c_l_x32_ 14 | c_u_x33_ 15 | c_u_x34_ 16 | c_u_x35_ 17 | c_u_x36_ 18 | c_u_x37_ 19 | c_u_x38_ 20 | r_l_x39_ 21 | r_u_x39_ 22 | c_e_ONE_VAR_CONSTANT -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_MPS_ignore_derived_baseline/scenario_files/piecewise.row.Scenario2: -------------------------------------------------------------------------------- 1 | x20 2 | c_e_x21_ 3 | c_e_x22_ 4 | c_l_x23_ 5 | c_u_x24_ 6 | c_u_x25_ 7 | c_u_x26_ 8 | c_u_x27_ 9 | c_u_x28_ 10 | c_u_x29_ 11 | c_e_x30_ 12 | c_e_x31_ 13 | c_l_x32_ 14 | c_u_x33_ 15 | c_u_x34_ 16 | c_u_x35_ 17 | c_u_x36_ 18 | c_u_x37_ 19 | c_u_x38_ 20 | r_l_x39_ 21 | r_u_x39_ 22 | c_e_ONE_VAR_CONSTANT -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_MPS_ignore_derived_baseline/scenario_files/piecewise.row.Scenario3: -------------------------------------------------------------------------------- 1 | x20 2 | c_e_x21_ 3 | c_e_x22_ 4 | c_l_x23_ 5 | c_u_x24_ 6 | c_u_x25_ 7 | c_u_x26_ 8 | c_u_x27_ 9 | c_u_x28_ 10 | c_u_x29_ 11 | c_e_x30_ 12 | c_e_x31_ 13 | c_l_x32_ 14 | c_u_x33_ 15 | c_u_x34_ 16 | c_u_x35_ 17 | c_u_x36_ 18 | c_u_x37_ 19 | c_u_x38_ 20 | r_l_x39_ 21 | r_u_x39_ 22 | c_e_ONE_VAR_CONSTANT -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/schuripopt_baselines/farmer_baseline/AverageScenario.row: -------------------------------------------------------------------------------- 1 | ConstrainTotalAcreage 2 | EnforceCattleFeedRequirement[CORN] 3 | EnforceCattleFeedRequirement[SUGAR_BEETS] 4 | EnforceCattleFeedRequirement[WHEAT] 5 | LimitAmountSold[CORN] 6 | LimitAmountSold[SUGAR_BEETS] 7 | LimitAmountSold[WHEAT] 8 | EnforceQuotas[CORN] 9 | EnforceQuotas[SUGAR_BEETS] 10 | EnforceQuotas[WHEAT] 11 | Total_Cost_Objective 12 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/schuripopt_baselines/farmer_baseline/AboveAverageScenario.row: -------------------------------------------------------------------------------- 1 | ConstrainTotalAcreage 2 | EnforceCattleFeedRequirement[CORN] 3 | EnforceCattleFeedRequirement[SUGAR_BEETS] 4 | EnforceCattleFeedRequirement[WHEAT] 5 | LimitAmountSold[CORN] 6 | LimitAmountSold[SUGAR_BEETS] 7 | LimitAmountSold[WHEAT] 8 | EnforceQuotas[CORN] 9 | EnforceQuotas[SUGAR_BEETS] 10 | EnforceQuotas[WHEAT] 11 | Total_Cost_Objective 12 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/schuripopt_baselines/farmer_baseline/BelowAverageScenario.row: -------------------------------------------------------------------------------- 1 | ConstrainTotalAcreage 2 | EnforceCattleFeedRequirement[CORN] 3 | EnforceCattleFeedRequirement[SUGAR_BEETS] 4 | EnforceCattleFeedRequirement[WHEAT] 5 | LimitAmountSold[CORN] 6 | LimitAmountSold[SUGAR_BEETS] 7 | LimitAmountSold[WHEAT] 8 | EnforceQuotas[CORN] 9 | EnforceQuotas[SUGAR_BEETS] 10 | EnforceQuotas[WHEAT] 11 | Total_Cost_Objective 12 | -------------------------------------------------------------------------------- /tests/MilestoneTestsSeptFY19/use_case_II/MC/condenser_retubing.py: -------------------------------------------------------------------------------- 1 | # Copyright 2020, Battelle Energy Alliance, LLC 2 | # ALL RIGHTS RESERVED 3 | import numpy as np 4 | 5 | def run(self,Input): 6 | 7 | t_shutdown = 25 # days 8 | repl_cost = 15.72 # M$ 9 | risk_free_rate = 0.03 10 | hard_savings = 0. 11 | self.cr_npv_a = Input['cr_p_failure'] * t_shutdown + repl_cost + hard_savings 12 | self.cr_npv_b = self.cr_npv_a / (1.+risk_free_rate)**2 13 | -------------------------------------------------------------------------------- /tests/MilestoneTestsSeptFY19/use_case_II/MC/emergency_diesel_generators.py: -------------------------------------------------------------------------------- 1 | # Copyright 2020, Battelle Energy Alliance, LLC 2 | # ALL RIGHTS RESERVED 3 | import numpy as np 4 | 5 | def run(self,Input): 6 | 7 | t_shutdown = 7 # days 8 | repl_cost = 20.16 # M$ 9 | risk_free_rate = 0.03 10 | hard_savings = 0. 11 | self.edg_npv_a = Input['edg_p_failure'] * t_shutdown + repl_cost + hard_savings 12 | self.edg_npv_b = self.edg_npv_a * (1.+risk_free_rate) 13 | -------------------------------------------------------------------------------- /tests/MilestoneTestsSeptFY19/use_case_II/MC/service_water_system.py: -------------------------------------------------------------------------------- 1 | # Copyright 2020, Battelle Energy Alliance, LLC 2 | # ALL RIGHTS RESERVED 3 | import numpy as np 4 | 5 | def run(self,Input): 6 | 7 | t_shutdown = 10 # days 8 | repl_cost = 4.68 # M$ 9 | risk_free_rate = 0.03 10 | hard_savings = 0. 11 | self.sws_npv_a = Input['sws_p_failure'] * t_shutdown + repl_cost + hard_savings 12 | self.sws_npv_b = self.sws_npv_a / (1.+risk_free_rate)**2 13 | -------------------------------------------------------------------------------- /__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright 2020, Battelle Energy Alliance, LLC 2 | # ALL RIGHTS RESERVED 3 | """ 4 | Created on Nov. 18, 2019 5 | @author: wangc, mandd 6 | """ 7 | 8 | from LOGOS.src import CapitalInvestmentModel 9 | from LOGOS.src import BatteryReplacementCashFlowModel 10 | from LOGOS.src import IncrementalNPV 11 | from LOGOS.src.knapsack import MultipleKnapsackModel 12 | from LOGOS.src.knapsack import SimpleKnapsackModel 13 | from LOGOS.src.CPM import BaseCPMmodel 14 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/schuripopt_baselines/farmer_baseline/AverageScenario.col: -------------------------------------------------------------------------------- 1 | DevotedAcreage[CORN] 2 | DevotedAcreage[SUGAR_BEETS] 3 | DevotedAcreage[WHEAT] 4 | QuantitySubQuotaSold[CORN] 5 | QuantitySubQuotaSold[SUGAR_BEETS] 6 | QuantitySubQuotaSold[WHEAT] 7 | QuantitySuperQuotaSold[CORN] 8 | QuantitySuperQuotaSold[SUGAR_BEETS] 9 | QuantitySuperQuotaSold[WHEAT] 10 | QuantityPurchased[CORN] 11 | QuantityPurchased[SUGAR_BEETS] 12 | QuantityPurchased[WHEAT] 13 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_LP_symbolic_names_baseline/farmer.sto.struct: -------------------------------------------------------------------------------- 1 | DevotedAcreage(CORN) c_l_EnforceCattleFeedRequirement(CORN)_ 2 | DevotedAcreage(SUGAR_BEETS) c_l_EnforceCattleFeedRequirement(SUGAR_BEETS)_ 3 | DevotedAcreage(WHEAT) c_l_EnforceCattleFeedRequirement(WHEAT)_ 4 | DevotedAcreage(CORN) c_u_LimitAmountSold(CORN)_ 5 | DevotedAcreage(SUGAR_BEETS) c_u_LimitAmountSold(SUGAR_BEETS)_ 6 | DevotedAcreage(WHEAT) c_u_LimitAmountSold(WHEAT)_ 7 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_symbolic_names_baseline/farmer.sto.struct: -------------------------------------------------------------------------------- 1 | DevotedAcreage(CORN) c_l_EnforceCattleFeedRequirement(CORN)_ 2 | DevotedAcreage(SUGAR_BEETS) c_l_EnforceCattleFeedRequirement(SUGAR_BEETS)_ 3 | DevotedAcreage(WHEAT) c_l_EnforceCattleFeedRequirement(WHEAT)_ 4 | DevotedAcreage(CORN) c_u_LimitAmountSold(CORN)_ 5 | DevotedAcreage(SUGAR_BEETS) c_u_LimitAmountSold(SUGAR_BEETS)_ 6 | DevotedAcreage(WHEAT) c_u_LimitAmountSold(WHEAT)_ 7 | -------------------------------------------------------------------------------- /tests/MilestoneTestsSeptFY19/use_case_II/MC/reactor_vessel_internals.py: -------------------------------------------------------------------------------- 1 | # Copyright 2020, Battelle Energy Alliance, LLC 2 | # ALL RIGHTS RESERVED 3 | import numpy as np 4 | 5 | def run(self,Input): 6 | 7 | t_shutdown = 30 # days 8 | repl_cost = 39.64 # M$ 9 | risk_free_rate = 0.03 10 | hard_savings = 0. 11 | self.rvi_npv_a = Input['rvi_p_failure'] * t_shutdown + repl_cost + hard_savings 12 | self.rvi_npv_b = self.rvi_npv_a / (1.+risk_free_rate)**3 13 | -------------------------------------------------------------------------------- /tests/MilestoneTestsSeptFY19/use_case_II/MC/replace_lp_turbine.py: -------------------------------------------------------------------------------- 1 | # Copyright 2020, Battelle Energy Alliance, LLC 2 | # ALL RIGHTS RESERVED 3 | import numpy as np 4 | 5 | def run(self,Input): 6 | 7 | t_shutdown = 20 # days 8 | repl_cost = 37.54 # M$ 9 | risk_free_rate = 0.03 10 | hard_savings = 130. 11 | 12 | self.rlpt_npv_a = Input['rlpt_p_failure'] * t_shutdown + repl_cost + hard_savings 13 | self.rlpt_npv_b = self.rlpt_npv_a / (1.+risk_free_rate) 14 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/schuripopt_baselines/farmer_baseline/AboveAverageScenario.col: -------------------------------------------------------------------------------- 1 | DevotedAcreage[CORN] 2 | DevotedAcreage[SUGAR_BEETS] 3 | DevotedAcreage[WHEAT] 4 | QuantitySubQuotaSold[CORN] 5 | QuantitySubQuotaSold[SUGAR_BEETS] 6 | QuantitySubQuotaSold[WHEAT] 7 | QuantitySuperQuotaSold[CORN] 8 | QuantitySuperQuotaSold[SUGAR_BEETS] 9 | QuantitySuperQuotaSold[WHEAT] 10 | QuantityPurchased[CORN] 11 | QuantityPurchased[SUGAR_BEETS] 12 | QuantityPurchased[WHEAT] 13 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/schuripopt_baselines/farmer_baseline/BelowAverageScenario.col: -------------------------------------------------------------------------------- 1 | DevotedAcreage[CORN] 2 | DevotedAcreage[SUGAR_BEETS] 3 | DevotedAcreage[WHEAT] 4 | QuantitySubQuotaSold[CORN] 5 | QuantitySubQuotaSold[SUGAR_BEETS] 6 | QuantitySubQuotaSold[WHEAT] 7 | QuantitySuperQuotaSold[CORN] 8 | QuantitySuperQuotaSold[SUGAR_BEETS] 9 | QuantitySuperQuotaSold[WHEAT] 10 | QuantityPurchased[CORN] 11 | QuantityPurchased[SUGAR_BEETS] 12 | QuantityPurchased[WHEAT] 13 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/model_unsupported_variable_bounds.py: -------------------------------------------------------------------------------- 1 | # 2 | # a model that declares the wrong component type 3 | # within an annotation 4 | # 5 | from pysp.tests.convert.utils import * 6 | 7 | pysp_scenario_tree_model_callback = \ 8 | simple_twostage_scenario_tree 9 | 10 | def pysp_instance_creation_callback(scenario_name, node_names): 11 | model = simple_twostage_model() 12 | model.svb = StochasticVariableBoundsAnnotation() 13 | return model 14 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_LP_symbolic_names_ignore_derived_baseline/farmer.sto.struct: -------------------------------------------------------------------------------- 1 | DevotedAcreage(CORN) c_l_EnforceCattleFeedRequirement(CORN)_ 2 | DevotedAcreage(SUGAR_BEETS) c_l_EnforceCattleFeedRequirement(SUGAR_BEETS)_ 3 | DevotedAcreage(WHEAT) c_l_EnforceCattleFeedRequirement(WHEAT)_ 4 | DevotedAcreage(CORN) c_u_LimitAmountSold(CORN)_ 5 | DevotedAcreage(SUGAR_BEETS) c_u_LimitAmountSold(SUGAR_BEETS)_ 6 | DevotedAcreage(WHEAT) c_u_LimitAmountSold(WHEAT)_ 7 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_symbolic_names_ignore_derived_baseline/farmer.sto.struct: -------------------------------------------------------------------------------- 1 | DevotedAcreage(CORN) c_l_EnforceCattleFeedRequirement(CORN)_ 2 | DevotedAcreage(SUGAR_BEETS) c_l_EnforceCattleFeedRequirement(SUGAR_BEETS)_ 3 | DevotedAcreage(WHEAT) c_l_EnforceCattleFeedRequirement(WHEAT)_ 4 | DevotedAcreage(CORN) c_u_LimitAmountSold(CORN)_ 5 | DevotedAcreage(SUGAR_BEETS) c_u_LimitAmountSold(SUGAR_BEETS)_ 6 | DevotedAcreage(WHEAT) c_u_LimitAmountSold(WHEAT)_ 7 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/unit/baselines/lagrangian_cc_networkflow1ef3_cplex.baseline: -------------------------------------------------------------------------------- 1 | lagrangeParam begins 2 | Initializing PH 3 | 4 | We are solving a MINIMIZATION problem. 5 | 6 | lambda= 0.0 ...run begins 3 scenarios 7 | SolStatus=ok 8 | ...ends 9 | Initial cost = 108879.328 for bL = 0.0 10 | lambda= 0.0 ...run begins 11 | SolStatus=ok 12 | ...ends 13 | initial gap = 0.1602326682 14 | 15 | End of test; this is only a test. 16 | 17 | returned from partialLagrangeParametric 18 | -------------------------------------------------------------------------------- /tests/MilestoneTestsSeptFY19/use_case_II/MC/hp_feedwater_heater_upgrade_npv.py: -------------------------------------------------------------------------------- 1 | # Copyright 2020, Battelle Energy Alliance, LLC 2 | # ALL RIGHTS RESERVED 3 | import numpy as np 4 | 5 | def run(self,Input): 6 | 7 | t_shutdown = 20 # days 8 | repl_cost = 25.98 # M$ 9 | risk_free_rate = 0.03 10 | hard_savings = 0. 11 | 12 | self.hp_fwh_npv_a = Input['hp_fwh_p_failure'] * t_shutdown + repl_cost + hard_savings 13 | self.hp_fwh_npv_b = self.hp_fwh_npv_a / (1.+risk_free_rate) 14 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_LP_symbolic_names_baseline/farmer.col: -------------------------------------------------------------------------------- 1 | DevotedAcreage(CORN) 2 | DevotedAcreage(SUGAR_BEETS) 3 | DevotedAcreage(WHEAT) 4 | QuantityPurchased(CORN) 5 | QuantityPurchased(SUGAR_BEETS) 6 | QuantityPurchased(WHEAT) 7 | QuantitySubQuotaSold(CORN) 8 | QuantitySubQuotaSold(SUGAR_BEETS) 9 | QuantitySubQuotaSold(WHEAT) 10 | QuantitySuperQuotaSold(CORN) 11 | QuantitySuperQuotaSold(SUGAR_BEETS) 12 | QuantitySuperQuotaSold(WHEAT) 13 | ONE_VAR_CONSTANT 14 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_LP_symbolic_names_baseline/scenario_files/farmer.sto.struct.AverageScenario: -------------------------------------------------------------------------------- 1 | DevotedAcreage(CORN) c_l_EnforceCattleFeedRequirement(CORN)_ 2 | DevotedAcreage(SUGAR_BEETS) c_l_EnforceCattleFeedRequirement(SUGAR_BEETS)_ 3 | DevotedAcreage(WHEAT) c_l_EnforceCattleFeedRequirement(WHEAT)_ 4 | DevotedAcreage(CORN) c_u_LimitAmountSold(CORN)_ 5 | DevotedAcreage(SUGAR_BEETS) c_u_LimitAmountSold(SUGAR_BEETS)_ 6 | DevotedAcreage(WHEAT) c_u_LimitAmountSold(WHEAT)_ 7 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_symbolic_names_baseline/farmer.col: -------------------------------------------------------------------------------- 1 | DevotedAcreage(CORN) 2 | DevotedAcreage(SUGAR_BEETS) 3 | DevotedAcreage(WHEAT) 4 | QuantityPurchased(CORN) 5 | QuantityPurchased(SUGAR_BEETS) 6 | QuantityPurchased(WHEAT) 7 | QuantitySubQuotaSold(CORN) 8 | QuantitySubQuotaSold(SUGAR_BEETS) 9 | QuantitySubQuotaSold(WHEAT) 10 | QuantitySuperQuotaSold(CORN) 11 | QuantitySuperQuotaSold(SUGAR_BEETS) 12 | QuantitySuperQuotaSold(WHEAT) 13 | ONE_VAR_CONSTANT 14 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_symbolic_names_baseline/scenario_files/farmer.sto.struct.AverageScenario: -------------------------------------------------------------------------------- 1 | DevotedAcreage(CORN) c_l_EnforceCattleFeedRequirement(CORN)_ 2 | DevotedAcreage(SUGAR_BEETS) c_l_EnforceCattleFeedRequirement(SUGAR_BEETS)_ 3 | DevotedAcreage(WHEAT) c_l_EnforceCattleFeedRequirement(WHEAT)_ 4 | DevotedAcreage(CORN) c_u_LimitAmountSold(CORN)_ 5 | DevotedAcreage(SUGAR_BEETS) c_u_LimitAmountSold(SUGAR_BEETS)_ 6 | DevotedAcreage(WHEAT) c_u_LimitAmountSold(WHEAT)_ 7 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_LP_symbolic_names_baseline/scenario_files/farmer.sto.struct.AboveAverageScenario: -------------------------------------------------------------------------------- 1 | DevotedAcreage(CORN) c_l_EnforceCattleFeedRequirement(CORN)_ 2 | DevotedAcreage(SUGAR_BEETS) c_l_EnforceCattleFeedRequirement(SUGAR_BEETS)_ 3 | DevotedAcreage(WHEAT) c_l_EnforceCattleFeedRequirement(WHEAT)_ 4 | DevotedAcreage(CORN) c_u_LimitAmountSold(CORN)_ 5 | DevotedAcreage(SUGAR_BEETS) c_u_LimitAmountSold(SUGAR_BEETS)_ 6 | DevotedAcreage(WHEAT) c_u_LimitAmountSold(WHEAT)_ 7 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_LP_symbolic_names_baseline/scenario_files/farmer.sto.struct.BelowAverageScenario: -------------------------------------------------------------------------------- 1 | DevotedAcreage(CORN) c_l_EnforceCattleFeedRequirement(CORN)_ 2 | DevotedAcreage(SUGAR_BEETS) c_l_EnforceCattleFeedRequirement(SUGAR_BEETS)_ 3 | DevotedAcreage(WHEAT) c_l_EnforceCattleFeedRequirement(WHEAT)_ 4 | DevotedAcreage(CORN) c_u_LimitAmountSold(CORN)_ 5 | DevotedAcreage(SUGAR_BEETS) c_u_LimitAmountSold(SUGAR_BEETS)_ 6 | DevotedAcreage(WHEAT) c_u_LimitAmountSold(WHEAT)_ 7 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_symbolic_names_baseline/scenario_files/farmer.sto.struct.AboveAverageScenario: -------------------------------------------------------------------------------- 1 | DevotedAcreage(CORN) c_l_EnforceCattleFeedRequirement(CORN)_ 2 | DevotedAcreage(SUGAR_BEETS) c_l_EnforceCattleFeedRequirement(SUGAR_BEETS)_ 3 | DevotedAcreage(WHEAT) c_l_EnforceCattleFeedRequirement(WHEAT)_ 4 | DevotedAcreage(CORN) c_u_LimitAmountSold(CORN)_ 5 | DevotedAcreage(SUGAR_BEETS) c_u_LimitAmountSold(SUGAR_BEETS)_ 6 | DevotedAcreage(WHEAT) c_u_LimitAmountSold(WHEAT)_ 7 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_symbolic_names_baseline/scenario_files/farmer.sto.struct.BelowAverageScenario: -------------------------------------------------------------------------------- 1 | DevotedAcreage(CORN) c_l_EnforceCattleFeedRequirement(CORN)_ 2 | DevotedAcreage(SUGAR_BEETS) c_l_EnforceCattleFeedRequirement(SUGAR_BEETS)_ 3 | DevotedAcreage(WHEAT) c_l_EnforceCattleFeedRequirement(WHEAT)_ 4 | DevotedAcreage(CORN) c_u_LimitAmountSold(CORN)_ 5 | DevotedAcreage(SUGAR_BEETS) c_u_LimitAmountSold(SUGAR_BEETS)_ 6 | DevotedAcreage(WHEAT) c_u_LimitAmountSold(WHEAT)_ 7 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_LP_symbolic_names_ignore_derived_baseline/farmer.col: -------------------------------------------------------------------------------- 1 | DevotedAcreage(CORN) 2 | DevotedAcreage(SUGAR_BEETS) 3 | DevotedAcreage(WHEAT) 4 | QuantityPurchased(CORN) 5 | QuantityPurchased(SUGAR_BEETS) 6 | QuantityPurchased(WHEAT) 7 | QuantitySubQuotaSold(CORN) 8 | QuantitySubQuotaSold(SUGAR_BEETS) 9 | QuantitySubQuotaSold(WHEAT) 10 | QuantitySuperQuotaSold(CORN) 11 | QuantitySuperQuotaSold(SUGAR_BEETS) 12 | QuantitySuperQuotaSold(WHEAT) 13 | ONE_VAR_CONSTANT 14 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_LP_symbolic_names_ignore_derived_baseline/scenario_files/farmer.sto.struct.AverageScenario: -------------------------------------------------------------------------------- 1 | DevotedAcreage(CORN) c_l_EnforceCattleFeedRequirement(CORN)_ 2 | DevotedAcreage(SUGAR_BEETS) c_l_EnforceCattleFeedRequirement(SUGAR_BEETS)_ 3 | DevotedAcreage(WHEAT) c_l_EnforceCattleFeedRequirement(WHEAT)_ 4 | DevotedAcreage(CORN) c_u_LimitAmountSold(CORN)_ 5 | DevotedAcreage(SUGAR_BEETS) c_u_LimitAmountSold(SUGAR_BEETS)_ 6 | DevotedAcreage(WHEAT) c_u_LimitAmountSold(WHEAT)_ 7 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_symbolic_names_ignore_derived_baseline/farmer.col: -------------------------------------------------------------------------------- 1 | DevotedAcreage(CORN) 2 | DevotedAcreage(SUGAR_BEETS) 3 | DevotedAcreage(WHEAT) 4 | QuantityPurchased(CORN) 5 | QuantityPurchased(SUGAR_BEETS) 6 | QuantityPurchased(WHEAT) 7 | QuantitySubQuotaSold(CORN) 8 | QuantitySubQuotaSold(SUGAR_BEETS) 9 | QuantitySubQuotaSold(WHEAT) 10 | QuantitySuperQuotaSold(CORN) 11 | QuantitySuperQuotaSold(SUGAR_BEETS) 12 | QuantitySuperQuotaSold(WHEAT) 13 | ONE_VAR_CONSTANT 14 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_symbolic_names_ignore_derived_baseline/scenario_files/farmer.sto.struct.AverageScenario: -------------------------------------------------------------------------------- 1 | DevotedAcreage(CORN) c_l_EnforceCattleFeedRequirement(CORN)_ 2 | DevotedAcreage(SUGAR_BEETS) c_l_EnforceCattleFeedRequirement(SUGAR_BEETS)_ 3 | DevotedAcreage(WHEAT) c_l_EnforceCattleFeedRequirement(WHEAT)_ 4 | DevotedAcreage(CORN) c_u_LimitAmountSold(CORN)_ 5 | DevotedAcreage(SUGAR_BEETS) c_u_LimitAmountSold(SUGAR_BEETS)_ 6 | DevotedAcreage(WHEAT) c_u_LimitAmountSold(WHEAT)_ 7 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/ddsip_baselines/piecewise_baseline/core.lp.symbols: -------------------------------------------------------------------------------- 1 | fx fx 2 | p_first_stage_INC_bin_y(1) p_first_stage.INC_bin_y:#1 3 | p_first_stage_INC_bin_y(2) p_first_stage.INC_bin_y:#2 4 | p_first_stage_INC_bin_y(3) p_first_stage.INC_bin_y:#3 5 | p_first_stage_INC_delta(1) p_first_stage.INC_delta:#1 6 | p_first_stage_INC_delta(2) p_first_stage.INC_delta:#2 7 | p_first_stage_INC_delta(3) p_first_stage.INC_delta:#3 8 | p_first_stage_INC_delta(4) p_first_stage.INC_delta:#4 9 | x__DDSIP_FIRSTSTAGE x 10 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_LP_symbolic_names_ignore_derived_baseline/scenario_files/farmer.sto.struct.AboveAverageScenario: -------------------------------------------------------------------------------- 1 | DevotedAcreage(CORN) c_l_EnforceCattleFeedRequirement(CORN)_ 2 | DevotedAcreage(SUGAR_BEETS) c_l_EnforceCattleFeedRequirement(SUGAR_BEETS)_ 3 | DevotedAcreage(WHEAT) c_l_EnforceCattleFeedRequirement(WHEAT)_ 4 | DevotedAcreage(CORN) c_u_LimitAmountSold(CORN)_ 5 | DevotedAcreage(SUGAR_BEETS) c_u_LimitAmountSold(SUGAR_BEETS)_ 6 | DevotedAcreage(WHEAT) c_u_LimitAmountSold(WHEAT)_ 7 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_LP_symbolic_names_ignore_derived_baseline/scenario_files/farmer.sto.struct.BelowAverageScenario: -------------------------------------------------------------------------------- 1 | DevotedAcreage(CORN) c_l_EnforceCattleFeedRequirement(CORN)_ 2 | DevotedAcreage(SUGAR_BEETS) c_l_EnforceCattleFeedRequirement(SUGAR_BEETS)_ 3 | DevotedAcreage(WHEAT) c_l_EnforceCattleFeedRequirement(WHEAT)_ 4 | DevotedAcreage(CORN) c_u_LimitAmountSold(CORN)_ 5 | DevotedAcreage(SUGAR_BEETS) c_u_LimitAmountSold(SUGAR_BEETS)_ 6 | DevotedAcreage(WHEAT) c_u_LimitAmountSold(WHEAT)_ 7 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_symbolic_names_ignore_derived_baseline/scenario_files/farmer.sto.struct.AboveAverageScenario: -------------------------------------------------------------------------------- 1 | DevotedAcreage(CORN) c_l_EnforceCattleFeedRequirement(CORN)_ 2 | DevotedAcreage(SUGAR_BEETS) c_l_EnforceCattleFeedRequirement(SUGAR_BEETS)_ 3 | DevotedAcreage(WHEAT) c_l_EnforceCattleFeedRequirement(WHEAT)_ 4 | DevotedAcreage(CORN) c_u_LimitAmountSold(CORN)_ 5 | DevotedAcreage(SUGAR_BEETS) c_u_LimitAmountSold(SUGAR_BEETS)_ 6 | DevotedAcreage(WHEAT) c_u_LimitAmountSold(WHEAT)_ 7 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_symbolic_names_ignore_derived_baseline/scenario_files/farmer.sto.struct.BelowAverageScenario: -------------------------------------------------------------------------------- 1 | DevotedAcreage(CORN) c_l_EnforceCattleFeedRequirement(CORN)_ 2 | DevotedAcreage(SUGAR_BEETS) c_l_EnforceCattleFeedRequirement(SUGAR_BEETS)_ 3 | DevotedAcreage(WHEAT) c_l_EnforceCattleFeedRequirement(WHEAT)_ 4 | DevotedAcreage(CORN) c_u_LimitAmountSold(CORN)_ 5 | DevotedAcreage(SUGAR_BEETS) c_u_LimitAmountSold(SUGAR_BEETS)_ 6 | DevotedAcreage(WHEAT) c_u_LimitAmountSold(WHEAT)_ 7 | -------------------------------------------------------------------------------- /tests/MilestoneTestsSeptFY19/use_case_II/MC/seismic_modification.py: -------------------------------------------------------------------------------- 1 | # Copyright 2020, Battelle Energy Alliance, LLC 2 | # ALL RIGHTS RESERVED 3 | import numpy as np 4 | 5 | def run(self,Input): 6 | 7 | t_shutdown = 10 # days 8 | repl_cost = 4.48 # M$ 9 | risk_free_rate = 0.03 10 | hard_savings = 0. 11 | self.sm_npv_a = Input['sm_p_failure'] * t_shutdown + repl_cost + hard_savings 12 | self.sm_npv_b = self.sm_npv_a / (1.+risk_free_rate)**2 13 | self.sm_npv_c = self.sm_npv_a / (1.+risk_free_rate)**3 14 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_LP_symbolic_names_baseline/piecewise.cor.symbols: -------------------------------------------------------------------------------- 1 | fx fx 2 | p_first_stage_INC_bin_y(1) p_first_stage.INC_bin_y:#1 3 | p_first_stage_INC_bin_y(2) p_first_stage.INC_bin_y:#2 4 | p_first_stage_INC_bin_y(3) p_first_stage.INC_bin_y:#3 5 | p_first_stage_INC_delta(1) p_first_stage.INC_delta:#1 6 | p_first_stage_INC_delta(2) p_first_stage.INC_delta:#2 7 | p_first_stage_INC_delta(3) p_first_stage.INC_delta:#3 8 | p_first_stage_INC_delta(4) p_first_stage.INC_delta:#4 9 | x x 10 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/scenariotreemanager/aggregate_callback1.py: -------------------------------------------------------------------------------- 1 | def pysp_aggregategetter_callback(worker, 2 | scenario, 3 | data): 4 | 5 | data.setdefault('names',[]).append(scenario.name) 6 | print("aggregategetter callback1: "+str(scenario.name)+", " 7 | +str(data)) 8 | print("") 9 | 10 | # **IMPT**: Must also return aggregate data in a singleton tuple 11 | # to work with bundles 12 | return (data,) 13 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_LP_symbolic_names_baseline/scenario_files/farmer.col.AverageScenario: -------------------------------------------------------------------------------- 1 | DevotedAcreage(CORN) 2 | DevotedAcreage(SUGAR_BEETS) 3 | DevotedAcreage(WHEAT) 4 | QuantityPurchased(CORN) 5 | QuantityPurchased(SUGAR_BEETS) 6 | QuantityPurchased(WHEAT) 7 | QuantitySubQuotaSold(CORN) 8 | QuantitySubQuotaSold(SUGAR_BEETS) 9 | QuantitySubQuotaSold(WHEAT) 10 | QuantitySuperQuotaSold(CORN) 11 | QuantitySuperQuotaSold(SUGAR_BEETS) 12 | QuantitySuperQuotaSold(WHEAT) 13 | ONE_VAR_CONSTANT 14 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_symbolic_names_baseline/scenario_files/farmer.col.AverageScenario: -------------------------------------------------------------------------------- 1 | DevotedAcreage(CORN) 2 | DevotedAcreage(SUGAR_BEETS) 3 | DevotedAcreage(WHEAT) 4 | QuantityPurchased(CORN) 5 | QuantityPurchased(SUGAR_BEETS) 6 | QuantityPurchased(WHEAT) 7 | QuantitySubQuotaSold(CORN) 8 | QuantitySubQuotaSold(SUGAR_BEETS) 9 | QuantitySubQuotaSold(WHEAT) 10 | QuantitySuperQuotaSold(CORN) 11 | QuantitySuperQuotaSold(SUGAR_BEETS) 12 | QuantitySuperQuotaSold(WHEAT) 13 | ONE_VAR_CONSTANT 14 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_MPS_symbolic_names_baseline/piecewise.cor.symbols: -------------------------------------------------------------------------------- 1 | fx fx 2 | p_first_stage_INC_bin_y(1) p_first_stage.INC_bin_y:#1 3 | p_first_stage_INC_bin_y(2) p_first_stage.INC_bin_y:#2 4 | p_first_stage_INC_bin_y(3) p_first_stage.INC_bin_y:#3 5 | p_first_stage_INC_delta(1) p_first_stage.INC_delta:#1 6 | p_first_stage_INC_delta(2) p_first_stage.INC_delta:#2 7 | p_first_stage_INC_delta(3) p_first_stage.INC_delta:#3 8 | p_first_stage_INC_delta(4) p_first_stage.INC_delta:#4 9 | x x 10 | -------------------------------------------------------------------------------- /src/contrib/pysp/bbph/archive/testnetflow.bash: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | IDIR=../../../examples/pysp/networkflow 3 | 4 | python bbph.py -i $IDIR/1ef10 -m $IDIR/models --rho-cfgfile=$IDIR/config/rhosetter0.5 --enable-ww-extensions --ww-extension-cfgfile=$IDIR/config/wwph-fixlag10.cfg --ww-extension-suffixfile=$IDIR/config/wwph.suffixes --default-rho=1 --user-defined-extension=pysp.plugins.phboundextension --traceback --max-iterations=20 --BBPH-OuterIterationLimit=3 --xhat-method=config/slam.suffixes --or-convergers --termdiff-threshold=0.005 5 | 6 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_LP_symbolic_names_baseline/scenario_files/farmer.col.AboveAverageScenario: -------------------------------------------------------------------------------- 1 | DevotedAcreage(CORN) 2 | DevotedAcreage(SUGAR_BEETS) 3 | DevotedAcreage(WHEAT) 4 | QuantityPurchased(CORN) 5 | QuantityPurchased(SUGAR_BEETS) 6 | QuantityPurchased(WHEAT) 7 | QuantitySubQuotaSold(CORN) 8 | QuantitySubQuotaSold(SUGAR_BEETS) 9 | QuantitySubQuotaSold(WHEAT) 10 | QuantitySuperQuotaSold(CORN) 11 | QuantitySuperQuotaSold(SUGAR_BEETS) 12 | QuantitySuperQuotaSold(WHEAT) 13 | ONE_VAR_CONSTANT 14 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_LP_symbolic_names_baseline/scenario_files/farmer.col.BelowAverageScenario: -------------------------------------------------------------------------------- 1 | DevotedAcreage(CORN) 2 | DevotedAcreage(SUGAR_BEETS) 3 | DevotedAcreage(WHEAT) 4 | QuantityPurchased(CORN) 5 | QuantityPurchased(SUGAR_BEETS) 6 | QuantityPurchased(WHEAT) 7 | QuantitySubQuotaSold(CORN) 8 | QuantitySubQuotaSold(SUGAR_BEETS) 9 | QuantitySubQuotaSold(WHEAT) 10 | QuantitySuperQuotaSold(CORN) 11 | QuantitySuperQuotaSold(SUGAR_BEETS) 12 | QuantitySuperQuotaSold(WHEAT) 13 | ONE_VAR_CONSTANT 14 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_symbolic_names_baseline/scenario_files/farmer.col.AboveAverageScenario: -------------------------------------------------------------------------------- 1 | DevotedAcreage(CORN) 2 | DevotedAcreage(SUGAR_BEETS) 3 | DevotedAcreage(WHEAT) 4 | QuantityPurchased(CORN) 5 | QuantityPurchased(SUGAR_BEETS) 6 | QuantityPurchased(WHEAT) 7 | QuantitySubQuotaSold(CORN) 8 | QuantitySubQuotaSold(SUGAR_BEETS) 9 | QuantitySubQuotaSold(WHEAT) 10 | QuantitySuperQuotaSold(CORN) 11 | QuantitySuperQuotaSold(SUGAR_BEETS) 12 | QuantitySuperQuotaSold(WHEAT) 13 | ONE_VAR_CONSTANT 14 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_symbolic_names_baseline/scenario_files/farmer.col.BelowAverageScenario: -------------------------------------------------------------------------------- 1 | DevotedAcreage(CORN) 2 | DevotedAcreage(SUGAR_BEETS) 3 | DevotedAcreage(WHEAT) 4 | QuantityPurchased(CORN) 5 | QuantityPurchased(SUGAR_BEETS) 6 | QuantityPurchased(WHEAT) 7 | QuantitySubQuotaSold(CORN) 8 | QuantitySubQuotaSold(SUGAR_BEETS) 9 | QuantitySubQuotaSold(WHEAT) 10 | QuantitySuperQuotaSold(CORN) 11 | QuantitySuperQuotaSold(SUGAR_BEETS) 12 | QuantitySuperQuotaSold(WHEAT) 13 | ONE_VAR_CONSTANT 14 | -------------------------------------------------------------------------------- /tests/MilestoneTestsSeptFY19/use_case_II/MC/moisture_separator_reheater.py: -------------------------------------------------------------------------------- 1 | # Copyright 2020, Battelle Energy Alliance, LLC 2 | # ALL RIGHTS RESERVED 3 | import numpy as np 4 | 5 | def run(self,Input): 6 | 7 | t_shutdown = 12 # days 8 | repl_cost = 7.9 # M$ 9 | risk_free_rate = 0.03 10 | hard_savings = 0. 11 | self.msr_npv_a = Input['msr_p_failure'] * t_shutdown + repl_cost + hard_savings 12 | self.msr_npv_b = self.msr_npv_a / (1.+risk_free_rate)**3 13 | self.msr_npv_c = self.msr_npv_a / (1.+risk_free_rate)**4 14 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_LP_symbolic_names_ignore_derived_baseline/piecewise.cor.symbols: -------------------------------------------------------------------------------- 1 | fx fx 2 | p_first_stage_INC_bin_y(1) p_first_stage.INC_bin_y:#1 3 | p_first_stage_INC_bin_y(2) p_first_stage.INC_bin_y:#2 4 | p_first_stage_INC_bin_y(3) p_first_stage.INC_bin_y:#3 5 | p_first_stage_INC_delta(1) p_first_stage.INC_delta:#1 6 | p_first_stage_INC_delta(2) p_first_stage.INC_delta:#2 7 | p_first_stage_INC_delta(3) p_first_stage.INC_delta:#3 8 | p_first_stage_INC_delta(4) p_first_stage.INC_delta:#4 9 | x x 10 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_embedded_baselines/baa99_embedded_LP_symbolic_names_baseline/baa99.tim: -------------------------------------------------------------------------------- 1 | TIME baa99 2 | PERIODS EXPLICIT 3 | TIME1 4 | TIME2 5 | ROWS 6 | obj TIME1 7 | c_e_d1_ TIME2 8 | c_e_d2_ TIME2 9 | c_e_s1_ TIME2 10 | c_e_s2_ TIME2 11 | c_e_ONE_VAR_CONSTANT TIME2 12 | COLS 13 | x1 TIME1 14 | x2 TIME1 15 | u1 TIME2 16 | u2 TIME2 17 | v1 TIME2 18 | v2 TIME2 19 | w11 TIME2 20 | w12 TIME2 21 | w22 TIME2 22 | ONE_VAR_CONSTANT TIME2 23 | ENDATA 24 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_LP_symbolic_names_ignore_derived_baseline/scenario_files/farmer.col.AverageScenario: -------------------------------------------------------------------------------- 1 | DevotedAcreage(CORN) 2 | DevotedAcreage(SUGAR_BEETS) 3 | DevotedAcreage(WHEAT) 4 | QuantityPurchased(CORN) 5 | QuantityPurchased(SUGAR_BEETS) 6 | QuantityPurchased(WHEAT) 7 | QuantitySubQuotaSold(CORN) 8 | QuantitySubQuotaSold(SUGAR_BEETS) 9 | QuantitySubQuotaSold(WHEAT) 10 | QuantitySuperQuotaSold(CORN) 11 | QuantitySuperQuotaSold(SUGAR_BEETS) 12 | QuantitySuperQuotaSold(WHEAT) 13 | ONE_VAR_CONSTANT 14 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_symbolic_names_ignore_derived_baseline/scenario_files/farmer.col.AverageScenario: -------------------------------------------------------------------------------- 1 | DevotedAcreage(CORN) 2 | DevotedAcreage(SUGAR_BEETS) 3 | DevotedAcreage(WHEAT) 4 | QuantityPurchased(CORN) 5 | QuantityPurchased(SUGAR_BEETS) 6 | QuantityPurchased(WHEAT) 7 | QuantitySubQuotaSold(CORN) 8 | QuantitySubQuotaSold(SUGAR_BEETS) 9 | QuantitySubQuotaSold(WHEAT) 10 | QuantitySuperQuotaSold(CORN) 11 | QuantitySuperQuotaSold(SUGAR_BEETS) 12 | QuantitySuperQuotaSold(WHEAT) 13 | ONE_VAR_CONSTANT 14 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_MPS_symbolic_names_ignore_derived_baseline/piecewise.cor.symbols: -------------------------------------------------------------------------------- 1 | fx fx 2 | p_first_stage_INC_bin_y(1) p_first_stage.INC_bin_y:#1 3 | p_first_stage_INC_bin_y(2) p_first_stage.INC_bin_y:#2 4 | p_first_stage_INC_bin_y(3) p_first_stage.INC_bin_y:#3 5 | p_first_stage_INC_delta(1) p_first_stage.INC_delta:#1 6 | p_first_stage_INC_delta(2) p_first_stage.INC_delta:#2 7 | p_first_stage_INC_delta(3) p_first_stage.INC_delta:#3 8 | p_first_stage_INC_delta(4) p_first_stage.INC_delta:#4 9 | x x 10 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_embedded_baselines/piecewise_embedded_LP_symbolic_names_baseline/piecewise.cor.symbols: -------------------------------------------------------------------------------- 1 | fx fx 2 | p_first_stage_INC_bin_y(1) p_first_stage.INC_bin_y:#1 3 | p_first_stage_INC_bin_y(2) p_first_stage.INC_bin_y:#2 4 | p_first_stage_INC_bin_y(3) p_first_stage.INC_bin_y:#3 5 | p_first_stage_INC_delta(1) p_first_stage.INC_delta:#1 6 | p_first_stage_INC_delta(2) p_first_stage.INC_delta:#2 7 | p_first_stage_INC_delta(3) p_first_stage.INC_delta:#3 8 | p_first_stage_INC_delta(4) p_first_stage.INC_delta:#4 9 | x x 10 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_embedded_baselines/piecewise_embedded_MPS_symbolic_names_baseline/piecewise.cor.symbols: -------------------------------------------------------------------------------- 1 | fx fx 2 | p_first_stage_INC_bin_y(1) p_first_stage.INC_bin_y:#1 3 | p_first_stage_INC_bin_y(2) p_first_stage.INC_bin_y:#2 4 | p_first_stage_INC_bin_y(3) p_first_stage.INC_bin_y:#3 5 | p_first_stage_INC_delta(1) p_first_stage.INC_delta:#1 6 | p_first_stage_INC_delta(2) p_first_stage.INC_delta:#2 7 | p_first_stage_INC_delta(3) p_first_stage.INC_delta:#3 8 | p_first_stage_INC_delta(4) p_first_stage.INC_delta:#4 9 | x x 10 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_LP_symbolic_names_ignore_derived_baseline/scenario_files/farmer.col.AboveAverageScenario: -------------------------------------------------------------------------------- 1 | DevotedAcreage(CORN) 2 | DevotedAcreage(SUGAR_BEETS) 3 | DevotedAcreage(WHEAT) 4 | QuantityPurchased(CORN) 5 | QuantityPurchased(SUGAR_BEETS) 6 | QuantityPurchased(WHEAT) 7 | QuantitySubQuotaSold(CORN) 8 | QuantitySubQuotaSold(SUGAR_BEETS) 9 | QuantitySubQuotaSold(WHEAT) 10 | QuantitySuperQuotaSold(CORN) 11 | QuantitySuperQuotaSold(SUGAR_BEETS) 12 | QuantitySuperQuotaSold(WHEAT) 13 | ONE_VAR_CONSTANT 14 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_LP_symbolic_names_ignore_derived_baseline/scenario_files/farmer.col.BelowAverageScenario: -------------------------------------------------------------------------------- 1 | DevotedAcreage(CORN) 2 | DevotedAcreage(SUGAR_BEETS) 3 | DevotedAcreage(WHEAT) 4 | QuantityPurchased(CORN) 5 | QuantityPurchased(SUGAR_BEETS) 6 | QuantityPurchased(WHEAT) 7 | QuantitySubQuotaSold(CORN) 8 | QuantitySubQuotaSold(SUGAR_BEETS) 9 | QuantitySubQuotaSold(WHEAT) 10 | QuantitySuperQuotaSold(CORN) 11 | QuantitySuperQuotaSold(SUGAR_BEETS) 12 | QuantitySuperQuotaSold(WHEAT) 13 | ONE_VAR_CONSTANT 14 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_symbolic_names_ignore_derived_baseline/scenario_files/farmer.col.AboveAverageScenario: -------------------------------------------------------------------------------- 1 | DevotedAcreage(CORN) 2 | DevotedAcreage(SUGAR_BEETS) 3 | DevotedAcreage(WHEAT) 4 | QuantityPurchased(CORN) 5 | QuantityPurchased(SUGAR_BEETS) 6 | QuantityPurchased(WHEAT) 7 | QuantitySubQuotaSold(CORN) 8 | QuantitySubQuotaSold(SUGAR_BEETS) 9 | QuantitySubQuotaSold(WHEAT) 10 | QuantitySuperQuotaSold(CORN) 11 | QuantitySuperQuotaSold(SUGAR_BEETS) 12 | QuantitySuperQuotaSold(WHEAT) 13 | ONE_VAR_CONSTANT 14 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_symbolic_names_ignore_derived_baseline/scenario_files/farmer.col.BelowAverageScenario: -------------------------------------------------------------------------------- 1 | DevotedAcreage(CORN) 2 | DevotedAcreage(SUGAR_BEETS) 3 | DevotedAcreage(WHEAT) 4 | QuantityPurchased(CORN) 5 | QuantityPurchased(SUGAR_BEETS) 6 | QuantityPurchased(WHEAT) 7 | QuantitySubQuotaSold(CORN) 8 | QuantitySubQuotaSold(SUGAR_BEETS) 9 | QuantitySubQuotaSold(WHEAT) 10 | QuantitySuperQuotaSold(CORN) 11 | QuantitySuperQuotaSold(SUGAR_BEETS) 12 | QuantitySuperQuotaSold(WHEAT) 13 | ONE_VAR_CONSTANT 14 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_LP_symbolic_names_baseline/scenario_files/piecewise.lp.symbols.Scenario1: -------------------------------------------------------------------------------- 1 | fx fx 2 | p_first_stage_INC_bin_y(1) p_first_stage.INC_bin_y:#1 3 | p_first_stage_INC_bin_y(2) p_first_stage.INC_bin_y:#2 4 | p_first_stage_INC_bin_y(3) p_first_stage.INC_bin_y:#3 5 | p_first_stage_INC_delta(1) p_first_stage.INC_delta:#1 6 | p_first_stage_INC_delta(2) p_first_stage.INC_delta:#2 7 | p_first_stage_INC_delta(3) p_first_stage.INC_delta:#3 8 | p_first_stage_INC_delta(4) p_first_stage.INC_delta:#4 9 | x x 10 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_LP_symbolic_names_baseline/scenario_files/piecewise.lp.symbols.Scenario2: -------------------------------------------------------------------------------- 1 | fx fx 2 | p_first_stage_INC_bin_y(1) p_first_stage.INC_bin_y:#1 3 | p_first_stage_INC_bin_y(2) p_first_stage.INC_bin_y:#2 4 | p_first_stage_INC_bin_y(3) p_first_stage.INC_bin_y:#3 5 | p_first_stage_INC_delta(1) p_first_stage.INC_delta:#1 6 | p_first_stage_INC_delta(2) p_first_stage.INC_delta:#2 7 | p_first_stage_INC_delta(3) p_first_stage.INC_delta:#3 8 | p_first_stage_INC_delta(4) p_first_stage.INC_delta:#4 9 | x x 10 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_LP_symbolic_names_baseline/scenario_files/piecewise.lp.symbols.Scenario3: -------------------------------------------------------------------------------- 1 | fx fx 2 | p_first_stage_INC_bin_y(1) p_first_stage.INC_bin_y:#1 3 | p_first_stage_INC_bin_y(2) p_first_stage.INC_bin_y:#2 4 | p_first_stage_INC_bin_y(3) p_first_stage.INC_bin_y:#3 5 | p_first_stage_INC_delta(1) p_first_stage.INC_delta:#1 6 | p_first_stage_INC_delta(2) p_first_stage.INC_delta:#2 7 | p_first_stage_INC_delta(3) p_first_stage.INC_delta:#3 8 | p_first_stage_INC_delta(4) p_first_stage.INC_delta:#4 9 | x x 10 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/test_model/discrete/rhosetter.cfg: -------------------------------------------------------------------------------- 1 | # set rho values if invoked by --rho-cfgfile=rhosetter.cfg 2 | root_node = self._scenario_tree.findRootNode() 3 | foo = 1.0 4 | bar = 1.8 5 | print "hello world" 6 | for scenario in self._scenario_tree._scenarios: 7 | instance = scenario._instance 8 | sm_byObject = instance._ScenarioTreeSymbolMap.byObject 9 | variable_id = sm_byObject[id(instance.x)] 10 | self.setRhoOneScenario(root_node, scenario, variable_id, foo) 11 | print "foo=",foo 12 | foo = foo * bar -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_MPS_symbolic_names_baseline/scenario_files/piecewise.mps.symbols.Scenario1: -------------------------------------------------------------------------------- 1 | fx fx 2 | p_first_stage_INC_bin_y(1) p_first_stage.INC_bin_y:#1 3 | p_first_stage_INC_bin_y(2) p_first_stage.INC_bin_y:#2 4 | p_first_stage_INC_bin_y(3) p_first_stage.INC_bin_y:#3 5 | p_first_stage_INC_delta(1) p_first_stage.INC_delta:#1 6 | p_first_stage_INC_delta(2) p_first_stage.INC_delta:#2 7 | p_first_stage_INC_delta(3) p_first_stage.INC_delta:#3 8 | p_first_stage_INC_delta(4) p_first_stage.INC_delta:#4 9 | x x 10 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_MPS_symbolic_names_baseline/scenario_files/piecewise.mps.symbols.Scenario2: -------------------------------------------------------------------------------- 1 | fx fx 2 | p_first_stage_INC_bin_y(1) p_first_stage.INC_bin_y:#1 3 | p_first_stage_INC_bin_y(2) p_first_stage.INC_bin_y:#2 4 | p_first_stage_INC_bin_y(3) p_first_stage.INC_bin_y:#3 5 | p_first_stage_INC_delta(1) p_first_stage.INC_delta:#1 6 | p_first_stage_INC_delta(2) p_first_stage.INC_delta:#2 7 | p_first_stage_INC_delta(3) p_first_stage.INC_delta:#3 8 | p_first_stage_INC_delta(4) p_first_stage.INC_delta:#4 9 | x x 10 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_MPS_symbolic_names_baseline/scenario_files/piecewise.mps.symbols.Scenario3: -------------------------------------------------------------------------------- 1 | fx fx 2 | p_first_stage_INC_bin_y(1) p_first_stage.INC_bin_y:#1 3 | p_first_stage_INC_bin_y(2) p_first_stage.INC_bin_y:#2 4 | p_first_stage_INC_bin_y(3) p_first_stage.INC_bin_y:#3 5 | p_first_stage_INC_delta(1) p_first_stage.INC_delta:#1 6 | p_first_stage_INC_delta(2) p_first_stage.INC_delta:#2 7 | p_first_stage_INC_delta(3) p_first_stage.INC_delta:#3 8 | p_first_stage_INC_delta(4) p_first_stage.INC_delta:#4 9 | x x 10 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/test_model/slackpenalty/rhosetter.cfg: -------------------------------------------------------------------------------- 1 | # set rho values if invoked by --rho-cfgfile=rhosetter.cfg 2 | root_node = self._scenario_tree.findRootNode() 3 | foo = 1.0 4 | bar = 1.8 5 | print "hello world" 6 | for scenario in self._scenario_tree._scenarios: 7 | instance = scenario._instance 8 | sm_byObject = instance._ScenarioTreeSymbolMap.byObject 9 | variable_id = sm_byObject[id(instance.x)] 10 | self.setRhoOneScenario(root_node, scenario, variable_id, foo) 11 | print "foo=",foo 12 | foo = foo * bar -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_LP_symbolic_names_ignore_derived_baseline/scenario_files/piecewise.lp.symbols.Scenario1: -------------------------------------------------------------------------------- 1 | fx fx 2 | p_first_stage_INC_bin_y(1) p_first_stage.INC_bin_y:#1 3 | p_first_stage_INC_bin_y(2) p_first_stage.INC_bin_y:#2 4 | p_first_stage_INC_bin_y(3) p_first_stage.INC_bin_y:#3 5 | p_first_stage_INC_delta(1) p_first_stage.INC_delta:#1 6 | p_first_stage_INC_delta(2) p_first_stage.INC_delta:#2 7 | p_first_stage_INC_delta(3) p_first_stage.INC_delta:#3 8 | p_first_stage_INC_delta(4) p_first_stage.INC_delta:#4 9 | x x 10 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_LP_symbolic_names_ignore_derived_baseline/scenario_files/piecewise.lp.symbols.Scenario2: -------------------------------------------------------------------------------- 1 | fx fx 2 | p_first_stage_INC_bin_y(1) p_first_stage.INC_bin_y:#1 3 | p_first_stage_INC_bin_y(2) p_first_stage.INC_bin_y:#2 4 | p_first_stage_INC_bin_y(3) p_first_stage.INC_bin_y:#3 5 | p_first_stage_INC_delta(1) p_first_stage.INC_delta:#1 6 | p_first_stage_INC_delta(2) p_first_stage.INC_delta:#2 7 | p_first_stage_INC_delta(3) p_first_stage.INC_delta:#3 8 | p_first_stage_INC_delta(4) p_first_stage.INC_delta:#4 9 | x x 10 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_LP_symbolic_names_ignore_derived_baseline/scenario_files/piecewise.lp.symbols.Scenario3: -------------------------------------------------------------------------------- 1 | fx fx 2 | p_first_stage_INC_bin_y(1) p_first_stage.INC_bin_y:#1 3 | p_first_stage_INC_bin_y(2) p_first_stage.INC_bin_y:#2 4 | p_first_stage_INC_bin_y(3) p_first_stage.INC_bin_y:#3 5 | p_first_stage_INC_delta(1) p_first_stage.INC_delta:#1 6 | p_first_stage_INC_delta(2) p_first_stage.INC_delta:#2 7 | p_first_stage_INC_delta(3) p_first_stage.INC_delta:#3 8 | p_first_stage_INC_delta(4) p_first_stage.INC_delta:#4 9 | x x 10 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/scenariotreemanager/aggregate_callback2.py: -------------------------------------------------------------------------------- 1 | def pysp_aggregategetter_callback(worker, 2 | scenario, 3 | data): 4 | assert 'names' in data 5 | data.setdefault('leaf_node',[]).append(scenario.leaf_node.name) 6 | print("aggregategetter callback2: "+str(scenario.name)+", " 7 | +str(data)) 8 | print("") 9 | 10 | # **IMPT**: Must also return aggregate data in a singleton tuple 11 | # to work with bundles 12 | return (data,) 13 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_MPS_symbolic_names_ignore_derived_baseline/scenario_files/piecewise.mps.symbols.Scenario1: -------------------------------------------------------------------------------- 1 | fx fx 2 | p_first_stage_INC_bin_y(1) p_first_stage.INC_bin_y:#1 3 | p_first_stage_INC_bin_y(2) p_first_stage.INC_bin_y:#2 4 | p_first_stage_INC_bin_y(3) p_first_stage.INC_bin_y:#3 5 | p_first_stage_INC_delta(1) p_first_stage.INC_delta:#1 6 | p_first_stage_INC_delta(2) p_first_stage.INC_delta:#2 7 | p_first_stage_INC_delta(3) p_first_stage.INC_delta:#3 8 | p_first_stage_INC_delta(4) p_first_stage.INC_delta:#4 9 | x x 10 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_MPS_symbolic_names_ignore_derived_baseline/scenario_files/piecewise.mps.symbols.Scenario2: -------------------------------------------------------------------------------- 1 | fx fx 2 | p_first_stage_INC_bin_y(1) p_first_stage.INC_bin_y:#1 3 | p_first_stage_INC_bin_y(2) p_first_stage.INC_bin_y:#2 4 | p_first_stage_INC_bin_y(3) p_first_stage.INC_bin_y:#3 5 | p_first_stage_INC_delta(1) p_first_stage.INC_delta:#1 6 | p_first_stage_INC_delta(2) p_first_stage.INC_delta:#2 7 | p_first_stage_INC_delta(3) p_first_stage.INC_delta:#3 8 | p_first_stage_INC_delta(4) p_first_stage.INC_delta:#4 9 | x x 10 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_MPS_symbolic_names_ignore_derived_baseline/scenario_files/piecewise.mps.symbols.Scenario3: -------------------------------------------------------------------------------- 1 | fx fx 2 | p_first_stage_INC_bin_y(1) p_first_stage.INC_bin_y:#1 3 | p_first_stage_INC_bin_y(2) p_first_stage.INC_bin_y:#2 4 | p_first_stage_INC_bin_y(3) p_first_stage.INC_bin_y:#3 5 | p_first_stage_INC_delta(1) p_first_stage.INC_delta:#1 6 | p_first_stage_INC_delta(2) p_first_stage.INC_delta:#2 7 | p_first_stage_INC_delta(3) p_first_stage.INC_delta:#3 8 | p_first_stage_INC_delta(4) p_first_stage.INC_delta:#4 9 | x x 10 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/unit/baselines/farmer_ef_with_solve_cplex_with_csv_writer_StageCostDetail.csv: -------------------------------------------------------------------------------- 1 | FirstStage, RootNode, AboveAverageScenario, FirstStageCost, None, 108900.0 2 | FirstStage, RootNode, AverageScenario, FirstStageCost, None, 108900.0 3 | FirstStage, RootNode, BelowAverageScenario, FirstStageCost, None, 108900.0 4 | SecondStage, AboveAverageNode, AboveAverageScenario, SecondStageCost, None, -275900.0 5 | SecondStage, AverageNode, AverageScenario, SecondStageCost, None, -218250.0 6 | SecondStage, BelowAverageNode, BelowAverageScenario, SecondStageCost, None, -157720.0 7 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/schuripopt_baselines/piecewise_baseline/Scenario1.col: -------------------------------------------------------------------------------- 1 | x 2 | fx 3 | z 4 | fz 5 | r 6 | p_first_stage.INC_delta[1] 7 | p_first_stage.INC_delta[2] 8 | p_first_stage.INC_delta[3] 9 | p_first_stage.INC_delta[4] 10 | p_second_stage[1].INC_delta[1] 11 | p_second_stage[1].INC_delta[2] 12 | p_second_stage[1].INC_delta[3] 13 | p_second_stage[1].INC_delta[4] 14 | p_first_stage.INC_bin_y[1] 15 | p_first_stage.INC_bin_y[2] 16 | p_first_stage.INC_bin_y[3] 17 | p_second_stage[1].INC_bin_y[1] 18 | p_second_stage[1].INC_bin_y[2] 19 | p_second_stage[1].INC_bin_y[3] 20 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/schuripopt_baselines/piecewise_baseline/Scenario2.col: -------------------------------------------------------------------------------- 1 | x 2 | fx 3 | z 4 | fz 5 | r 6 | p_first_stage.INC_delta[1] 7 | p_first_stage.INC_delta[2] 8 | p_first_stage.INC_delta[3] 9 | p_first_stage.INC_delta[4] 10 | p_second_stage[1].INC_delta[1] 11 | p_second_stage[1].INC_delta[2] 12 | p_second_stage[1].INC_delta[3] 13 | p_second_stage[1].INC_delta[4] 14 | p_first_stage.INC_bin_y[1] 15 | p_first_stage.INC_bin_y[2] 16 | p_first_stage.INC_bin_y[3] 17 | p_second_stage[1].INC_bin_y[1] 18 | p_second_stage[1].INC_bin_y[2] 19 | p_second_stage[1].INC_bin_y[3] 20 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/schuripopt_baselines/piecewise_baseline/Scenario3.col: -------------------------------------------------------------------------------- 1 | x 2 | fx 3 | z 4 | fz 5 | r 6 | p_first_stage.INC_delta[1] 7 | p_first_stage.INC_delta[2] 8 | p_first_stage.INC_delta[3] 9 | p_first_stage.INC_delta[4] 10 | p_second_stage[1].INC_delta[1] 11 | p_second_stage[1].INC_delta[2] 12 | p_second_stage[1].INC_delta[3] 13 | p_second_stage[1].INC_delta[4] 14 | p_first_stage.INC_bin_y[1] 15 | p_first_stage.INC_bin_y[2] 16 | p_first_stage.INC_bin_y[3] 17 | p_second_stage[1].INC_bin_y[1] 18 | p_second_stage[1].INC_bin_y[2] 19 | p_second_stage[1].INC_bin_y[3] 20 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_LP_symbolic_names_baseline/farmer.row: -------------------------------------------------------------------------------- 1 | Total_Cost_Objective 2 | c_u_ConstrainTotalAcreage_ 3 | c_l_EnforceCattleFeedRequirement(CORN)_ 4 | c_l_EnforceCattleFeedRequirement(SUGAR_BEETS)_ 5 | c_l_EnforceCattleFeedRequirement(WHEAT)_ 6 | c_u_LimitAmountSold(CORN)_ 7 | c_u_LimitAmountSold(SUGAR_BEETS)_ 8 | c_u_LimitAmountSold(WHEAT)_ 9 | r_l_EnforceQuotas(CORN)_ 10 | r_u_EnforceQuotas(CORN)_ 11 | r_l_EnforceQuotas(SUGAR_BEETS)_ 12 | r_u_EnforceQuotas(SUGAR_BEETS)_ 13 | r_l_EnforceQuotas(WHEAT)_ 14 | r_u_EnforceQuotas(WHEAT)_ 15 | c_e_ONE_VAR_CONSTANT -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_symbolic_names_baseline/farmer.row: -------------------------------------------------------------------------------- 1 | Total_Cost_Objective 2 | c_u_ConstrainTotalAcreage_ 3 | c_l_EnforceCattleFeedRequirement(CORN)_ 4 | c_l_EnforceCattleFeedRequirement(SUGAR_BEETS)_ 5 | c_l_EnforceCattleFeedRequirement(WHEAT)_ 6 | c_u_LimitAmountSold(CORN)_ 7 | c_u_LimitAmountSold(SUGAR_BEETS)_ 8 | c_u_LimitAmountSold(WHEAT)_ 9 | r_l_EnforceQuotas(CORN)_ 10 | r_u_EnforceQuotas(CORN)_ 11 | r_l_EnforceQuotas(SUGAR_BEETS)_ 12 | r_u_EnforceQuotas(SUGAR_BEETS)_ 13 | r_l_EnforceQuotas(WHEAT)_ 14 | r_u_EnforceQuotas(WHEAT)_ 15 | c_e_ONE_VAR_CONSTANT -------------------------------------------------------------------------------- /doc/sqa/sdd/DesignStakeHoldersAndConcerns.tex: -------------------------------------------------------------------------------- 1 | \section{Design Stakeholders and Concerns} 2 | \subsection{Design Stakeholders} 3 | \begin{itemize} 4 | \item Light Water Reactor Sustainability (LWRS) program 5 | \item Open-source community 6 | \end{itemize} 7 | \subsection{Stakeholder Design Concerns} 8 | The design of the \textbf{\textit{LOGOS}} in terms of functionality and 9 | capabilities to be deployed has been performed in accordance with the funding 10 | programs reported above. No specific concerns have been raised during the design and 11 | deployment of the \textbf{\textit{LOGOS}} software. 12 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_LP_symbolic_names_baseline/scenario_files/farmer.sto.AverageScenario: -------------------------------------------------------------------------------- 1 | BL BLOCK1 PERIOD2 0.33333333999999998 2 | DevotedAcreage(CORN) c_l_EnforceCattleFeedRequirement(CORN)_ 3 3 | DevotedAcreage(SUGAR_BEETS) c_l_EnforceCattleFeedRequirement(SUGAR_BEETS)_ 20 4 | DevotedAcreage(WHEAT) c_l_EnforceCattleFeedRequirement(WHEAT)_ 2.5 5 | DevotedAcreage(CORN) c_u_LimitAmountSold(CORN)_ -3 6 | DevotedAcreage(SUGAR_BEETS) c_u_LimitAmountSold(SUGAR_BEETS)_ -20 7 | DevotedAcreage(WHEAT) c_u_LimitAmountSold(WHEAT)_ -2.5 8 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_LP_symbolic_names_ignore_derived_baseline/farmer.row: -------------------------------------------------------------------------------- 1 | Total_Cost_Objective 2 | c_u_ConstrainTotalAcreage_ 3 | c_l_EnforceCattleFeedRequirement(CORN)_ 4 | c_l_EnforceCattleFeedRequirement(SUGAR_BEETS)_ 5 | c_l_EnforceCattleFeedRequirement(WHEAT)_ 6 | c_u_LimitAmountSold(CORN)_ 7 | c_u_LimitAmountSold(SUGAR_BEETS)_ 8 | c_u_LimitAmountSold(WHEAT)_ 9 | r_l_EnforceQuotas(CORN)_ 10 | r_u_EnforceQuotas(CORN)_ 11 | r_l_EnforceQuotas(SUGAR_BEETS)_ 12 | r_u_EnforceQuotas(SUGAR_BEETS)_ 13 | r_l_EnforceQuotas(WHEAT)_ 14 | r_u_EnforceQuotas(WHEAT)_ 15 | c_e_ONE_VAR_CONSTANT -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_symbolic_names_ignore_derived_baseline/farmer.row: -------------------------------------------------------------------------------- 1 | Total_Cost_Objective 2 | c_u_ConstrainTotalAcreage_ 3 | c_l_EnforceCattleFeedRequirement(CORN)_ 4 | c_l_EnforceCattleFeedRequirement(SUGAR_BEETS)_ 5 | c_l_EnforceCattleFeedRequirement(WHEAT)_ 6 | c_u_LimitAmountSold(CORN)_ 7 | c_u_LimitAmountSold(SUGAR_BEETS)_ 8 | c_u_LimitAmountSold(WHEAT)_ 9 | r_l_EnforceQuotas(CORN)_ 10 | r_u_EnforceQuotas(CORN)_ 11 | r_l_EnforceQuotas(SUGAR_BEETS)_ 12 | r_u_EnforceQuotas(SUGAR_BEETS)_ 13 | r_l_EnforceQuotas(WHEAT)_ 14 | r_u_EnforceQuotas(WHEAT)_ 15 | c_e_ONE_VAR_CONSTANT -------------------------------------------------------------------------------- /src/contrib/pysp/tests/unit/testdata/ScenarioStructure.py: -------------------------------------------------------------------------------- 1 | import networkx 2 | 3 | G = networkx.DiGraph() 4 | G.add_node("root", 5 | variables=["x"], 6 | cost="cost[1]") 7 | 8 | G.add_node("s1", 9 | cost="cost[2]") 10 | G.add_edge("root", 11 | "s1", 12 | weight=0.33333333) 13 | 14 | G.add_node("s2", 15 | cost="cost[2]") 16 | G.add_edge("root", 17 | "s2", 18 | weight=0.33333334) 19 | 20 | G.add_node("s3", 21 | cost="cost[2]") 22 | G.add_edge("root", 23 | "s3", 24 | weight=0.33333333) 25 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_symbolic_names_baseline/scenario_files/farmer.sto.AverageScenario: -------------------------------------------------------------------------------- 1 | BL BLOCK1 PERIOD2 0.33333333999999998 2 | DevotedAcreage(CORN) c_l_EnforceCattleFeedRequirement(CORN)_ 3 3 | DevotedAcreage(SUGAR_BEETS) c_l_EnforceCattleFeedRequirement(SUGAR_BEETS)_ 20 4 | DevotedAcreage(WHEAT) c_l_EnforceCattleFeedRequirement(WHEAT)_ 2.5 5 | DevotedAcreage(CORN) c_u_LimitAmountSold(CORN)_ -3 6 | DevotedAcreage(SUGAR_BEETS) c_u_LimitAmountSold(SUGAR_BEETS)_ -20 7 | DevotedAcreage(WHEAT) c_u_LimitAmountSold(WHEAT)_ -2.5 8 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_LP_symbolic_names_baseline/piecewise.col: -------------------------------------------------------------------------------- 1 | x 2 | fx 3 | fz 4 | p_first_stage_INC_bin_y(1) 5 | p_first_stage_INC_bin_y(2) 6 | p_first_stage_INC_bin_y(3) 7 | p_first_stage_INC_delta(1) 8 | p_first_stage_INC_delta(2) 9 | p_first_stage_INC_delta(3) 10 | p_first_stage_INC_delta(4) 11 | p_second_stage(1)_INC_bin_y(1) 12 | p_second_stage(1)_INC_bin_y(2) 13 | p_second_stage(1)_INC_bin_y(3) 14 | p_second_stage(1)_INC_delta(1) 15 | p_second_stage(1)_INC_delta(2) 16 | p_second_stage(1)_INC_delta(3) 17 | p_second_stage(1)_INC_delta(4) 18 | r 19 | z 20 | ONE_VAR_CONSTANT 21 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_MPS_symbolic_names_baseline/piecewise.col: -------------------------------------------------------------------------------- 1 | x 2 | fx 3 | fz 4 | p_first_stage_INC_bin_y(1) 5 | p_first_stage_INC_bin_y(2) 6 | p_first_stage_INC_bin_y(3) 7 | p_first_stage_INC_delta(1) 8 | p_first_stage_INC_delta(2) 9 | p_first_stage_INC_delta(3) 10 | p_first_stage_INC_delta(4) 11 | p_second_stage(1)_INC_bin_y(1) 12 | p_second_stage(1)_INC_bin_y(2) 13 | p_second_stage(1)_INC_bin_y(3) 14 | p_second_stage(1)_INC_delta(1) 15 | p_second_stage(1)_INC_delta(2) 16 | p_second_stage(1)_INC_delta(3) 17 | p_second_stage(1)_INC_delta(4) 18 | r 19 | z 20 | ONE_VAR_CONSTANT 21 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test10.phbound.txt.baseline: -------------------------------------------------------------------------------- 1 | Inner Bound: 2 | 0: -103716.66680394445 3 | 1: -107578.75934248784 4 | 2: -107726.3642673346 5 | 3: -107731.95166269652 6 | 4: -107714.63925977261 7 | 5: -107718.80397395398 8 | 6: -107983.30393982964 9 | 7: -107983.30393217297 10 | Outer Bound: 11 | Trivial: -115405.5555875001 12 | 0: -112378.39515445073 13 | 1: -119146.91382574063 14 | 2: -122839.93727591721 15 | 3: -115850.2282624498 16 | 4: -114662.42776263482 17 | 5: -114508.93639083163 18 | 6: -115786.77660536775 19 | 7: -114931.23960528412 20 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test11.phbound.txt.baseline: -------------------------------------------------------------------------------- 1 | Inner Bound: 2 | 0: -103716.66680394445 3 | 1: -107578.75934248784 4 | 2: -107726.3642673346 5 | 3: -107731.95166269652 6 | 4: -107714.63925977261 7 | 5: -107718.80397395398 8 | 6: -107905.90885381353 9 | 7: -107905.90888195252 10 | Outer Bound: 11 | Trivial: -115405.5555875001 12 | 0: -112378.39512375317 13 | 1: -114092.20090015297 14 | 2: -111905.77474431759 15 | 3: -110093.78835351864 16 | 4: -109499.51614511295 17 | 5: -109440.78054174306 18 | 6: -112587.00169935689 19 | 7: -112587.00170103386 20 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test12.phbound.txt.baseline: -------------------------------------------------------------------------------- 1 | Inner Bound: 2 | 0: -103716.66680394445 3 | 1: -107578.75934248784 4 | 2: -107726.3642673346 5 | 3: -107731.95166269652 6 | 4: -107714.63925977261 7 | 5: -107718.80397395398 8 | 6: -107983.30393982964 9 | 7: -107983.30393217297 10 | Outer Bound: 11 | Trivial: -115405.5555875001 12 | 0: -112378.39515445073 13 | 1: -119146.91382574063 14 | 2: -122839.93727591721 15 | 3: -115850.2282624498 16 | 4: -114662.42776263482 17 | 5: -114508.93639083163 18 | 6: -115786.77660536784 19 | 7: -114931.23960528415 20 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/examples/baselines/TestPHFarmer.test9.phbound.txt.baseline: -------------------------------------------------------------------------------- 1 | Inner Bound: 2 | 0: -103716.66680394445 3 | 1: -107578.75934248784 4 | 2: -107726.3642673346 5 | 3: -107731.95166269652 6 | 4: -107714.63925977261 7 | 5: -107718.80397395398 8 | 6: -107905.90885381353 9 | 7: -107905.90888195153 10 | Outer Bound: 11 | Trivial: -115405.5555875001 12 | 0: -112378.39512375317 13 | 1: -114092.20090015297 14 | 2: -111905.77474431759 15 | 3: -110093.78835351864 16 | 4: -109499.51614511295 17 | 5: -109440.78054174306 18 | 6: -112587.00169935689 19 | 7: -112587.00170103385 20 | -------------------------------------------------------------------------------- /doc/tests/Makefile: -------------------------------------------------------------------------------- 1 | SRCFILE = regression_tests_documentation 2 | TEST_FILES = regression_tests_documentation.tex 3 | LATEX_FLAGS=-interaction=nonstopmode 4 | all: tidy 5 | 6 | tidy: $(TESTS_FILES) ../version.tex 7 | python createRegressionTestDocumentation.py 8 | pdflatex $(LATEX_FLAGS) ${SRCFILE}.tex 9 | pdflatex $(LATEX_FLAGS) ${SRCFILE}.tex 10 | pdflatex $(LATEX_FLAGS) ${SRCFILE}.tex 11 | 12 | .PHONY: clean 13 | 14 | clean: 15 | @rm -f *~ *.aux *.bbl *.blg *.log *.out *.toc *.lot *.lof $(SRCFILE).pdf 16 | 17 | ../version.tex : $(MANUAL_FILES) 18 | git log -1 --format="%H %an %aD" .. > ../version.tex 19 | -------------------------------------------------------------------------------- /src/contrib/pysp/version.py: -------------------------------------------------------------------------------- 1 | # ___________________________________________________________________________ 2 | # 3 | # Pyomo: Python Optimization Modeling Objects 4 | # Copyright 2017 National Technology and Engineering Solutions of Sandia, LLC 5 | # Under the terms of Contract DE-NA0003525 with National Technology and 6 | # Engineering Solutions of Sandia, LLC, the U.S. Government retains certain 7 | # rights in this software. 8 | # This software is distributed under the 3-clause BSD License. 9 | # ___________________________________________________________________________ 10 | 11 | __version__ = '6.0.0' 12 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/__init__.py: -------------------------------------------------------------------------------- 1 | # ___________________________________________________________________________ 2 | # 3 | # Pyomo: Python Optimization Modeling Objects 4 | # Copyright 2017 National Technology and Engineering Solutions of Sandia, LLC 5 | # Under the terms of Contract DE-NA0003525 with National Technology and 6 | # Engineering Solutions of Sandia, LLC, the U.S. Government retains certain 7 | # rights in this software. 8 | # This software is distributed under the 3-clause BSD License. 9 | # ___________________________________________________________________________ 10 | # 11 | # PySP tests 12 | # 13 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_LP_symbolic_names_baseline/scenario_files/farmer.row.AverageScenario: -------------------------------------------------------------------------------- 1 | Total_Cost_Objective 2 | c_u_ConstrainTotalAcreage_ 3 | c_l_EnforceCattleFeedRequirement(CORN)_ 4 | c_l_EnforceCattleFeedRequirement(SUGAR_BEETS)_ 5 | c_l_EnforceCattleFeedRequirement(WHEAT)_ 6 | c_u_LimitAmountSold(CORN)_ 7 | c_u_LimitAmountSold(SUGAR_BEETS)_ 8 | c_u_LimitAmountSold(WHEAT)_ 9 | r_l_EnforceQuotas(CORN)_ 10 | r_u_EnforceQuotas(CORN)_ 11 | r_l_EnforceQuotas(SUGAR_BEETS)_ 12 | r_u_EnforceQuotas(SUGAR_BEETS)_ 13 | r_l_EnforceQuotas(WHEAT)_ 14 | r_u_EnforceQuotas(WHEAT)_ 15 | c_e_ONE_VAR_CONSTANT -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_LP_symbolic_names_ignore_derived_baseline/scenario_files/farmer.sto.AverageScenario: -------------------------------------------------------------------------------- 1 | BL BLOCK1 PERIOD2 0.33333333999999998 2 | DevotedAcreage(CORN) c_l_EnforceCattleFeedRequirement(CORN)_ 3 3 | DevotedAcreage(SUGAR_BEETS) c_l_EnforceCattleFeedRequirement(SUGAR_BEETS)_ 20 4 | DevotedAcreage(WHEAT) c_l_EnforceCattleFeedRequirement(WHEAT)_ 2.5 5 | DevotedAcreage(CORN) c_u_LimitAmountSold(CORN)_ -3 6 | DevotedAcreage(SUGAR_BEETS) c_u_LimitAmountSold(SUGAR_BEETS)_ -20 7 | DevotedAcreage(WHEAT) c_u_LimitAmountSold(WHEAT)_ -2.5 8 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_LP_symbolic_names_baseline/scenario_files/farmer.row.AboveAverageScenario: -------------------------------------------------------------------------------- 1 | Total_Cost_Objective 2 | c_u_ConstrainTotalAcreage_ 3 | c_l_EnforceCattleFeedRequirement(CORN)_ 4 | c_l_EnforceCattleFeedRequirement(SUGAR_BEETS)_ 5 | c_l_EnforceCattleFeedRequirement(WHEAT)_ 6 | c_u_LimitAmountSold(CORN)_ 7 | c_u_LimitAmountSold(SUGAR_BEETS)_ 8 | c_u_LimitAmountSold(WHEAT)_ 9 | r_l_EnforceQuotas(CORN)_ 10 | r_u_EnforceQuotas(CORN)_ 11 | r_l_EnforceQuotas(SUGAR_BEETS)_ 12 | r_u_EnforceQuotas(SUGAR_BEETS)_ 13 | r_l_EnforceQuotas(WHEAT)_ 14 | r_u_EnforceQuotas(WHEAT)_ 15 | c_e_ONE_VAR_CONSTANT -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_LP_symbolic_names_baseline/scenario_files/farmer.row.BelowAverageScenario: -------------------------------------------------------------------------------- 1 | Total_Cost_Objective 2 | c_u_ConstrainTotalAcreage_ 3 | c_l_EnforceCattleFeedRequirement(CORN)_ 4 | c_l_EnforceCattleFeedRequirement(SUGAR_BEETS)_ 5 | c_l_EnforceCattleFeedRequirement(WHEAT)_ 6 | c_u_LimitAmountSold(CORN)_ 7 | c_u_LimitAmountSold(SUGAR_BEETS)_ 8 | c_u_LimitAmountSold(WHEAT)_ 9 | r_l_EnforceQuotas(CORN)_ 10 | r_u_EnforceQuotas(CORN)_ 11 | r_l_EnforceQuotas(SUGAR_BEETS)_ 12 | r_u_EnforceQuotas(SUGAR_BEETS)_ 13 | r_l_EnforceQuotas(WHEAT)_ 14 | r_u_EnforceQuotas(WHEAT)_ 15 | c_e_ONE_VAR_CONSTANT -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_symbolic_names_baseline/scenario_files/farmer.row.AverageScenario: -------------------------------------------------------------------------------- 1 | Total_Cost_Objective 2 | c_u_ConstrainTotalAcreage_ 3 | c_l_EnforceCattleFeedRequirement(CORN)_ 4 | c_l_EnforceCattleFeedRequirement(SUGAR_BEETS)_ 5 | c_l_EnforceCattleFeedRequirement(WHEAT)_ 6 | c_u_LimitAmountSold(CORN)_ 7 | c_u_LimitAmountSold(SUGAR_BEETS)_ 8 | c_u_LimitAmountSold(WHEAT)_ 9 | r_l_EnforceQuotas(CORN)_ 10 | r_u_EnforceQuotas(CORN)_ 11 | r_l_EnforceQuotas(SUGAR_BEETS)_ 12 | r_u_EnforceQuotas(SUGAR_BEETS)_ 13 | r_l_EnforceQuotas(WHEAT)_ 14 | r_u_EnforceQuotas(WHEAT)_ 15 | c_e_ONE_VAR_CONSTANT -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_symbolic_names_ignore_derived_baseline/scenario_files/farmer.sto.AverageScenario: -------------------------------------------------------------------------------- 1 | BL BLOCK1 PERIOD2 0.33333333999999998 2 | DevotedAcreage(CORN) c_l_EnforceCattleFeedRequirement(CORN)_ 3 3 | DevotedAcreage(SUGAR_BEETS) c_l_EnforceCattleFeedRequirement(SUGAR_BEETS)_ 20 4 | DevotedAcreage(WHEAT) c_l_EnforceCattleFeedRequirement(WHEAT)_ 2.5 5 | DevotedAcreage(CORN) c_u_LimitAmountSold(CORN)_ -3 6 | DevotedAcreage(SUGAR_BEETS) c_u_LimitAmountSold(SUGAR_BEETS)_ -20 7 | DevotedAcreage(WHEAT) c_u_LimitAmountSold(WHEAT)_ -2.5 8 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_LP_symbolic_names_ignore_derived_baseline/piecewise.col: -------------------------------------------------------------------------------- 1 | fx 2 | p_first_stage_INC_bin_y(1) 3 | p_first_stage_INC_bin_y(2) 4 | p_first_stage_INC_bin_y(3) 5 | p_first_stage_INC_delta(1) 6 | p_first_stage_INC_delta(2) 7 | p_first_stage_INC_delta(3) 8 | p_first_stage_INC_delta(4) 9 | x 10 | fz 11 | p_second_stage(1)_INC_bin_y(1) 12 | p_second_stage(1)_INC_bin_y(2) 13 | p_second_stage(1)_INC_bin_y(3) 14 | p_second_stage(1)_INC_delta(1) 15 | p_second_stage(1)_INC_delta(2) 16 | p_second_stage(1)_INC_delta(3) 17 | p_second_stage(1)_INC_delta(4) 18 | r 19 | z 20 | ONE_VAR_CONSTANT 21 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_MPS_symbolic_names_ignore_derived_baseline/piecewise.col: -------------------------------------------------------------------------------- 1 | fx 2 | p_first_stage_INC_bin_y(1) 3 | p_first_stage_INC_bin_y(2) 4 | p_first_stage_INC_bin_y(3) 5 | p_first_stage_INC_delta(1) 6 | p_first_stage_INC_delta(2) 7 | p_first_stage_INC_delta(3) 8 | p_first_stage_INC_delta(4) 9 | x 10 | fz 11 | p_second_stage(1)_INC_bin_y(1) 12 | p_second_stage(1)_INC_bin_y(2) 13 | p_second_stage(1)_INC_bin_y(3) 14 | p_second_stage(1)_INC_delta(1) 15 | p_second_stage(1)_INC_delta(2) 16 | p_second_stage(1)_INC_delta(3) 17 | p_second_stage(1)_INC_delta(4) 18 | r 19 | z 20 | ONE_VAR_CONSTANT 21 | -------------------------------------------------------------------------------- /doc/user_manual/Makefile: -------------------------------------------------------------------------------- 1 | SRCFILE = user_manual 2 | MANUAL_FILES = user_manual.tex Introduction.tex 3 | LATEX_FLAGS=-interaction=nonstopmode 4 | 5 | all: user_manual.pdf 6 | 7 | user_manual.pdf: $(MANUAL_FILES) ../version.tex 8 | pdflatex $(LATEX_FLAGS) $(SRCFILE).tex 9 | bibtex $(SRCFILE) 10 | pdflatex $(LATEX_FLAGS) $(SRCFILE).tex 11 | pdflatex $(LATEX_FLAGS) $(SRCFILE).tex 12 | 13 | .PHONY: clean 14 | 15 | clean: 16 | @rm -f *~ *.aux *.bbl *.blg *.log *.out *.toc *.lot *.lof $(SRCFILE).pdf 17 | 18 | #creating version file 19 | ../version.tex : $(MANUAL_FILES) 20 | git log -1 --format="%H %an %aD" .. > ../version.tex 21 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/model_bad_component_type.py: -------------------------------------------------------------------------------- 1 | # 2 | # a model that declares the wrong component type 3 | # within an annotation 4 | # 5 | from pysp.tests.convert.utils import * 6 | 7 | pysp_scenario_tree_model_callback = \ 8 | simple_twostage_scenario_tree 9 | 10 | def pysp_instance_creation_callback(scenario_name, node_names): 11 | model = simple_twostage_model() 12 | assert model.find_component("b") is None 13 | model.b = Block() 14 | model.b.c = Constraint(expr=model.y == 1) 15 | model.smat = StochasticConstraintBodyAnnotation() 16 | model.smat.declare(model.o) 17 | return model 18 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_symbolic_names_baseline/scenario_files/farmer.row.AboveAverageScenario: -------------------------------------------------------------------------------- 1 | Total_Cost_Objective 2 | c_u_ConstrainTotalAcreage_ 3 | c_l_EnforceCattleFeedRequirement(CORN)_ 4 | c_l_EnforceCattleFeedRequirement(SUGAR_BEETS)_ 5 | c_l_EnforceCattleFeedRequirement(WHEAT)_ 6 | c_u_LimitAmountSold(CORN)_ 7 | c_u_LimitAmountSold(SUGAR_BEETS)_ 8 | c_u_LimitAmountSold(WHEAT)_ 9 | r_l_EnforceQuotas(CORN)_ 10 | r_u_EnforceQuotas(CORN)_ 11 | r_l_EnforceQuotas(SUGAR_BEETS)_ 12 | r_u_EnforceQuotas(SUGAR_BEETS)_ 13 | r_l_EnforceQuotas(WHEAT)_ 14 | r_u_EnforceQuotas(WHEAT)_ 15 | c_e_ONE_VAR_CONSTANT -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_symbolic_names_baseline/scenario_files/farmer.row.BelowAverageScenario: -------------------------------------------------------------------------------- 1 | Total_Cost_Objective 2 | c_u_ConstrainTotalAcreage_ 3 | c_l_EnforceCattleFeedRequirement(CORN)_ 4 | c_l_EnforceCattleFeedRequirement(SUGAR_BEETS)_ 5 | c_l_EnforceCattleFeedRequirement(WHEAT)_ 6 | c_u_LimitAmountSold(CORN)_ 7 | c_u_LimitAmountSold(SUGAR_BEETS)_ 8 | c_u_LimitAmountSold(WHEAT)_ 9 | r_l_EnforceQuotas(CORN)_ 10 | r_u_EnforceQuotas(CORN)_ 11 | r_l_EnforceQuotas(SUGAR_BEETS)_ 12 | r_u_EnforceQuotas(SUGAR_BEETS)_ 13 | r_l_EnforceQuotas(WHEAT)_ 14 | r_u_EnforceQuotas(WHEAT)_ 15 | c_e_ONE_VAR_CONSTANT -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_LP_symbolic_names_ignore_derived_baseline/scenario_files/farmer.row.AverageScenario: -------------------------------------------------------------------------------- 1 | Total_Cost_Objective 2 | c_u_ConstrainTotalAcreage_ 3 | c_l_EnforceCattleFeedRequirement(CORN)_ 4 | c_l_EnforceCattleFeedRequirement(SUGAR_BEETS)_ 5 | c_l_EnforceCattleFeedRequirement(WHEAT)_ 6 | c_u_LimitAmountSold(CORN)_ 7 | c_u_LimitAmountSold(SUGAR_BEETS)_ 8 | c_u_LimitAmountSold(WHEAT)_ 9 | r_l_EnforceQuotas(CORN)_ 10 | r_u_EnforceQuotas(CORN)_ 11 | r_l_EnforceQuotas(SUGAR_BEETS)_ 12 | r_u_EnforceQuotas(SUGAR_BEETS)_ 13 | r_l_EnforceQuotas(WHEAT)_ 14 | r_u_EnforceQuotas(WHEAT)_ 15 | c_e_ONE_VAR_CONSTANT -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_LP_symbolic_names_baseline/scenario_files/piecewise.col.Scenario1: -------------------------------------------------------------------------------- 1 | x 2 | fx 3 | fz 4 | p_first_stage_INC_bin_y(1) 5 | p_first_stage_INC_bin_y(2) 6 | p_first_stage_INC_bin_y(3) 7 | p_first_stage_INC_delta(1) 8 | p_first_stage_INC_delta(2) 9 | p_first_stage_INC_delta(3) 10 | p_first_stage_INC_delta(4) 11 | p_second_stage(1)_INC_bin_y(1) 12 | p_second_stage(1)_INC_bin_y(2) 13 | p_second_stage(1)_INC_bin_y(3) 14 | p_second_stage(1)_INC_delta(1) 15 | p_second_stage(1)_INC_delta(2) 16 | p_second_stage(1)_INC_delta(3) 17 | p_second_stage(1)_INC_delta(4) 18 | r 19 | z 20 | ONE_VAR_CONSTANT 21 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_LP_symbolic_names_baseline/scenario_files/piecewise.col.Scenario2: -------------------------------------------------------------------------------- 1 | x 2 | fx 3 | fz 4 | p_first_stage_INC_bin_y(1) 5 | p_first_stage_INC_bin_y(2) 6 | p_first_stage_INC_bin_y(3) 7 | p_first_stage_INC_delta(1) 8 | p_first_stage_INC_delta(2) 9 | p_first_stage_INC_delta(3) 10 | p_first_stage_INC_delta(4) 11 | p_second_stage(1)_INC_bin_y(1) 12 | p_second_stage(1)_INC_bin_y(2) 13 | p_second_stage(1)_INC_bin_y(3) 14 | p_second_stage(1)_INC_delta(1) 15 | p_second_stage(1)_INC_delta(2) 16 | p_second_stage(1)_INC_delta(3) 17 | p_second_stage(1)_INC_delta(4) 18 | r 19 | z 20 | ONE_VAR_CONSTANT 21 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_LP_symbolic_names_baseline/scenario_files/piecewise.col.Scenario3: -------------------------------------------------------------------------------- 1 | x 2 | fx 3 | fz 4 | p_first_stage_INC_bin_y(1) 5 | p_first_stage_INC_bin_y(2) 6 | p_first_stage_INC_bin_y(3) 7 | p_first_stage_INC_delta(1) 8 | p_first_stage_INC_delta(2) 9 | p_first_stage_INC_delta(3) 10 | p_first_stage_INC_delta(4) 11 | p_second_stage(1)_INC_bin_y(1) 12 | p_second_stage(1)_INC_bin_y(2) 13 | p_second_stage(1)_INC_bin_y(3) 14 | p_second_stage(1)_INC_delta(1) 15 | p_second_stage(1)_INC_delta(2) 16 | p_second_stage(1)_INC_delta(3) 17 | p_second_stage(1)_INC_delta(4) 18 | r 19 | z 20 | ONE_VAR_CONSTANT 21 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_MPS_symbolic_names_baseline/scenario_files/piecewise.col.Scenario1: -------------------------------------------------------------------------------- 1 | x 2 | fx 3 | fz 4 | p_first_stage_INC_bin_y(1) 5 | p_first_stage_INC_bin_y(2) 6 | p_first_stage_INC_bin_y(3) 7 | p_first_stage_INC_delta(1) 8 | p_first_stage_INC_delta(2) 9 | p_first_stage_INC_delta(3) 10 | p_first_stage_INC_delta(4) 11 | p_second_stage(1)_INC_bin_y(1) 12 | p_second_stage(1)_INC_bin_y(2) 13 | p_second_stage(1)_INC_bin_y(3) 14 | p_second_stage(1)_INC_delta(1) 15 | p_second_stage(1)_INC_delta(2) 16 | p_second_stage(1)_INC_delta(3) 17 | p_second_stage(1)_INC_delta(4) 18 | r 19 | z 20 | ONE_VAR_CONSTANT 21 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_MPS_symbolic_names_baseline/scenario_files/piecewise.col.Scenario2: -------------------------------------------------------------------------------- 1 | x 2 | fx 3 | fz 4 | p_first_stage_INC_bin_y(1) 5 | p_first_stage_INC_bin_y(2) 6 | p_first_stage_INC_bin_y(3) 7 | p_first_stage_INC_delta(1) 8 | p_first_stage_INC_delta(2) 9 | p_first_stage_INC_delta(3) 10 | p_first_stage_INC_delta(4) 11 | p_second_stage(1)_INC_bin_y(1) 12 | p_second_stage(1)_INC_bin_y(2) 13 | p_second_stage(1)_INC_bin_y(3) 14 | p_second_stage(1)_INC_delta(1) 15 | p_second_stage(1)_INC_delta(2) 16 | p_second_stage(1)_INC_delta(3) 17 | p_second_stage(1)_INC_delta(4) 18 | r 19 | z 20 | ONE_VAR_CONSTANT 21 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_MPS_symbolic_names_baseline/scenario_files/piecewise.col.Scenario3: -------------------------------------------------------------------------------- 1 | x 2 | fx 3 | fz 4 | p_first_stage_INC_bin_y(1) 5 | p_first_stage_INC_bin_y(2) 6 | p_first_stage_INC_bin_y(3) 7 | p_first_stage_INC_delta(1) 8 | p_first_stage_INC_delta(2) 9 | p_first_stage_INC_delta(3) 10 | p_first_stage_INC_delta(4) 11 | p_second_stage(1)_INC_bin_y(1) 12 | p_second_stage(1)_INC_bin_y(2) 13 | p_second_stage(1)_INC_bin_y(3) 14 | p_second_stage(1)_INC_delta(1) 15 | p_second_stage(1)_INC_delta(2) 16 | p_second_stage(1)_INC_delta(3) 17 | p_second_stage(1)_INC_delta(4) 18 | r 19 | z 20 | ONE_VAR_CONSTANT 21 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/unit/__init__.py: -------------------------------------------------------------------------------- 1 | # ___________________________________________________________________________ 2 | # 3 | # Pyomo: Python Optimization Modeling Objects 4 | # Copyright 2017 National Technology and Engineering Solutions of Sandia, LLC 5 | # Under the terms of Contract DE-NA0003525 with National Technology and 6 | # Engineering Solutions of Sandia, LLC, the U.S. Government retains certain 7 | # rights in this software. 8 | # This software is distributed under the 3-clause BSD License. 9 | # ___________________________________________________________________________ 10 | # 11 | # Unit tests for PySP 12 | # 13 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_LP_symbolic_names_baseline/scenario_files/farmer.sto.AboveAverageScenario: -------------------------------------------------------------------------------- 1 | BL BLOCK1 PERIOD2 0.33333332999999998 2 | DevotedAcreage(CORN) c_l_EnforceCattleFeedRequirement(CORN)_ 3.6000000000000001 3 | DevotedAcreage(SUGAR_BEETS) c_l_EnforceCattleFeedRequirement(SUGAR_BEETS)_ 24 4 | DevotedAcreage(WHEAT) c_l_EnforceCattleFeedRequirement(WHEAT)_ 3 5 | DevotedAcreage(CORN) c_u_LimitAmountSold(CORN)_ -3.6000000000000001 6 | DevotedAcreage(SUGAR_BEETS) c_u_LimitAmountSold(SUGAR_BEETS)_ -24 7 | DevotedAcreage(WHEAT) c_u_LimitAmountSold(WHEAT)_ -3 8 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_LP_symbolic_names_baseline/scenario_files/farmer.sto.BelowAverageScenario: -------------------------------------------------------------------------------- 1 | BL BLOCK1 PERIOD2 0.33333332999999998 2 | DevotedAcreage(CORN) c_l_EnforceCattleFeedRequirement(CORN)_ 2.3999999999999999 3 | DevotedAcreage(SUGAR_BEETS) c_l_EnforceCattleFeedRequirement(SUGAR_BEETS)_ 16 4 | DevotedAcreage(WHEAT) c_l_EnforceCattleFeedRequirement(WHEAT)_ 2 5 | DevotedAcreage(CORN) c_u_LimitAmountSold(CORN)_ -2.3999999999999999 6 | DevotedAcreage(SUGAR_BEETS) c_u_LimitAmountSold(SUGAR_BEETS)_ -16 7 | DevotedAcreage(WHEAT) c_u_LimitAmountSold(WHEAT)_ -2 8 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_LP_symbolic_names_ignore_derived_baseline/scenario_files/farmer.row.AboveAverageScenario: -------------------------------------------------------------------------------- 1 | Total_Cost_Objective 2 | c_u_ConstrainTotalAcreage_ 3 | c_l_EnforceCattleFeedRequirement(CORN)_ 4 | c_l_EnforceCattleFeedRequirement(SUGAR_BEETS)_ 5 | c_l_EnforceCattleFeedRequirement(WHEAT)_ 6 | c_u_LimitAmountSold(CORN)_ 7 | c_u_LimitAmountSold(SUGAR_BEETS)_ 8 | c_u_LimitAmountSold(WHEAT)_ 9 | r_l_EnforceQuotas(CORN)_ 10 | r_u_EnforceQuotas(CORN)_ 11 | r_l_EnforceQuotas(SUGAR_BEETS)_ 12 | r_u_EnforceQuotas(SUGAR_BEETS)_ 13 | r_l_EnforceQuotas(WHEAT)_ 14 | r_u_EnforceQuotas(WHEAT)_ 15 | c_e_ONE_VAR_CONSTANT -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_LP_symbolic_names_ignore_derived_baseline/scenario_files/farmer.row.BelowAverageScenario: -------------------------------------------------------------------------------- 1 | Total_Cost_Objective 2 | c_u_ConstrainTotalAcreage_ 3 | c_l_EnforceCattleFeedRequirement(CORN)_ 4 | c_l_EnforceCattleFeedRequirement(SUGAR_BEETS)_ 5 | c_l_EnforceCattleFeedRequirement(WHEAT)_ 6 | c_u_LimitAmountSold(CORN)_ 7 | c_u_LimitAmountSold(SUGAR_BEETS)_ 8 | c_u_LimitAmountSold(WHEAT)_ 9 | r_l_EnforceQuotas(CORN)_ 10 | r_u_EnforceQuotas(CORN)_ 11 | r_l_EnforceQuotas(SUGAR_BEETS)_ 12 | r_u_EnforceQuotas(SUGAR_BEETS)_ 13 | r_l_EnforceQuotas(WHEAT)_ 14 | r_u_EnforceQuotas(WHEAT)_ 15 | c_e_ONE_VAR_CONSTANT -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_symbolic_names_ignore_derived_baseline/scenario_files/farmer.row.AverageScenario: -------------------------------------------------------------------------------- 1 | Total_Cost_Objective 2 | c_u_ConstrainTotalAcreage_ 3 | c_l_EnforceCattleFeedRequirement(CORN)_ 4 | c_l_EnforceCattleFeedRequirement(SUGAR_BEETS)_ 5 | c_l_EnforceCattleFeedRequirement(WHEAT)_ 6 | c_u_LimitAmountSold(CORN)_ 7 | c_u_LimitAmountSold(SUGAR_BEETS)_ 8 | c_u_LimitAmountSold(WHEAT)_ 9 | r_l_EnforceQuotas(CORN)_ 10 | r_u_EnforceQuotas(CORN)_ 11 | r_l_EnforceQuotas(SUGAR_BEETS)_ 12 | r_u_EnforceQuotas(SUGAR_BEETS)_ 13 | r_l_EnforceQuotas(WHEAT)_ 14 | r_u_EnforceQuotas(WHEAT)_ 15 | c_e_ONE_VAR_CONSTANT -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_symbolic_names_baseline/scenario_files/farmer.sto.AboveAverageScenario: -------------------------------------------------------------------------------- 1 | BL BLOCK1 PERIOD2 0.33333332999999998 2 | DevotedAcreage(CORN) c_l_EnforceCattleFeedRequirement(CORN)_ 3.6000000000000001 3 | DevotedAcreage(SUGAR_BEETS) c_l_EnforceCattleFeedRequirement(SUGAR_BEETS)_ 24 4 | DevotedAcreage(WHEAT) c_l_EnforceCattleFeedRequirement(WHEAT)_ 3 5 | DevotedAcreage(CORN) c_u_LimitAmountSold(CORN)_ -3.6000000000000001 6 | DevotedAcreage(SUGAR_BEETS) c_u_LimitAmountSold(SUGAR_BEETS)_ -24 7 | DevotedAcreage(WHEAT) c_u_LimitAmountSold(WHEAT)_ -3 8 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_symbolic_names_baseline/scenario_files/farmer.sto.BelowAverageScenario: -------------------------------------------------------------------------------- 1 | BL BLOCK1 PERIOD2 0.33333332999999998 2 | DevotedAcreage(CORN) c_l_EnforceCattleFeedRequirement(CORN)_ 2.3999999999999999 3 | DevotedAcreage(SUGAR_BEETS) c_l_EnforceCattleFeedRequirement(SUGAR_BEETS)_ 16 4 | DevotedAcreage(WHEAT) c_l_EnforceCattleFeedRequirement(WHEAT)_ 2 5 | DevotedAcreage(CORN) c_u_LimitAmountSold(CORN)_ -2.3999999999999999 6 | DevotedAcreage(SUGAR_BEETS) c_u_LimitAmountSold(SUGAR_BEETS)_ -16 7 | DevotedAcreage(WHEAT) c_u_LimitAmountSold(WHEAT)_ -2 8 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_symbolic_names_ignore_derived_baseline/scenario_files/farmer.row.AboveAverageScenario: -------------------------------------------------------------------------------- 1 | Total_Cost_Objective 2 | c_u_ConstrainTotalAcreage_ 3 | c_l_EnforceCattleFeedRequirement(CORN)_ 4 | c_l_EnforceCattleFeedRequirement(SUGAR_BEETS)_ 5 | c_l_EnforceCattleFeedRequirement(WHEAT)_ 6 | c_u_LimitAmountSold(CORN)_ 7 | c_u_LimitAmountSold(SUGAR_BEETS)_ 8 | c_u_LimitAmountSold(WHEAT)_ 9 | r_l_EnforceQuotas(CORN)_ 10 | r_u_EnforceQuotas(CORN)_ 11 | r_l_EnforceQuotas(SUGAR_BEETS)_ 12 | r_u_EnforceQuotas(SUGAR_BEETS)_ 13 | r_l_EnforceQuotas(WHEAT)_ 14 | r_u_EnforceQuotas(WHEAT)_ 15 | c_e_ONE_VAR_CONSTANT -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_MPS_symbolic_names_ignore_derived_baseline/scenario_files/farmer.row.BelowAverageScenario: -------------------------------------------------------------------------------- 1 | Total_Cost_Objective 2 | c_u_ConstrainTotalAcreage_ 3 | c_l_EnforceCattleFeedRequirement(CORN)_ 4 | c_l_EnforceCattleFeedRequirement(SUGAR_BEETS)_ 5 | c_l_EnforceCattleFeedRequirement(WHEAT)_ 6 | c_u_LimitAmountSold(CORN)_ 7 | c_u_LimitAmountSold(SUGAR_BEETS)_ 8 | c_u_LimitAmountSold(WHEAT)_ 9 | r_l_EnforceQuotas(CORN)_ 10 | r_u_EnforceQuotas(CORN)_ 11 | r_l_EnforceQuotas(SUGAR_BEETS)_ 12 | r_u_EnforceQuotas(SUGAR_BEETS)_ 13 | r_l_EnforceQuotas(WHEAT)_ 14 | r_u_EnforceQuotas(WHEAT)_ 15 | c_e_ONE_VAR_CONSTANT -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/__init__.py: -------------------------------------------------------------------------------- 1 | # ___________________________________________________________________________ 2 | # 3 | # Pyomo: Python Optimization Modeling Objects 4 | # Copyright 2017 National Technology and Engineering Solutions of Sandia, LLC 5 | # Under the terms of Contract DE-NA0003525 with National Technology and 6 | # Engineering Solutions of Sandia, LLC, the U.S. Government retains certain 7 | # rights in this software. 8 | # This software is distributed under the 3-clause BSD License. 9 | # ___________________________________________________________________________ 10 | # 11 | # Tests for SMPS related PySP code 12 | # 13 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_LP_symbolic_names_ignore_derived_baseline/scenario_files/piecewise.col.Scenario1: -------------------------------------------------------------------------------- 1 | fx 2 | p_first_stage_INC_bin_y(1) 3 | p_first_stage_INC_bin_y(2) 4 | p_first_stage_INC_bin_y(3) 5 | p_first_stage_INC_delta(1) 6 | p_first_stage_INC_delta(2) 7 | p_first_stage_INC_delta(3) 8 | p_first_stage_INC_delta(4) 9 | x 10 | fz 11 | p_second_stage(1)_INC_bin_y(1) 12 | p_second_stage(1)_INC_bin_y(2) 13 | p_second_stage(1)_INC_bin_y(3) 14 | p_second_stage(1)_INC_delta(1) 15 | p_second_stage(1)_INC_delta(2) 16 | p_second_stage(1)_INC_delta(3) 17 | p_second_stage(1)_INC_delta(4) 18 | r 19 | z 20 | ONE_VAR_CONSTANT 21 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_LP_symbolic_names_ignore_derived_baseline/scenario_files/piecewise.col.Scenario2: -------------------------------------------------------------------------------- 1 | fx 2 | p_first_stage_INC_bin_y(1) 3 | p_first_stage_INC_bin_y(2) 4 | p_first_stage_INC_bin_y(3) 5 | p_first_stage_INC_delta(1) 6 | p_first_stage_INC_delta(2) 7 | p_first_stage_INC_delta(3) 8 | p_first_stage_INC_delta(4) 9 | x 10 | fz 11 | p_second_stage(1)_INC_bin_y(1) 12 | p_second_stage(1)_INC_bin_y(2) 13 | p_second_stage(1)_INC_bin_y(3) 14 | p_second_stage(1)_INC_delta(1) 15 | p_second_stage(1)_INC_delta(2) 16 | p_second_stage(1)_INC_delta(3) 17 | p_second_stage(1)_INC_delta(4) 18 | r 19 | z 20 | ONE_VAR_CONSTANT 21 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_LP_symbolic_names_ignore_derived_baseline/scenario_files/piecewise.col.Scenario3: -------------------------------------------------------------------------------- 1 | fx 2 | p_first_stage_INC_bin_y(1) 3 | p_first_stage_INC_bin_y(2) 4 | p_first_stage_INC_bin_y(3) 5 | p_first_stage_INC_delta(1) 6 | p_first_stage_INC_delta(2) 7 | p_first_stage_INC_delta(3) 8 | p_first_stage_INC_delta(4) 9 | x 10 | fz 11 | p_second_stage(1)_INC_bin_y(1) 12 | p_second_stage(1)_INC_bin_y(2) 13 | p_second_stage(1)_INC_bin_y(3) 14 | p_second_stage(1)_INC_delta(1) 15 | p_second_stage(1)_INC_delta(2) 16 | p_second_stage(1)_INC_delta(3) 17 | p_second_stage(1)_INC_delta(4) 18 | r 19 | z 20 | ONE_VAR_CONSTANT 21 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_MPS_symbolic_names_ignore_derived_baseline/scenario_files/piecewise.col.Scenario1: -------------------------------------------------------------------------------- 1 | fx 2 | p_first_stage_INC_bin_y(1) 3 | p_first_stage_INC_bin_y(2) 4 | p_first_stage_INC_bin_y(3) 5 | p_first_stage_INC_delta(1) 6 | p_first_stage_INC_delta(2) 7 | p_first_stage_INC_delta(3) 8 | p_first_stage_INC_delta(4) 9 | x 10 | fz 11 | p_second_stage(1)_INC_bin_y(1) 12 | p_second_stage(1)_INC_bin_y(2) 13 | p_second_stage(1)_INC_bin_y(3) 14 | p_second_stage(1)_INC_delta(1) 15 | p_second_stage(1)_INC_delta(2) 16 | p_second_stage(1)_INC_delta(3) 17 | p_second_stage(1)_INC_delta(4) 18 | r 19 | z 20 | ONE_VAR_CONSTANT 21 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_MPS_symbolic_names_ignore_derived_baseline/scenario_files/piecewise.col.Scenario2: -------------------------------------------------------------------------------- 1 | fx 2 | p_first_stage_INC_bin_y(1) 3 | p_first_stage_INC_bin_y(2) 4 | p_first_stage_INC_bin_y(3) 5 | p_first_stage_INC_delta(1) 6 | p_first_stage_INC_delta(2) 7 | p_first_stage_INC_delta(3) 8 | p_first_stage_INC_delta(4) 9 | x 10 | fz 11 | p_second_stage(1)_INC_bin_y(1) 12 | p_second_stage(1)_INC_bin_y(2) 13 | p_second_stage(1)_INC_bin_y(3) 14 | p_second_stage(1)_INC_delta(1) 15 | p_second_stage(1)_INC_delta(2) 16 | p_second_stage(1)_INC_delta(3) 17 | p_second_stage(1)_INC_delta(4) 18 | r 19 | z 20 | ONE_VAR_CONSTANT 21 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/piecewise_MPS_symbolic_names_ignore_derived_baseline/scenario_files/piecewise.col.Scenario3: -------------------------------------------------------------------------------- 1 | fx 2 | p_first_stage_INC_bin_y(1) 3 | p_first_stage_INC_bin_y(2) 4 | p_first_stage_INC_bin_y(3) 5 | p_first_stage_INC_delta(1) 6 | p_first_stage_INC_delta(2) 7 | p_first_stage_INC_delta(3) 8 | p_first_stage_INC_delta(4) 9 | x 10 | fz 11 | p_second_stage(1)_INC_bin_y(1) 12 | p_second_stage(1)_INC_bin_y(2) 13 | p_second_stage(1)_INC_bin_y(3) 14 | p_second_stage(1)_INC_delta(1) 15 | p_second_stage(1)_INC_delta(2) 16 | p_second_stage(1)_INC_delta(3) 17 | p_second_stage(1)_INC_delta(4) 18 | r 19 | z 20 | ONE_VAR_CONSTANT 21 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/benders/__init__.py: -------------------------------------------------------------------------------- 1 | # ___________________________________________________________________________ 2 | # 3 | # Pyomo: Python Optimization Modeling Objects 4 | # Copyright 2017 National Technology and Engineering Solutions of Sandia, LLC 5 | # Under the terms of Contract DE-NA0003525 with National Technology and 6 | # Engineering Solutions of Sandia, LLC, the U.S. Government retains certain 7 | # rights in this software. 8 | # This software is distributed under the 3-clause BSD License. 9 | # ___________________________________________________________________________ 10 | # 11 | # Unit tests for PySP benders solver 12 | # 13 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_LP_symbolic_names_ignore_derived_baseline/scenario_files/farmer.sto.AboveAverageScenario: -------------------------------------------------------------------------------- 1 | BL BLOCK1 PERIOD2 0.33333332999999998 2 | DevotedAcreage(CORN) c_l_EnforceCattleFeedRequirement(CORN)_ 3.6000000000000001 3 | DevotedAcreage(SUGAR_BEETS) c_l_EnforceCattleFeedRequirement(SUGAR_BEETS)_ 24 4 | DevotedAcreage(WHEAT) c_l_EnforceCattleFeedRequirement(WHEAT)_ 3 5 | DevotedAcreage(CORN) c_u_LimitAmountSold(CORN)_ -3.6000000000000001 6 | DevotedAcreage(SUGAR_BEETS) c_u_LimitAmountSold(SUGAR_BEETS)_ -24 7 | DevotedAcreage(WHEAT) c_u_LimitAmountSold(WHEAT)_ -3 8 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/convert/smps_baselines/farmer_LP_symbolic_names_ignore_derived_baseline/scenario_files/farmer.sto.BelowAverageScenario: -------------------------------------------------------------------------------- 1 | BL BLOCK1 PERIOD2 0.33333332999999998 2 | DevotedAcreage(CORN) c_l_EnforceCattleFeedRequirement(CORN)_ 2.3999999999999999 3 | DevotedAcreage(SUGAR_BEETS) c_l_EnforceCattleFeedRequirement(SUGAR_BEETS)_ 16 4 | DevotedAcreage(WHEAT) c_l_EnforceCattleFeedRequirement(WHEAT)_ 2 5 | DevotedAcreage(CORN) c_u_LimitAmountSold(CORN)_ -2.3999999999999999 6 | DevotedAcreage(SUGAR_BEETS) c_u_LimitAmountSold(SUGAR_BEETS)_ -16 7 | DevotedAcreage(WHEAT) c_u_LimitAmountSold(WHEAT)_ -2 8 | -------------------------------------------------------------------------------- /src/contrib/pysp/tests/evalxhat/__init__.py: -------------------------------------------------------------------------------- 1 | # ___________________________________________________________________________ 2 | # 3 | # Pyomo: Python Optimization Modeling Objects 4 | # Copyright 2017 National Technology and Engineering Solutions of Sandia, LLC 5 | # Under the terms of Contract DE-NA0003525 with National Technology and 6 | # Engineering Solutions of Sandia, LLC, the U.S. Government retains certain 7 | # rights in this software. 8 | # This software is distributed under the 3-clause BSD License. 9 | # ___________________________________________________________________________ 10 | # 11 | # Unit tests for PySP evalxhat script 12 | # 13 | --------------------------------------------------------------------------------