├── .codecov.yml ├── .coin-or └── projDesc.xml ├── .coveragerc ├── .git-blame-ignore-revs ├── .github ├── ISSUE_TEMPLATE │ ├── bug_report.md │ ├── config.yml │ └── feature_request.md ├── PULL_REQUEST_TEMPLATE.md └── workflows │ ├── release_wheel_creation.yml │ ├── test_branches.yml │ ├── test_pr_and_main.yml │ ├── typos.toml │ └── url_check.yml ├── .gitignore ├── .jenkins.sh ├── .readthedocs.yaml ├── CHANGELOG.md ├── CITATION.cff ├── CONTRIBUTING.md ├── LICENSE.md ├── MANIFEST.in ├── README.md ├── RELEASE.md ├── conftest.py ├── doc ├── OnlineDocs │ ├── Makefile │ ├── README.md │ ├── _static │ │ └── theme_overrides.css │ ├── _templates │ │ ├── layout.html │ │ ├── recursive-base.rst │ │ ├── recursive-class.rst │ │ ├── recursive-enum.rst │ │ └── recursive-module.rst │ ├── code.rst │ ├── conf.py │ ├── contribution_guide.rst │ ├── docutils.conf │ ├── errors.rst │ ├── explanation │ │ ├── analysis │ │ │ ├── alternative_solutions.rst │ │ │ ├── communities_8pp.png │ │ │ ├── communities_decode_1.png │ │ │ ├── community.rst │ │ │ ├── doe │ │ │ │ ├── CCSI-license.txt │ │ │ │ ├── FIM_sensitivity.png │ │ │ │ ├── doe.rst │ │ │ │ ├── flowchart.png │ │ │ │ ├── grid-1.png │ │ │ │ ├── reactor.png │ │ │ │ └── uml.png │ │ │ ├── iis.rst │ │ │ ├── incidence │ │ │ │ ├── api.rst │ │ │ │ ├── config.rst │ │ │ │ ├── connected.rst │ │ │ │ ├── dulmage_mendelsohn.rst │ │ │ │ ├── incidence.rst │ │ │ │ ├── index.rst │ │ │ │ ├── interface.rst │ │ │ │ ├── matching.rst │ │ │ │ ├── overview.rst │ │ │ │ ├── scc_solver.rst │ │ │ │ ├── triangularize.rst │ │ │ │ ├── tutorial.bt.rst │ │ │ │ ├── tutorial.btsolve.rst │ │ │ │ ├── tutorial.dm.rst │ │ │ │ └── tutorial.rst │ │ │ ├── index.rst │ │ │ ├── mpc │ │ │ │ ├── api.rst │ │ │ │ ├── conversion.rst │ │ │ │ ├── data.rst │ │ │ │ ├── examples.rst │ │ │ │ ├── faq.rst │ │ │ │ ├── index.rst │ │ │ │ ├── interface.rst │ │ │ │ ├── modeling.rst │ │ │ │ └── overview.rst │ │ │ ├── parmest │ │ │ │ ├── api.rst │ │ │ │ ├── boxplot.png │ │ │ │ ├── covariance.rst │ │ │ │ ├── datarec.rst │ │ │ │ ├── driver.rst │ │ │ │ ├── examples.rst │ │ │ │ ├── graphics.rst │ │ │ │ ├── index.rst │ │ │ │ ├── installation.rst │ │ │ │ ├── overview.rst │ │ │ │ ├── pairwise_plot_CI.png │ │ │ │ ├── pairwise_plot_LR.png │ │ │ │ ├── parallel.rst │ │ │ │ └── scencreate.rst │ │ │ └── sensitivity_toolbox.rst │ │ ├── contrib_index.txt │ │ ├── developer_utils │ │ │ ├── config.rst │ │ │ ├── deprecation.rst │ │ │ └── index.rst │ │ ├── experimental │ │ │ ├── index.rst │ │ │ ├── kernel │ │ │ │ ├── index.rst │ │ │ │ └── syntax_comparison.rst │ │ │ └── solvers.rst │ │ ├── index.rst │ │ ├── modeling │ │ │ ├── dae.rst │ │ │ ├── gdp │ │ │ │ ├── concepts.rst │ │ │ │ ├── index.rst │ │ │ │ ├── modeling.rst │ │ │ │ └── solving.rst │ │ │ ├── index.rst │ │ │ ├── math_programming │ │ │ │ ├── constraints.rst │ │ │ │ ├── expressions.rst │ │ │ │ ├── index.rst │ │ │ │ ├── objectives.rst │ │ │ │ ├── parameters.rst │ │ │ │ ├── sets.rst │ │ │ │ ├── sos_constraints.rst │ │ │ │ ├── suffixes.rst │ │ │ │ └── variables.rst │ │ │ ├── mpec.rst │ │ │ ├── network.rst │ │ │ ├── reduce_points_demo.png │ │ │ └── units.rst │ │ ├── modeling_utils │ │ │ ├── flattener │ │ │ │ ├── index.rst │ │ │ │ ├── motivation.rst │ │ │ │ └── reference.rst │ │ │ ├── index.rst │ │ │ ├── latex_printer.rst │ │ │ ├── preprocessing.rst │ │ │ └── scaling.rst │ │ ├── philosophy │ │ │ ├── abstract_modeling.rst │ │ │ ├── component_design.rst │ │ │ ├── expressions │ │ │ │ ├── design.rst │ │ │ │ ├── index.rst │ │ │ │ ├── managing.rst │ │ │ │ ├── overview.rst │ │ │ │ └── performance.rst │ │ │ ├── index.rst │ │ │ └── transformations.rst │ │ └── solvers │ │ │ ├── gdpopt.rst │ │ │ ├── gdpopt_flowchart.png │ │ │ ├── index.rst │ │ │ ├── mcpp.rst │ │ │ ├── mindtpy.rst │ │ │ ├── multistart.rst │ │ │ ├── persistent.rst │ │ │ ├── pynumero │ │ │ ├── backward_compatibility.rst │ │ │ ├── index.rst │ │ │ ├── installation.rst │ │ │ ├── tutorial.block_vectors_and_matrices.rst │ │ │ ├── tutorial.linear_solver_interfaces.rst │ │ │ ├── tutorial.mpi_blocks.rst │ │ │ ├── tutorial.nlp_interfaces.rst │ │ │ └── tutorial.rst │ │ │ ├── pyros.rst │ │ │ ├── trustregion.rst │ │ │ └── z3_interface.rst │ ├── ext │ │ ├── pyomo_autosummary_autoenum.py │ │ └── pyomo_tocref.py │ ├── getting_started │ │ ├── index.rst │ │ ├── installation.rst │ │ └── pyomo_overview │ │ │ ├── abstract_concrete.rst │ │ │ ├── index.rst │ │ │ ├── math_modeling.rst │ │ │ ├── overview_components.rst │ │ │ └── simple_examples.rst │ ├── howto │ │ ├── abstract_models │ │ │ ├── BuildAction.rst │ │ │ ├── data │ │ │ │ ├── ABCD.pdf │ │ │ │ ├── ABCD.png │ │ │ │ ├── PP.png │ │ │ │ ├── dataportals.rst │ │ │ │ ├── datfiles.rst │ │ │ │ ├── index.rst │ │ │ │ ├── native.rst │ │ │ │ ├── raw_dicts.rst │ │ │ │ └── storing_data.rst │ │ │ ├── index.rst │ │ │ ├── instantiating_models.rst │ │ │ └── pyomo_command.rst │ │ ├── debugging.rst │ │ ├── index.rst │ │ ├── interrogating.rst │ │ ├── manipulating.rst │ │ └── solver_recipes.rst │ ├── index.rst │ ├── reference │ │ ├── bibliography.rst │ │ ├── future.rst │ │ ├── index.rst │ │ └── topical │ │ │ ├── aml │ │ │ └── index.rst │ │ │ ├── appsi │ │ │ ├── appsi.base.rst │ │ │ ├── appsi.rst │ │ │ ├── appsi.solvers.cbc.rst │ │ │ ├── appsi.solvers.cplex.rst │ │ │ ├── appsi.solvers.gurobi.rst │ │ │ ├── appsi.solvers.highs.rst │ │ │ ├── appsi.solvers.ipopt.rst │ │ │ ├── appsi.solvers.maingo.rst │ │ │ └── appsi.solvers.rst │ │ │ ├── data │ │ │ └── index.rst │ │ │ ├── expressions │ │ │ ├── building.rst │ │ │ ├── classes.rst │ │ │ ├── context_managers.rst │ │ │ ├── index.rst │ │ │ ├── managing.rst │ │ │ └── visitors.rst │ │ │ ├── index.rst │ │ │ ├── kernel │ │ │ ├── base.rst │ │ │ ├── block.rst │ │ │ ├── conic.rst │ │ │ ├── constraint.rst │ │ │ ├── dict_container.rst │ │ │ ├── expression.rst │ │ │ ├── heterogeneous_container.rst │ │ │ ├── homogeneous_container.rst │ │ │ ├── index.rst │ │ │ ├── list_container.rst │ │ │ ├── objective.rst │ │ │ ├── parameter.rst │ │ │ ├── piecewise │ │ │ │ ├── index.rst │ │ │ │ ├── piecewise.rst │ │ │ │ ├── piecewise_nd.rst │ │ │ │ └── util.rst │ │ │ ├── sos.rst │ │ │ ├── suffix.rst │ │ │ ├── tuple_container.rst │ │ │ └── variable.rst │ │ │ └── solvers │ │ │ ├── cplex_persistent.rst │ │ │ ├── gams.rst │ │ │ ├── gurobi_direct.rst │ │ │ ├── gurobi_persistent.rst │ │ │ ├── index.rst │ │ │ └── xpress_persistent.rst │ ├── related_packages.rst │ └── src │ │ ├── data │ │ ├── A.tab │ │ ├── ABCD.tab │ │ ├── ABCD.txt │ │ ├── ABCD.xls │ │ ├── ABCD1.dat │ │ ├── ABCD1.py │ │ ├── ABCD1.txt │ │ ├── ABCD2.dat │ │ ├── ABCD2.py │ │ ├── ABCD2.txt │ │ ├── ABCD3.dat │ │ ├── ABCD3.py │ │ ├── ABCD3.txt │ │ ├── ABCD4.dat │ │ ├── ABCD4.py │ │ ├── ABCD4.txt │ │ ├── ABCD5.dat │ │ ├── ABCD5.py │ │ ├── ABCD5.txt │ │ ├── ABCD6.dat │ │ ├── ABCD6.py │ │ ├── ABCD6.txt │ │ ├── ABCD7.dat │ │ ├── ABCD7.py │ │ ├── ABCD7.txt │ │ ├── ABCD8.bad │ │ ├── ABCD8.dat │ │ ├── ABCD8.py │ │ ├── ABCD9.bad │ │ ├── ABCD9.dat │ │ ├── ABCD9.py │ │ ├── C.tab │ │ ├── D.tab │ │ ├── U.tab │ │ ├── Y.tab │ │ ├── Z.tab │ │ ├── data_managers.txt │ │ ├── diet.dat │ │ ├── diet.sql │ │ ├── diet.sqlite │ │ ├── diet.sqlite.dat │ │ ├── diet1.py │ │ ├── ex.dat │ │ ├── ex.py │ │ ├── ex.txt │ │ ├── ex1.dat │ │ ├── ex2.dat │ │ ├── import1.tab.dat │ │ ├── import1.tab.py │ │ ├── import1.tab.txt │ │ ├── import2.tab.dat │ │ ├── import2.tab.py │ │ ├── import2.tab.txt │ │ ├── import3.tab.dat │ │ ├── import3.tab.py │ │ ├── import3.tab.txt │ │ ├── import4.tab.dat │ │ ├── import4.tab.py │ │ ├── import4.tab.txt │ │ ├── import5.tab.dat │ │ ├── import5.tab.py │ │ ├── import5.tab.txt │ │ ├── import6.tab.dat │ │ ├── import6.tab.py │ │ ├── import6.tab.txt │ │ ├── import7.tab.dat │ │ ├── import7.tab.py │ │ ├── import7.tab.txt │ │ ├── import8.tab.dat │ │ ├── import8.tab.py │ │ ├── import8.tab.txt │ │ ├── namespace1.dat │ │ ├── param1.dat │ │ ├── param1.py │ │ ├── param1.txt │ │ ├── param2.dat │ │ ├── param2.py │ │ ├── param2.txt │ │ ├── param2a.dat │ │ ├── param2a.py │ │ ├── param2a.txt │ │ ├── param3.dat │ │ ├── param3.py │ │ ├── param3.txt │ │ ├── param3a.dat │ │ ├── param3a.py │ │ ├── param3a.txt │ │ ├── param3b.dat │ │ ├── param3b.py │ │ ├── param3b.txt │ │ ├── param3c.dat │ │ ├── param3c.py │ │ ├── param3c.txt │ │ ├── param4.dat │ │ ├── param4.py │ │ ├── param4.txt │ │ ├── param5.dat │ │ ├── param5.py │ │ ├── param5.txt │ │ ├── param5a.dat │ │ ├── param5a.py │ │ ├── param5a.txt │ │ ├── param6.dat │ │ ├── param6.py │ │ ├── param6.txt │ │ ├── param6a.dat │ │ ├── param6a.py │ │ ├── param6a.txt │ │ ├── param7a.dat │ │ ├── param7a.py │ │ ├── param7a.txt │ │ ├── param7b.dat │ │ ├── param7b.py │ │ ├── param7b.txt │ │ ├── param8a.dat │ │ ├── param8a.py │ │ ├── param8a.txt │ │ ├── pyomo.diet1.sh │ │ ├── pyomo.diet1.txt │ │ ├── pyomo.diet2.sh │ │ ├── pyomo.diet2.txt │ │ ├── set1.dat │ │ ├── set1.py │ │ ├── set1.txt │ │ ├── set2.dat │ │ ├── set2.py │ │ ├── set2.txt │ │ ├── set2a.dat │ │ ├── set2a.py │ │ ├── set2a.txt │ │ ├── set3.dat │ │ ├── set3.py │ │ ├── set3.txt │ │ ├── set4.dat │ │ ├── set4.py │ │ ├── set4.txt │ │ ├── set5.dat │ │ ├── set5.py │ │ ├── set5.txt │ │ ├── table0.dat │ │ ├── table0.py │ │ ├── table0.txt │ │ ├── table0.ul.dat │ │ ├── table0.ul.py │ │ ├── table0.ul.txt │ │ ├── table1.dat │ │ ├── table1.py │ │ ├── table1.txt │ │ ├── table2.dat │ │ ├── table2.py │ │ ├── table2.txt │ │ ├── table3.dat │ │ ├── table3.py │ │ ├── table3.txt │ │ ├── table3.ul.dat │ │ ├── table3.ul.py │ │ ├── table3.ul.txt │ │ ├── table4.dat │ │ ├── table4.py │ │ ├── table4.txt │ │ ├── table4.ul.dat │ │ ├── table4.ul.py │ │ ├── table4.ul.txt │ │ ├── table5.dat │ │ ├── table5.py │ │ ├── table5.txt │ │ ├── table6.dat │ │ ├── table6.py │ │ ├── table6.txt │ │ ├── table7.dat │ │ ├── table7.py │ │ └── table7.txt │ │ ├── dataportal │ │ ├── A.tab │ │ ├── C.tab │ │ ├── D.tab │ │ ├── PP.csv │ │ ├── PP.json │ │ ├── PP.sqlite │ │ ├── PP.tab │ │ ├── PP.xml │ │ ├── PP.yaml │ │ ├── PP_sqlite.py │ │ ├── Pyomo_mysql │ │ ├── S.tab │ │ ├── T.json │ │ ├── T.yaml │ │ ├── U.tab │ │ ├── XW.tab │ │ ├── Y.tab │ │ ├── Z.tab │ │ ├── dataportal_tab.py │ │ ├── dataportal_tab.txt │ │ ├── excel.xls │ │ ├── param_initialization.py │ │ ├── param_initialization.txt │ │ ├── set_initialization.py │ │ └── set_initialization.txt │ │ ├── expr │ │ ├── design.py │ │ ├── design.txt │ │ ├── index.py │ │ ├── index.txt │ │ ├── managing.py │ │ ├── managing.txt │ │ ├── overview.py │ │ ├── overview.txt │ │ ├── performance.py │ │ ├── performance.txt │ │ ├── quicksum.log │ │ └── quicksum.py │ │ ├── kernel │ │ ├── examples.sh │ │ ├── examples.txt │ │ └── examples │ │ │ ├── aml_example.py │ │ │ ├── conic.py │ │ │ ├── kernel_containers.py │ │ │ ├── kernel_example.py │ │ │ ├── kernel_solving.py │ │ │ ├── kernel_subclassing.py │ │ │ └── transformer.py │ │ ├── scripting │ │ ├── AbstractSuffixes.py │ │ ├── Isinglebuild.py │ │ ├── Isinglecomm.dat │ │ ├── NodesIn_init.py │ │ ├── Z_init.py │ │ ├── abstract1.dat │ │ ├── abstract2.dat │ │ ├── abstract2.py │ │ ├── abstract2a.dat │ │ ├── abstract2piece.py │ │ ├── abstract2piecebuild.py │ │ ├── block_iter_example.py │ │ ├── concrete1.py │ │ ├── doubleA.py │ │ ├── driveabs2.py │ │ ├── driveconc1.py │ │ ├── iterative1.py │ │ ├── iterative2.py │ │ ├── noiteration1.py │ │ ├── parallel.py │ │ ├── spy4Constraints.py │ │ ├── spy4Expressions.py │ │ ├── spy4PyomoCommand.py │ │ ├── spy4Variables.py │ │ └── spy4scripts.py │ │ ├── strip_examples.py │ │ └── test_examples.py └── logos │ ├── coopr │ ├── Coopr-120x75.png │ ├── CooprLogo6.ai │ ├── CooprLogo6.jpg │ └── CooprLogo6.png │ ├── dae │ ├── Pyomo-DAE-150.png │ ├── Pyomo-DAE-2400-transparent.png │ ├── Pyomo-DAE-2400.png │ ├── Pyomo-DAE-300.png │ ├── Pyomo-DAE.eps │ ├── Pyomo-DAE.pdf │ └── Pyomo-DAE.svg │ ├── doe │ ├── PyomoDoE-lg.png │ ├── PyomoDoE-md.png │ ├── PyomoDoE-sm.png │ ├── PyomoDoE.ai │ ├── PyomoDoE.eps │ ├── PyomoDoE.pdf │ ├── PyomoDoE_noTXT-150.png │ ├── PyomoDoE_noTXT-300.png │ ├── PyomoDoE_noTXT-600.png │ └── PyomoDoE_noTXT-72.png │ ├── gdp │ ├── Pyomo-GDP-150.png │ ├── Pyomo-GDP.ai │ └── Pyomo-GDP.png │ ├── pyomo │ ├── PYOMO_noTXT-150.png │ ├── PYOMO_noTXT-300.png │ ├── PYOMO_noTXT-72.png │ ├── Pyomo120x75.png │ ├── PyomoNewBlue.ai │ ├── PyomoNewBlue.jpg │ ├── PyomoNewBlue3.png │ └── favicon.ico │ └── pysp │ ├── PySP-logo-Web2.eps │ ├── PySP-logo-Web2.png │ ├── PySP-logo-forPrint.ai │ ├── PySP-logo-forPrint.bmp │ ├── PySP-logo-forPrint.jpg │ ├── PySP-logo-forPrint.pdf │ ├── PySP-logo-forWeb.eps │ ├── PySP-logo-forWeb.png │ ├── PySP-logo-v2.ai │ ├── PySP-logo-v2.pdf │ └── PySP-logo-v2.png ├── examples ├── dae │ ├── Heat_Conduction.py │ ├── Optimal_Control.py │ ├── PDE_example.py │ ├── Parameter_Estimation.py │ ├── Path_Constraint.py │ ├── README.txt │ ├── ReactionKinetics.py │ ├── car_example.py │ ├── data_set2.dat │ ├── disease.dat │ ├── disease_DAE.py │ ├── distill.dat │ ├── distill_DAE.py │ ├── dynamic_scheduling.py │ ├── laplace_BVP.py │ ├── run_Optimal_Control.py │ ├── run_Parameter_Estimation.py │ ├── run_Path_Constraint.py │ ├── run_disease.py │ ├── run_distill.py │ ├── run_stochpdegas_automatic.py │ ├── simulator_dae_example.py │ ├── simulator_dae_multindex_example.py │ ├── simulator_ode_example.py │ ├── simulator_ode_multindex_example.py │ ├── stochpdegas_automatic.dat │ └── stochpdegas_automatic.py ├── doc │ └── samples │ │ ├── TRAC.txt │ │ ├── __init__.py │ │ ├── case_studies │ │ ├── deer │ │ │ ├── DeerProblem.dat │ │ │ └── DeerProblem.py │ │ ├── diet │ │ │ ├── DietProblem.dat │ │ │ ├── DietProblem.pdf │ │ │ ├── DietProblem.py │ │ │ ├── DietProblem.tex │ │ │ └── README.txt │ │ ├── disease_est │ │ │ ├── DiseaseEstimation.dat │ │ │ └── DiseaseEstimation.py │ │ ├── max_flow │ │ │ ├── MaxFlow.dat │ │ │ ├── MaxFlow.pdf │ │ │ ├── MaxFlow.png │ │ │ ├── MaxFlow.py │ │ │ ├── MaxFlow.tex │ │ │ └── README.txt │ │ ├── network_flow │ │ │ ├── NetworkFlow1-crop.png │ │ │ ├── README.txt │ │ │ ├── networkFlow1.dat │ │ │ ├── networkFlow1.pdf │ │ │ ├── networkFlow1.py │ │ │ └── networkFlow1.tex │ │ ├── rosen │ │ │ ├── Rosenbrock.output │ │ │ └── Rosenbrock.py │ │ └── transportation │ │ │ ├── README.txt │ │ │ ├── transportation.dat │ │ │ ├── transportation.py │ │ │ ├── transportationProblem.pdf │ │ │ └── transportationProblem.tex │ │ ├── comparisons │ │ ├── cutstock │ │ │ ├── CHANGELOG.txt │ │ │ ├── Patterns.csv │ │ │ ├── README.txt │ │ │ ├── Waste.csv │ │ │ ├── WidthDemand.csv │ │ │ ├── cutstock_cplex.py │ │ │ ├── cutstock_grb.py │ │ │ ├── cutstock_lpsolve.py │ │ │ ├── cutstock_pulpor.py │ │ │ ├── cutstock_pyomo.py │ │ │ └── cutstock_util.py │ │ └── sched │ │ │ ├── README.txt │ │ │ ├── ampl │ │ │ ├── sched.dat │ │ │ └── sched.mod │ │ │ ├── gams │ │ │ └── sched.gms │ │ │ ├── lp_solve │ │ │ ├── srsched.lp │ │ │ ├── srsched.mps │ │ │ └── srsched.txt │ │ │ ├── msfs │ │ │ └── Sched.xlsx │ │ │ └── pyomo │ │ │ ├── sched.dat │ │ │ └── sched.py │ │ ├── scripts │ │ ├── __init__.py │ │ ├── s1 │ │ │ ├── README.txt │ │ │ ├── knapsack.dat │ │ │ ├── knapsack.py │ │ │ ├── script.out │ │ │ └── script.py │ │ ├── s2 │ │ │ ├── README.txt │ │ │ ├── knapsack.dat │ │ │ ├── knapsack.py │ │ │ ├── script.out │ │ │ └── script.py │ │ └── test_scripts.py │ │ └── update.py ├── gdp │ ├── README.txt │ ├── batchProcessing.py │ ├── batchProcessing1.dat │ ├── circles │ │ └── circles.py │ ├── constrained_layout │ │ └── cons_layout_model.py │ ├── disease_model.py │ ├── eight_process │ │ ├── eight_proc_logical.py │ │ ├── eight_proc_model.py │ │ └── eight_proc_verbose_model.py │ ├── farm_layout │ │ └── farm_layout.py │ ├── jobshop-nodisjuncts.py │ ├── jobshop-small.dat │ ├── jobshop.dat │ ├── jobshop.py │ ├── medTermPurchasing_Literal.py │ ├── medTermPurchasing_Literal_Chull.dat │ ├── nine_process │ │ └── small_process.py │ ├── simple1.py │ ├── simple2.py │ ├── simple3.py │ ├── small_lit │ │ ├── README.md │ │ ├── basic_step.py │ │ ├── contracts_problem.py │ │ ├── ex1_Lee.py │ │ ├── ex_633_trespalacios.py │ │ └── nonconvex_HEN.py │ ├── stickies.py │ ├── stickies1.dat │ ├── strip_packing │ │ ├── stripPacking.py │ │ ├── stripPacking_12Chull.dat │ │ ├── stripPacking_4BigM.dat │ │ ├── strip_packing_8rect.py │ │ └── strip_packing_concrete.py │ └── two_rxn_lee │ │ ├── README.md │ │ └── two_rxn_model.py ├── kernel │ ├── blocks.py │ ├── conic.py │ ├── constraints.py │ ├── containers.py │ ├── expressions.py │ ├── mosek │ │ ├── geometric1.py │ │ ├── geometric2.py │ │ ├── maximum_volume_cuboid.py │ │ ├── power1.py │ │ └── semidefinite.py │ ├── objectives.py │ ├── parameters.py │ ├── piecewise_functions.py │ ├── piecewise_nd_functions.py │ ├── special_ordered_sets.py │ ├── suffixes.py │ └── variables.py ├── mpec │ ├── README.txt │ ├── bard1.py │ ├── df.py │ ├── indexed.py │ ├── linear1.mod │ ├── linear1.py │ ├── linear1_run.mod │ ├── munson1.py │ ├── munson1.yml │ ├── munson1a.py │ ├── munson1b.py │ ├── munson1c.py │ ├── munson1d.py │ └── scholtes4.py ├── performance │ ├── README.txt │ ├── dae │ │ ├── run_stochpdegas1_automatic.py │ │ ├── stochpdegas1_automatic.py │ │ └── stochpdegas_automatic.dat │ ├── jump │ │ ├── IEEE662.branch │ │ ├── IEEE662.bus │ │ ├── IEEE6620.branch │ │ ├── IEEE6620.bus │ │ ├── README │ │ ├── clnlbeam-5000.dat │ │ ├── clnlbeam-50000.dat │ │ ├── clnlbeam-500000.dat │ │ ├── clnlbeam.py │ │ ├── facility.py │ │ ├── lqcp.py │ │ ├── opf_66200bus.py │ │ ├── opf_6620bus.py │ │ └── opf_662bus.py │ ├── misc │ │ ├── bilinear1_100.py │ │ ├── bilinear1_100000.py │ │ ├── bilinear2_100.py │ │ ├── bilinear2_100000.py │ │ ├── diag1_100.py │ │ ├── diag1_100000.py │ │ ├── diag2_100.py │ │ ├── diag2_100000.py │ │ ├── set1-100.dat │ │ ├── set1-1000.dat │ │ ├── set1-10000.dat │ │ ├── set1.py │ │ └── sparse1.py │ └── pmedian │ │ ├── pmedian.dat │ │ ├── pmedian.test4.dat │ │ ├── pmedian.test6.dat │ │ ├── pmedian.test7.dat │ │ ├── pmedian.test8.dat │ │ ├── pmedian1.py │ │ └── pmedian2.py ├── pyomo │ ├── README.txt │ ├── amplbook2 │ │ ├── README.txt │ │ ├── diet.dat │ │ ├── diet.map │ │ ├── diet.mod │ │ ├── diet.py │ │ ├── diet2a.dat │ │ ├── dieta.dat │ │ ├── dieti.map │ │ ├── dieti.mod │ │ ├── dieti.py │ │ ├── dietu.dat │ │ ├── dietu.map │ │ ├── dietu.mod │ │ ├── econ.dat │ │ ├── econ.map │ │ ├── econ.mod │ │ ├── econ2.dat │ │ ├── econ2.map │ │ ├── econ2.mod │ │ ├── econ2min.map │ │ ├── econ2min.mod │ │ ├── econ2min.py │ │ ├── econmin.map │ │ ├── econmin.mod │ │ ├── econmin.py │ │ ├── econnl.dat │ │ ├── econnl.map │ │ ├── econnl.mod │ │ ├── iocol1.map │ │ ├── iocol1.mod │ │ ├── iocol2.map │ │ ├── iocol2.mod │ │ ├── iorow.map │ │ ├── iorow.mod │ │ ├── minmax.map │ │ ├── minmax.mod │ │ ├── multi.dat │ │ ├── multi.map │ │ ├── multi.mod │ │ ├── multic.map │ │ ├── multic.mod │ │ ├── multmip1.dat │ │ ├── multmip1.map │ │ ├── multmip1.mod │ │ ├── multmip2.dat │ │ ├── multmip2.map │ │ ├── multmip2.mod │ │ ├── multmip3.dat │ │ ├── multmip3.map │ │ ├── multmip3.mod │ │ ├── net1.dat │ │ ├── net1.map │ │ ├── net1.mod │ │ ├── net1node.map │ │ ├── net1node.mod │ │ ├── net2.dat │ │ ├── net2.map │ │ ├── net2.mod │ │ ├── net3.dat │ │ ├── net3.map │ │ ├── net3.mod │ │ ├── net3node.map │ │ ├── net3node.mod │ │ ├── netasgn.map │ │ ├── netasgn.mod │ │ ├── netfeeds.map │ │ ├── netfeeds.mod │ │ ├── netmax.map │ │ ├── netmax.mod │ │ ├── netmax3.map │ │ ├── netmax3.mod │ │ ├── netmcol.map │ │ ├── netmcol.mod │ │ ├── netmulti.map │ │ ├── netmulti.mod │ │ ├── netshort.map │ │ ├── netshort.mod │ │ ├── netthru.map │ │ ├── netthru.mod │ │ ├── nltrans.dat │ │ ├── nltrans.map │ │ ├── nltrans.mod │ │ ├── nltransb.map │ │ ├── nltransb.mod │ │ ├── nltransc.map │ │ ├── nltransc.mod │ │ ├── nltransd.map │ │ ├── nltransd.mod │ │ ├── prod.dat │ │ ├── prod.map │ │ ├── prod.mod │ │ ├── prod.py │ │ ├── prod0.map │ │ ├── prod0.mod │ │ ├── sched.dat │ │ ├── sched.map │ │ ├── sched.mod │ │ ├── steel.dat │ │ ├── steel.map │ │ ├── steel.mod │ │ ├── steel.py │ │ ├── steel2.dat │ │ ├── steel3.dat │ │ ├── steel3.map │ │ ├── steel3.mod │ │ ├── steel3.py │ │ ├── steel4.dat │ │ ├── steel4.map │ │ ├── steel4.mod │ │ ├── steel4.py │ │ ├── steel4r.dat │ │ ├── steel4r.map │ │ ├── steel4r.mod │ │ ├── steelP.dat │ │ ├── steelP.map │ │ ├── steelP.mod │ │ ├── steelT.dat │ │ ├── steelT.map │ │ ├── steelT.mod │ │ ├── steelT0.map │ │ ├── steelT0.mod │ │ ├── steelT2.dat │ │ ├── steelT2.map │ │ ├── steelT2.mod │ │ ├── steelT3.dat │ │ ├── steelT3.map │ │ ├── steelT3.mod │ │ ├── steelp3a.map │ │ ├── steelp3a.mod │ │ ├── steelpl1.dat │ │ ├── steelpl1.map │ │ ├── steelpl1.mod │ │ ├── steelpl2.dat │ │ ├── steelpl2.map │ │ ├── steelpl2.mod │ │ ├── steelpl3.map │ │ ├── steelpl3.mod │ │ ├── steelpl4.dat │ │ ├── steelpl4.map │ │ ├── steelpl4.mod │ │ ├── steelpl5.dat │ │ ├── steelpl5.map │ │ ├── steelpl5.mod │ │ ├── transp.dat │ │ ├── transp.map │ │ ├── transp.mod │ │ ├── transp2.map │ │ ├── transp2.mod │ │ ├── transp3.dat │ │ ├── transp3.map │ │ ├── transp3.mod │ │ ├── transp4.map │ │ ├── transp4.mod │ │ ├── transpl1.dat │ │ ├── transpl1.map │ │ ├── transpl1.mod │ │ ├── transpl2.dat │ │ ├── transpl2.map │ │ └── transpl2.mod │ ├── benders │ │ ├── base_subproblem.dat │ │ ├── high_subproblem.dat │ │ ├── low_subproblem.dat │ │ ├── master.dat │ │ ├── master.py │ │ ├── runbenders │ │ └── subproblem.py │ ├── callbacks │ │ ├── README │ │ ├── points │ │ ├── sc.py │ │ ├── sc_callback.py │ │ ├── sc_script.py │ │ ├── scalability │ │ │ └── run.py │ │ └── tsp.py │ ├── columngeneration │ │ └── cutting_stock.py │ ├── concrete │ │ ├── Whiskas.py │ │ ├── knapsack-abstract.py │ │ ├── knapsack-concrete.py │ │ ├── knapsack.dat │ │ ├── rosen.py │ │ ├── sodacan.py │ │ ├── sodacan_fig.py │ │ ├── sp.py │ │ └── sp_data.py │ ├── connectors │ │ ├── network_flow.dat │ │ ├── network_flow.py │ │ ├── network_flow_proposed.dat │ │ └── network_flow_proposed.py │ ├── core │ │ ├── block1.py │ │ ├── integrality1.py │ │ ├── integrality2.py │ │ ├── simple.py │ │ ├── t1.py │ │ ├── t2.py │ │ └── t5.py │ ├── diet │ │ ├── README.txt │ │ ├── diet-sqlite.py │ │ ├── diet.dat │ │ ├── diet.mdb │ │ ├── diet.sql │ │ ├── diet.sqlite │ │ ├── diet1.db.dat │ │ ├── diet1.py │ │ ├── diet1.sql.dat │ │ ├── diet1.sqlite.dat │ │ ├── diet2.ampl │ │ ├── diet2.mod │ │ └── diet2.py │ ├── draft │ │ ├── README.txt │ │ ├── api.py │ │ ├── bpack.dat │ │ ├── bpack.map │ │ ├── bpack.mod │ │ ├── bpack.py │ │ ├── diet2.dat │ │ ├── diet2.py │ │ ├── ex1.dat │ │ ├── ex1.mod │ │ └── morphEpanet3.mod │ ├── p-median │ │ ├── README.txt │ │ ├── ampl1.in │ │ ├── ampl2.in │ │ ├── ampl3.in │ │ ├── ampl4.in │ │ ├── ampl5.in │ │ ├── ampl6.in │ │ ├── ampl7.in │ │ ├── ampl8.in │ │ ├── ampl_scalability │ │ ├── decorated_pmedian.py │ │ ├── pmedian.ampl │ │ ├── pmedian.dat │ │ ├── pmedian.mod │ │ ├── pmedian.py │ │ ├── pmedian.test1.dat │ │ ├── pmedian.test2.dat │ │ ├── pmedian.test3.dat │ │ ├── pmedian.test4.dat │ │ ├── pmedian.test5.dat │ │ ├── pmedian.test6.dat │ │ ├── pmedian.test7.dat │ │ ├── pmedian.test8.dat │ │ ├── pyomo_scalability │ │ ├── solver1.py │ │ └── solver2.py │ ├── piecewise │ │ ├── convex.py │ │ ├── indexed.py │ │ ├── indexed_nonlinear.py │ │ ├── indexed_points.py │ │ ├── nonconvex.py │ │ ├── points.py │ │ └── step.py │ ├── quadratic │ │ ├── example1.py │ │ ├── example2.py │ │ ├── example3.py │ │ └── example4.py │ ├── radertext │ │ ├── Ex2_1.dat │ │ ├── Ex2_1.py │ │ ├── Ex2_2.dat │ │ ├── Ex2_2.py │ │ ├── Ex2_3.dat │ │ ├── Ex2_3.py │ │ ├── Ex2_5.dat │ │ ├── Ex2_5.py │ │ ├── Ex2_6.dat │ │ ├── Ex2_6a.py │ │ └── Ex2_6b.py │ ├── sos │ │ ├── DepotSiting.dat │ │ ├── DepotSiting.py │ │ ├── basic_sos2_example.py │ │ └── sos2_piecewise.py │ ├── suffixes │ │ ├── duals_pyomo.py │ │ ├── duals_script.py │ │ ├── gurobi_ampl_basis.py │ │ ├── gurobi_ampl_example.py │ │ ├── gurobi_ampl_iis.py │ │ ├── ipopt_scaling.py │ │ ├── ipopt_warmstart.py │ │ ├── sipopt_hicks.py │ │ └── sipopt_parametric.py │ ├── transform │ │ └── scaling_ex.py │ └── tutorials │ │ ├── README.txt │ │ ├── csv │ │ ├── A.csv │ │ ├── B.csv │ │ ├── C.csv │ │ ├── D.csv │ │ ├── E.csv │ │ ├── I.csv │ │ ├── PO.csv │ │ ├── PP.csv │ │ ├── RQ.csv │ │ ├── S.csv │ │ ├── T.csv │ │ ├── U.csv │ │ ├── XW.csv │ │ ├── Y.csv │ │ └── Z.csv │ │ ├── data.dat │ │ ├── data.out │ │ ├── data.py │ │ ├── excel.out │ │ ├── excel.py │ │ ├── excel.xls │ │ ├── excel.xlsb │ │ ├── excel.xlsm │ │ ├── excel.xlsx │ │ ├── json │ │ ├── A.json │ │ ├── B.json │ │ ├── C.json │ │ ├── PO.json │ │ ├── PP.json │ │ ├── S.json │ │ ├── XW.json │ │ ├── Y.json │ │ └── Z.json │ │ ├── param.dat │ │ ├── param.out │ │ ├── param.py │ │ ├── pyomo.txt │ │ ├── set.dat │ │ ├── set.out │ │ ├── set.py │ │ ├── tab │ │ ├── A.tab │ │ ├── B.tab │ │ ├── C.tab │ │ ├── D.tab │ │ ├── E.tab │ │ ├── I.tab │ │ ├── PO.tab │ │ ├── PP.tab │ │ ├── RQ.tab │ │ ├── S.tab │ │ ├── T.tab │ │ ├── U.tab │ │ ├── XW.tab │ │ ├── Y.tab │ │ └── Z.tab │ │ ├── table.out │ │ ├── table.py │ │ ├── xml │ │ ├── A.xml │ │ ├── B.xml │ │ ├── C.xml │ │ ├── E.xml │ │ ├── I.xml │ │ ├── PO.xml │ │ ├── PP.xml │ │ ├── RQ.xml │ │ ├── S.xml │ │ ├── XW.xml │ │ ├── XW_nested1.xml │ │ ├── XW_nested2.xml │ │ ├── Y.xml │ │ └── Z.xml │ │ └── yaml │ │ ├── A.yaml │ │ ├── B.yaml │ │ ├── C.yaml │ │ ├── PO.yaml │ │ ├── PP.yaml │ │ ├── S.yaml │ │ ├── XW.yaml │ │ ├── Y.yaml │ │ └── Z.yaml └── pyomobook │ ├── __init__.py │ ├── abstract-ch │ ├── ABCD.xls │ ├── AbstHLinScript.py │ ├── AbstHLinScript.txt │ ├── AbstractH.dat │ ├── AbstractH.py │ ├── AbstractHLinear.py │ ├── abstract5-ns1.dat │ ├── abstract5-ns2.dat │ ├── abstract5.dat │ ├── abstract5.py │ ├── abstract5.yaml │ ├── abstract6.dat │ ├── abstract6.py │ ├── abstract7.py │ ├── buildactions.py │ ├── buildactions_fails.dat │ ├── buildactions_works.dat │ ├── concrete1-ref.lp │ ├── concrete1-ref.nl │ ├── concrete1.py │ ├── concrete1.yaml │ ├── concrete2.py │ ├── diet.dat │ ├── diet.sql │ ├── diet.sqlite │ ├── diet.sqlite.dat │ ├── diet1.py │ ├── ex.dat │ ├── ex.py │ ├── ex.txt │ ├── ex1.dat │ ├── ex2.dat │ ├── namespace1.dat │ ├── param1.dat │ ├── param1.py │ ├── param1.txt │ ├── param2.dat │ ├── param2.py │ ├── param2.txt │ ├── param2a.dat │ ├── param2a.py │ ├── param2a.txt │ ├── param3.dat │ ├── param3.py │ ├── param3.txt │ ├── param3a.dat │ ├── param3a.py │ ├── param3a.txt │ ├── param3b.dat │ ├── param3b.py │ ├── param3b.txt │ ├── param3c.dat │ ├── param3c.py │ ├── param3c.txt │ ├── param4.dat │ ├── param4.py │ ├── param4.txt │ ├── param5.dat │ ├── param5.py │ ├── param5.txt │ ├── param5a.dat │ ├── param5a.py │ ├── param5a.txt │ ├── param6.dat │ ├── param6.py │ ├── param6.txt │ ├── param6a.dat │ ├── param6a.py │ ├── param6a.txt │ ├── param7a.dat │ ├── param7a.py │ ├── param7a.txt │ ├── param7b.dat │ ├── param7b.py │ ├── param7b.txt │ ├── param8a.dat │ ├── param8a.py │ ├── param8a.txt │ ├── postprocess_fn.py │ ├── pyomo.AbstractH.sh │ ├── pyomo.AbstractH.txt │ ├── pyomo.AbstractHLinear.sh │ ├── pyomo.AbstractHLinear.txt │ ├── pyomo.ConcreteHLinear.sh │ ├── pyomo.ConcreteHLinearSummary.sh │ ├── pyomo.abstract5.ns1.sh │ ├── pyomo.abstract5.ns1.txt │ ├── pyomo.abstract5.ns2.sh │ ├── pyomo.abstract5.ns2.txt │ ├── pyomo.abstract5.ns3.sh │ ├── pyomo.abstract5.ns3.txt │ ├── pyomo.abstract6.sh │ ├── pyomo.abstract6.txt │ ├── pyomo.abstract7.sh │ ├── pyomo.abstract7.txt │ ├── pyomo.buildactions_fails.sh │ ├── pyomo.buildactions_fails.txt │ ├── pyomo.buildactions_works.sh │ ├── pyomo.buildactions_works.txt │ ├── pyomo.diet1.sh │ ├── pyomo.diet1.txt │ ├── pyomo.diet2.sh │ ├── pyomo.model1.sh │ ├── pyomo.model1.txt │ ├── pyomo.model2.sh │ ├── pyomo.model2.txt │ ├── pyomo.model3.sh │ ├── pyomo.model3.txt │ ├── pyomo.solve1.sh │ ├── pyomo.solve1.txt │ ├── pyomo.solve2.sh │ ├── pyomo.solve2.txt │ ├── pyomo.solve3.sh │ ├── pyomo.solve3.txt │ ├── pyomo.solve4.sh │ ├── pyomo.solve4.txt │ ├── pyomo.solve5.sh │ ├── pyomo.solve5.txt │ ├── pyomo.wl_abstract.sh │ ├── pyomo.wl_abstract.txt │ ├── set1.dat │ ├── set1.py │ ├── set1.txt │ ├── set2.dat │ ├── set2.py │ ├── set2.txt │ ├── set2a.dat │ ├── set2a.py │ ├── set2a.txt │ ├── set3.dat │ ├── set3.py │ ├── set3.txt │ ├── set4.dat │ ├── set4.py │ ├── set4.txt │ ├── set5.dat │ ├── set5.py │ ├── set5.txt │ ├── unknown-ref.lp │ ├── wl_abstract.py │ ├── wl_abstract_script.py │ ├── wl_abstract_script.txt │ └── wl_data.dat │ ├── blocks-ch │ ├── blocks_gen.py │ ├── blocks_gen.txt │ ├── blocks_intro.py │ ├── blocks_intro.txt │ ├── blocks_lotsizing.py │ ├── blocks_lotsizing.txt │ ├── lotsizing.py │ ├── lotsizing.txt │ ├── lotsizing_no_time.py │ ├── lotsizing_no_time.txt │ ├── lotsizing_uncertain.py │ └── lotsizing_uncertain.txt │ ├── dae-ch │ ├── dae_tester_model.py │ ├── dae_tester_model.txt │ ├── path_constraint.py │ ├── path_constraint.txt │ ├── plot_path_constraint.py │ ├── run_path_constraint.py │ ├── run_path_constraint_tester.py │ └── run_path_constraint_tester.txt │ ├── gdp-ch │ ├── gdp_uc.dat │ ├── gdp_uc.py │ ├── pyomo.gdp_uc.sh │ ├── pyomo.gdp_uc.txt │ ├── pyomo.scont.sh │ ├── pyomo.scont.txt │ ├── pyomo.scont2.sh │ ├── pyomo.scont2.txt │ ├── scont.py │ ├── scont2.py │ ├── scont_script.py │ ├── scont_script.sh │ ├── scont_script.txt │ └── verify_scont.py │ ├── intro-ch │ ├── abstract5.dat │ ├── abstract5.py │ ├── coloring_concrete.py │ ├── concrete1.py │ ├── concrete1_generic.py │ ├── mydata.py │ ├── pyomo.abstract5.sh │ ├── pyomo.abstract5.txt │ ├── pyomo.coloring_concrete.sh │ ├── pyomo.coloring_concrete.txt │ ├── pyomo.concrete1.sh │ ├── pyomo.concrete1.txt │ ├── pyomo.concrete1_generic.sh │ └── pyomo.concrete1_generic.txt │ ├── mpec-ch │ ├── ex1a.py │ ├── ex1b.py │ ├── ex1c.py │ ├── ex1d.py │ ├── ex1e.py │ ├── ex2.py │ ├── mip1.sh │ ├── mip1.txt │ ├── munson1.py │ ├── nlp1.sh │ ├── nlp1.txt │ ├── nlp2.sh │ ├── nlp2.txt │ ├── nlp3.sh │ ├── nlp3.txt │ ├── nlp_ex1b.sh │ ├── nlp_ex1b.txt │ ├── nlp_ex1c.sh │ ├── nlp_ex1c.txt │ ├── nlp_ex1d.sh │ ├── nlp_ex1d.txt │ ├── nlp_ex1e.sh │ ├── nlp_ex1e.txt │ ├── nlp_ex2.sh │ ├── nlp_ex2.txt │ ├── path1.sh │ ├── path1.txt │ └── ralph1.py │ ├── nonlinear-ch │ ├── deer │ │ ├── DeerProblem.dat │ │ ├── DeerProblem.py │ │ └── DeerProblem.txt │ ├── disease_est │ │ ├── disease_estimation.dat │ │ ├── disease_estimation.py │ │ └── disease_estimation.txt │ ├── multimodal │ │ ├── multimodal_init1.py │ │ ├── multimodal_init1.txt │ │ ├── multimodal_init2.py │ │ └── multimodal_init2.txt │ ├── react_design │ │ ├── ReactorDesign.py │ │ ├── ReactorDesign.txt │ │ ├── ReactorDesignTable.py │ │ └── ReactorDesignTable.txt │ └── rosen │ │ ├── rosenbrock.py │ │ └── rosenbrock.txt │ ├── optimization-ch │ ├── ConcHLinScript.py │ ├── ConcHLinScript.txt │ ├── ConcreteH.py │ ├── ConcreteH.txt │ ├── ConcreteHLinear.py │ ├── ConcreteHLinear.txt │ ├── IC_model_dict.py │ └── IC_model_dict.txt │ ├── overview-ch │ ├── pyomo.wl_abstract.sh │ ├── pyomo.wl_abstract.txt │ ├── var_obj_con_snippet.py │ ├── var_obj_con_snippet.txt │ ├── wl_abstract.py │ ├── wl_abstract_script.py │ ├── wl_abstract_script.txt │ ├── wl_concrete.py │ ├── wl_concrete_script.py │ ├── wl_concrete_script.txt │ ├── wl_data.dat │ ├── wl_data.xlsx │ ├── wl_excel.py │ ├── wl_excel.txt │ ├── wl_list.py │ ├── wl_list.txt │ ├── wl_mutable.py │ ├── wl_mutable_excel.py │ ├── wl_mutable_excel.txt │ ├── wl_scalar.py │ └── wl_scalar.txt │ ├── performance-ch │ ├── SparseSets.py │ ├── SparseSets.txt │ ├── lin_expr.py │ ├── lin_expr_output.txt │ ├── persistent.py │ ├── persistent.txt │ ├── persistent_output.txt │ ├── wl.py │ ├── wl.txt │ └── wl_output.txt │ ├── pyomo-components-ch │ ├── con_declaration.py │ ├── con_declaration.txt │ ├── examples.py │ ├── examples.txt │ ├── expr_declaration.py │ ├── expr_declaration.txt │ ├── obj_declaration.py │ ├── obj_declaration.txt │ ├── param_declaration.dat │ ├── param_declaration.py │ ├── param_declaration.txt │ ├── param_initialization.py │ ├── param_initialization.txt │ ├── param_misc.py │ ├── param_misc.txt │ ├── param_validation.dat │ ├── param_validation.py │ ├── param_validation.txt │ ├── rangeset.py │ ├── rangeset.txt │ ├── set_declaration.dat │ ├── set_declaration.py │ ├── set_declaration.txt │ ├── set_initialization.py │ ├── set_initialization.txt │ ├── set_misc.py │ ├── set_misc.txt │ ├── set_options.dat │ ├── set_options.py │ ├── set_options.txt │ ├── set_validation.dat │ ├── set_validation.py │ ├── set_validation.txt │ ├── suffix_declaration.py │ ├── suffix_declaration.txt │ ├── var_declaration.py │ └── var_declaration.txt │ ├── python-ch │ ├── BadIndent.py │ ├── BadIndent.sh │ ├── BadIndent.txt │ ├── LineExample.py │ ├── LineExample.txt │ ├── class.py │ ├── class.txt │ ├── ctob.py │ ├── ctob.txt │ ├── example.py │ ├── example.txt │ ├── example2.py │ ├── functions.py │ ├── functions.txt │ ├── iterate.py │ ├── iterate.txt │ ├── pythonconditional.py │ └── pythonconditional.txt │ ├── scripts-ch │ ├── attributes.py │ ├── attributes.txt │ ├── prob_mod_ex.py │ ├── prob_mod_ex.txt │ ├── sudoku │ │ ├── SudokuFigure.pdf │ │ ├── SudokuFigure.xlsx │ │ ├── SudokuFigureSolved.pdf │ │ ├── SudokuFigureSolved.xlsx │ │ ├── sudoku.py │ │ ├── sudoku_run.py │ │ └── sudoku_run.txt │ ├── value_expression.py │ ├── value_expression.txt │ ├── warehouse_cuts.py │ ├── warehouse_cuts.txt │ ├── warehouse_data.json │ ├── warehouse_load_solutions.py │ ├── warehouse_model.py │ ├── warehouse_print.py │ ├── warehouse_print.txt │ ├── warehouse_script.py │ ├── warehouse_script.txt │ └── warehouse_solver_options.py │ ├── strip_examples.py │ ├── test_book_examples.py │ └── tests │ ├── ref1.txt │ └── ref2.txt ├── pyomo ├── __init__.py ├── _archive │ ├── __init__.py │ ├── chull.py │ ├── component_map.py │ ├── component_set.py │ ├── current.py │ ├── plugin.py │ ├── rangeset.py │ ├── register_numpy_types.py │ ├── sets.py │ └── template_expr.py ├── common │ ├── README.md │ ├── __init__.py │ ├── _command.py │ ├── _common.py │ ├── autoslots.py │ ├── backports.py │ ├── cmake_builder.py │ ├── collections │ │ ├── __init__.py │ │ ├── bunch.py │ │ ├── component_map.py │ │ ├── component_set.py │ │ └── orderedset.py │ ├── config.py │ ├── dependencies.py │ ├── deprecation.py │ ├── download.py │ ├── enums.py │ ├── env.py │ ├── envvar.py │ ├── errors.py │ ├── extensions.py │ ├── factory.py │ ├── fileutils.py │ ├── flags.py │ ├── formatting.py │ ├── gc_manager.py │ ├── gsl.py │ ├── log.py │ ├── modeling.py │ ├── multithread.py │ ├── numeric_types.py │ ├── plugin_base.py │ ├── plugins.py │ ├── pyomo_typing.py │ ├── shutdown.py │ ├── sorting.py │ ├── tee.py │ ├── tempfiles.py │ ├── tests │ │ ├── __init__.py │ │ ├── config_plugin.py │ │ ├── dep_mod.py │ │ ├── dep_mod_except.py │ │ ├── deps.py │ │ ├── import_ex.py │ │ ├── mod.py │ │ ├── moved.py │ │ ├── relo_mod.py │ │ ├── relo_mod_new.py │ │ ├── relocated.py │ │ ├── test_bunch.py │ │ ├── test_component_map.py │ │ ├── test_config.py │ │ ├── test_dependencies.py │ │ ├── test_deprecated.py │ │ ├── test_download.py │ │ ├── test_enums.py │ │ ├── test_env.py │ │ ├── test_errors.py │ │ ├── test_fileutils.py │ │ ├── test_flags.py │ │ ├── test_formatting.py │ │ ├── test_gc.py │ │ ├── test_log.py │ │ ├── test_modeling.py │ │ ├── test_multithread.py │ │ ├── test_numeric_types.py │ │ ├── test_orderedset.py │ │ ├── test_plugin.py │ │ ├── test_sorting.py │ │ ├── test_tee.py │ │ ├── test_tempfile.py │ │ ├── test_timing.py │ │ ├── test_typing.py │ │ └── test_unittest.py │ ├── timing.py │ └── unittest.py ├── contrib │ ├── README.txt │ ├── __init__.py │ ├── alternative_solutions │ │ ├── README.md │ │ ├── __init__.py │ │ ├── aos_utils.py │ │ ├── balas.py │ │ ├── lp_enum.py │ │ ├── lp_enum_solnpool.py │ │ ├── obbt.py │ │ ├── shifted_lp.py │ │ ├── solnpool.py │ │ ├── solution.py │ │ └── tests │ │ │ ├── __init__.py │ │ │ ├── test_aos_utils.py │ │ │ ├── test_balas.py │ │ │ ├── test_case.xlsx │ │ │ ├── test_cases.py │ │ │ ├── test_lp_enum.py │ │ │ ├── test_lp_enum_solnpool.py │ │ │ ├── test_obbt.py │ │ │ ├── test_shifted_lp.py │ │ │ ├── test_solnpool.py │ │ │ └── test_solution.py │ ├── ampl_function_demo │ │ ├── __init__.py │ │ ├── build.py │ │ ├── plugins.py │ │ ├── src │ │ │ ├── CMakeLists.txt │ │ │ ├── FindASL.cmake │ │ │ └── functions.c │ │ └── tests │ │ │ ├── __init__.py │ │ │ └── test_ampl_function_demo.py │ ├── appsi │ │ ├── README.md │ │ ├── __init__.py │ │ ├── base.py │ │ ├── build.py │ │ ├── cmodel │ │ │ ├── __init__.py │ │ │ ├── src │ │ │ │ ├── cmodel_bindings.cpp │ │ │ │ ├── common.cpp │ │ │ │ ├── common.hpp │ │ │ │ ├── expression.cpp │ │ │ │ ├── expression.hpp │ │ │ │ ├── fbbt_model.cpp │ │ │ │ ├── fbbt_model.hpp │ │ │ │ ├── interval.cpp │ │ │ │ ├── interval.hpp │ │ │ │ ├── lp_writer.cpp │ │ │ │ ├── lp_writer.hpp │ │ │ │ ├── model_base.cpp │ │ │ │ ├── model_base.hpp │ │ │ │ ├── nl_writer.cpp │ │ │ │ └── nl_writer.hpp │ │ │ └── tests │ │ │ │ ├── __init__.py │ │ │ │ └── test_import.py │ │ ├── examples │ │ │ ├── __init__.py │ │ │ ├── getting_started.py │ │ │ └── tests │ │ │ │ ├── __init__.py │ │ │ │ └── test_examples.py │ │ ├── fbbt.py │ │ ├── plugins.py │ │ ├── solvers │ │ │ ├── __init__.py │ │ │ ├── cbc.py │ │ │ ├── cplex.py │ │ │ ├── gurobi.py │ │ │ ├── highs.py │ │ │ ├── ipopt.py │ │ │ ├── maingo.py │ │ │ ├── maingo_solvermodel.py │ │ │ ├── tests │ │ │ │ ├── __init__.py │ │ │ │ ├── test_gurobi_persistent.py │ │ │ │ ├── test_highs_persistent.py │ │ │ │ ├── test_ipopt_persistent.py │ │ │ │ ├── test_persistent_solvers.py │ │ │ │ └── test_wntr_persistent.py │ │ │ └── wntr.py │ │ ├── tests │ │ │ ├── __init__.py │ │ │ ├── test_base.py │ │ │ ├── test_fbbt.py │ │ │ ├── test_interval.py │ │ │ └── test_ipopt.py │ │ ├── utils │ │ │ ├── __init__.py │ │ │ ├── collect_vars_and_named_exprs.py │ │ │ ├── get_objective.py │ │ │ └── tests │ │ │ │ ├── __init__.py │ │ │ │ └── test_collect_vars_and_named_exprs.py │ │ └── writers │ │ │ ├── __init__.py │ │ │ ├── config.py │ │ │ ├── lp_writer.py │ │ │ ├── nl_writer.py │ │ │ └── tests │ │ │ ├── __init__.py │ │ │ └── test_nl_writer.py │ ├── benders │ │ ├── __init__.py │ │ ├── benders_cuts.py │ │ ├── examples │ │ │ ├── __init__.py │ │ │ ├── farmer.py │ │ │ └── grothey_ex.py │ │ └── tests │ │ │ ├── __init__.py │ │ │ └── test_benders.py │ ├── community_detection │ │ ├── __init__.py │ │ ├── community_graph.py │ │ ├── detection.py │ │ ├── event_log.py │ │ ├── plugins.py │ │ └── tests │ │ │ ├── __init__.py │ │ │ └── test_detection.py │ ├── cp │ │ ├── __init__.py │ │ ├── interval_var.py │ │ ├── plugins.py │ │ ├── repn │ │ │ ├── __init__.py │ │ │ └── docplex_writer.py │ │ ├── scheduling_expr │ │ │ ├── __init__.py │ │ │ ├── precedence_expressions.py │ │ │ ├── scheduling_logic.py │ │ │ ├── sequence_expressions.py │ │ │ └── step_function_expressions.py │ │ ├── sequence_var.py │ │ ├── tests │ │ │ ├── __init__.py │ │ │ ├── test_docplex_walker.py │ │ │ ├── test_docplex_writer.py │ │ │ ├── test_interval_var.py │ │ │ ├── test_logical_to_disjunctive.py │ │ │ ├── test_precedence_constraints.py │ │ │ ├── test_sequence_expressions.py │ │ │ ├── test_sequence_var.py │ │ │ └── test_step_function_expressions.py │ │ └── transform │ │ │ ├── __init__.py │ │ │ ├── logical_to_disjunctive_program.py │ │ │ └── logical_to_disjunctive_walker.py │ ├── cspline_external │ │ ├── __init__.py │ │ ├── build.py │ │ ├── cspline_parameters.py │ │ ├── plugins.py │ │ ├── src │ │ │ ├── CMakeLists.txt │ │ │ └── functions.cpp │ │ └── test │ │ │ ├── __init__.py │ │ │ ├── test_external_function.py │ │ │ ├── test_parameter_calculation.py │ │ │ ├── test_params.txt │ │ │ └── test_params_line.txt │ ├── doe │ │ ├── __init__.py │ │ ├── doe.py │ │ ├── examples │ │ │ ├── __init__.py │ │ │ ├── reactor_compute_factorial_FIM.py │ │ │ ├── reactor_example.py │ │ │ ├── reactor_experiment.py │ │ │ └── result.json │ │ ├── tests │ │ │ ├── __init__.py │ │ │ ├── experiment_class_example_flags.py │ │ │ ├── test_doe_build.py │ │ │ ├── test_doe_errors.py │ │ │ └── test_doe_solve.py │ │ └── utils.py │ ├── example │ │ ├── __init__.py │ │ ├── bar.py │ │ ├── foo.py │ │ ├── plugins │ │ │ ├── __init__.py │ │ │ └── ex_plugin.py │ │ └── tests │ │ │ ├── __init__.py │ │ │ └── test_example.py │ ├── fbbt │ │ ├── __init__.py │ │ ├── expression_bounds_walker.py │ │ ├── fbbt.py │ │ ├── interval.py │ │ └── tests │ │ │ ├── __init__.py │ │ │ ├── test_expression_bounds_walker.py │ │ │ ├── test_fbbt.py │ │ │ └── test_interval.py │ ├── fme │ │ ├── __init__.py │ │ ├── fourier_motzkin_elimination.py │ │ ├── plugins.py │ │ └── tests │ │ │ ├── __init__.py │ │ │ └── test_fourier_motzkin_elimination.py │ ├── gdp_bounds │ │ ├── __init__.py │ │ ├── compute_bounds.py │ │ ├── info.py │ │ ├── plugins.py │ │ └── tests │ │ │ ├── __init__.py │ │ │ └── test_gdp_bounds.py │ ├── gdpopt │ │ ├── GDPopt.py │ │ ├── __init__.py │ │ ├── algorithm_base_class.py │ │ ├── branch_and_bound.py │ │ ├── config_options.py │ │ ├── create_oa_subproblems.py │ │ ├── cut_generation.py │ │ ├── discrete_problem_initialize.py │ │ ├── enumerate.py │ │ ├── gloa.py │ │ ├── ldsda.py │ │ ├── loa.py │ │ ├── nlp_initialization.py │ │ ├── oa_algorithm_utils.py │ │ ├── plugins.py │ │ ├── ric.py │ │ ├── solve_discrete_problem.py │ │ ├── solve_subproblem.py │ │ ├── tests │ │ │ ├── __init__.py │ │ │ ├── common_tests.py │ │ │ ├── four_stage_dynamic_model.py │ │ │ ├── test_LBB.py │ │ │ ├── test_enumerate.py │ │ │ ├── test_gdpopt.py │ │ │ └── test_ldsda.py │ │ └── util.py │ ├── gjh │ │ ├── GJH.py │ │ ├── __init__.py │ │ ├── getGJH.py │ │ └── plugins.py │ ├── iis │ │ ├── __init__.py │ │ ├── iis.py │ │ ├── mis.py │ │ └── tests │ │ │ ├── __init__.py │ │ │ ├── test_iis.py │ │ │ ├── test_mis.py │ │ │ └── trivial_mis.py │ ├── incidence_analysis │ │ ├── README.md │ │ ├── __init__.py │ │ ├── common │ │ │ ├── __init__.py │ │ │ ├── dulmage_mendelsohn.py │ │ │ └── tests │ │ │ │ ├── __init__.py │ │ │ │ └── test_dulmage_mendelsohn.py │ │ ├── config.py │ │ ├── connected.py │ │ ├── dulmage_mendelsohn.py │ │ ├── incidence.py │ │ ├── interface.py │ │ ├── matching.py │ │ ├── scc_solver.py │ │ ├── tests │ │ │ ├── __init__.py │ │ │ ├── models_for_testing.py │ │ │ ├── test_connected.py │ │ │ ├── test_dulmage_mendelsohn.py │ │ │ ├── test_incidence.py │ │ │ ├── test_interface.py │ │ │ ├── test_matching.py │ │ │ ├── test_scc_solver.py │ │ │ ├── test_triangularize.py │ │ │ └── test_visualize.py │ │ ├── triangularize.py │ │ └── visualize.py │ ├── interior_point │ │ ├── __init__.py │ │ ├── examples │ │ │ ├── __init__.py │ │ │ └── ex1.py │ │ ├── interface.py │ │ ├── interior_point.py │ │ ├── inverse_reduced_hessian.py │ │ ├── linalg │ │ │ ├── __init__.py │ │ │ ├── base_linear_solver_interface.py │ │ │ ├── ma27_interface.py │ │ │ ├── mumps_interface.py │ │ │ ├── scipy_interface.py │ │ │ └── tests │ │ │ │ ├── __init__.py │ │ │ │ ├── test_linear_solvers.py │ │ │ │ └── test_realloc.py │ │ └── tests │ │ │ ├── __init__.py │ │ │ ├── test_interior_point.py │ │ │ ├── test_inverse_reduced_hessian.py │ │ │ ├── test_realloc.py │ │ │ └── test_reg.py │ ├── latex_printer │ │ ├── Readme.md │ │ ├── __init__.py │ │ ├── latex_printer.py │ │ └── tests │ │ │ ├── __init__.py │ │ │ ├── test_latex_printer.py │ │ │ └── test_latex_printer_vartypes.py │ ├── mcpp │ │ ├── .gitignore │ │ ├── __init__.py │ │ ├── build.py │ │ ├── getMCPP.py │ │ ├── mcppInterface.cpp │ │ ├── plugins.py │ │ ├── pyomo_mcpp.py │ │ └── tests │ │ │ ├── __init__.py │ │ │ └── test_mcpp.py │ ├── mindtpy │ │ ├── MindtPy.py │ │ ├── __init__.py │ │ ├── algorithm_base_class.py │ │ ├── config_options.py │ │ ├── cut_generation.py │ │ ├── extended_cutting_plane.py │ │ ├── feasibility_pump.py │ │ ├── global_outer_approximation.py │ │ ├── outer_approximation.py │ │ ├── plugins.py │ │ ├── single_tree.py │ │ ├── tabu_list.py │ │ ├── tests │ │ │ ├── MINLP2_simple.py │ │ │ ├── MINLP3_simple.py │ │ │ ├── MINLP4_simple.py │ │ │ ├── MINLP5_simple.py │ │ │ ├── MINLP_simple.py │ │ │ ├── MINLP_simple_grey_box.py │ │ │ ├── __init__.py │ │ │ ├── constraint_qualification_example.py │ │ │ ├── eight_process_problem.py │ │ │ ├── feasibility_pump1.py │ │ │ ├── feasibility_pump2.py │ │ │ ├── from_proposal.py │ │ │ ├── nonconvex1.py │ │ │ ├── nonconvex2.py │ │ │ ├── nonconvex3.py │ │ │ ├── nonconvex4.py │ │ │ ├── online_doc_example.py │ │ │ ├── test_mindtpy.py │ │ │ ├── test_mindtpy_ECP.py │ │ │ ├── test_mindtpy_feas_pump.py │ │ │ ├── test_mindtpy_global.py │ │ │ ├── test_mindtpy_global_lp_nlp.py │ │ │ ├── test_mindtpy_grey_box.py │ │ │ ├── test_mindtpy_lp_nlp.py │ │ │ ├── test_mindtpy_regularization.py │ │ │ ├── test_mindtpy_solution_pool.py │ │ │ └── unit_test.py │ │ └── util.py │ ├── mpc │ │ ├── README.md │ │ ├── __init__.py │ │ ├── data │ │ │ ├── __init__.py │ │ │ ├── convert.py │ │ │ ├── dynamic_data_base.py │ │ │ ├── find_nearest_index.py │ │ │ ├── get_cuid.py │ │ │ ├── interpolation.py │ │ │ ├── interval_data.py │ │ │ ├── scalar_data.py │ │ │ ├── series_data.py │ │ │ └── tests │ │ │ │ ├── __init__.py │ │ │ │ ├── test_convert.py │ │ │ │ ├── test_find_nearest_index.py │ │ │ │ ├── test_get_cuid.py │ │ │ │ ├── test_interval_data.py │ │ │ │ ├── test_scalar_data.py │ │ │ │ └── test_series_data.py │ │ ├── examples │ │ │ ├── README.md │ │ │ ├── __init__.py │ │ │ └── cstr │ │ │ │ ├── __init__.py │ │ │ │ ├── model.py │ │ │ │ ├── run_mpc.py │ │ │ │ ├── run_openloop.py │ │ │ │ └── tests │ │ │ │ ├── __init__.py │ │ │ │ ├── test_mpc.py │ │ │ │ └── test_openloop.py │ │ ├── interfaces │ │ │ ├── __init__.py │ │ │ ├── copy_values.py │ │ │ ├── load_data.py │ │ │ ├── model_interface.py │ │ │ ├── tests │ │ │ │ ├── __init__.py │ │ │ │ ├── test_interface.py │ │ │ │ └── test_var_linker.py │ │ │ └── var_linker.py │ │ └── modeling │ │ │ ├── __init__.py │ │ │ ├── constraints.py │ │ │ ├── cost_expressions.py │ │ │ ├── terminal.py │ │ │ └── tests │ │ │ ├── __init__.py │ │ │ ├── test_cost_expressions.py │ │ │ ├── test_input_constraints.py │ │ │ └── test_terminal.py │ ├── multistart │ │ ├── __init__.py │ │ ├── high_conf_stop.py │ │ ├── multi.py │ │ ├── plugins.py │ │ ├── reinit.py │ │ └── tests │ │ │ ├── __init__.py │ │ │ └── test_multi.py │ ├── parmest │ │ ├── __init__.py │ │ ├── examples │ │ │ ├── __init__.py │ │ │ ├── reaction_kinetics │ │ │ │ ├── __init__.py │ │ │ │ └── simple_reaction_parmest_example.py │ │ │ ├── reactor_design │ │ │ │ ├── __init__.py │ │ │ │ ├── bootstrap_example.py │ │ │ │ ├── confidence_region_example.py │ │ │ │ ├── datarec_example.py │ │ │ │ ├── leaveNout_example.py │ │ │ │ ├── likelihood_ratio_example.py │ │ │ │ ├── multisensor_data_example.py │ │ │ │ ├── parameter_estimation_example.py │ │ │ │ ├── reactor_data.csv │ │ │ │ ├── reactor_data_multisensor.csv │ │ │ │ ├── reactor_data_timeseries.csv │ │ │ │ ├── reactor_design.py │ │ │ │ └── timeseries_data_example.py │ │ │ ├── rooney_biegler │ │ │ │ ├── __init__.py │ │ │ │ ├── bootstrap_example.py │ │ │ │ ├── likelihood_ratio_example.py │ │ │ │ ├── parameter_estimation_example.py │ │ │ │ ├── rooney_biegler.py │ │ │ │ └── rooney_biegler_with_constraint.py │ │ │ └── semibatch │ │ │ │ ├── __init__.py │ │ │ │ ├── exp1.out │ │ │ │ ├── exp10.out │ │ │ │ ├── exp11.out │ │ │ │ ├── exp12.out │ │ │ │ ├── exp13.out │ │ │ │ ├── exp14.out │ │ │ │ ├── exp2.out │ │ │ │ ├── exp3.out │ │ │ │ ├── exp4.out │ │ │ │ ├── exp5.out │ │ │ │ ├── exp6.out │ │ │ │ ├── exp7.out │ │ │ │ ├── exp8.out │ │ │ │ ├── exp9.out │ │ │ │ ├── obj_at_theta.csv │ │ │ │ ├── parallel_example.py │ │ │ │ ├── parameter_estimation_example.py │ │ │ │ ├── scenario_example.py │ │ │ │ └── semibatch.py │ │ ├── experiment.py │ │ ├── graphics.py │ │ ├── parmest.py │ │ ├── scenariocreator.py │ │ ├── tests │ │ │ ├── __init__.py │ │ │ ├── test_examples.py │ │ │ ├── test_graphics.py │ │ │ ├── test_parmest.py │ │ │ ├── test_scenariocreator.py │ │ │ ├── test_solver.py │ │ │ └── test_utils.py │ │ └── utils │ │ │ ├── __init__.py │ │ │ ├── create_ef.py │ │ │ ├── ipopt_solver_wrapper.py │ │ │ ├── model_utils.py │ │ │ ├── mpi_utils.py │ │ │ └── scenario_tree.py │ ├── piecewise │ │ ├── __init__.py │ │ ├── ordered_3d_j1_triangulation_data.py │ │ ├── piecewise_linear_expression.py │ │ ├── piecewise_linear_function.py │ │ ├── tests │ │ │ ├── __init__.py │ │ │ ├── common_inner_repn_tests.py │ │ │ ├── common_tests.py │ │ │ ├── models.py │ │ │ ├── test_disaggregated_logarithmic.py │ │ │ ├── test_incremental.py │ │ │ ├── test_inner_repn_gdp.py │ │ │ ├── test_nested_inner_repn_gdp.py │ │ │ ├── test_nonlinear_to_pwl.py │ │ │ ├── test_outer_repn_gdp.py │ │ │ ├── test_piecewise_linear_function.py │ │ │ ├── test_reduced_inner_repn.py │ │ │ └── test_triangulations.py │ │ ├── transform │ │ │ ├── __init__.py │ │ │ ├── convex_combination.py │ │ │ ├── disaggregated_convex_combination.py │ │ │ ├── disaggregated_logarithmic.py │ │ │ ├── incremental.py │ │ │ ├── inner_representation_gdp.py │ │ │ ├── multiple_choice.py │ │ │ ├── nested_inner_repn.py │ │ │ ├── nonlinear_to_pwl.py │ │ │ ├── outer_representation_gdp.py │ │ │ ├── piecewise_linear_transformation_base.py │ │ │ ├── piecewise_to_mip_visitor.py │ │ │ └── reduced_inner_representation_gdp.py │ │ └── triangulations.py │ ├── preprocessing │ │ ├── __init__.py │ │ ├── plugins │ │ │ ├── __init__.py │ │ │ ├── bounds_to_vars.py │ │ │ ├── constraint_tightener.py │ │ │ ├── deactivate_trivial_constraints.py │ │ │ ├── detect_fixed_vars.py │ │ │ ├── equality_propagate.py │ │ │ ├── induced_linearity.py │ │ │ ├── init_vars.py │ │ │ ├── int_to_binary.py │ │ │ ├── remove_zero_terms.py │ │ │ ├── strip_bounds.py │ │ │ ├── var_aggregator.py │ │ │ └── zero_sum_propagator.py │ │ ├── tests │ │ │ ├── __init__.py │ │ │ ├── test_bounds_to_vars_xfrm.py │ │ │ ├── test_constraint_tightener.py │ │ │ ├── test_deactivate_trivial_constraints.py │ │ │ ├── test_detect_fixed_vars.py │ │ │ ├── test_equality_propagate.py │ │ │ ├── test_induced_linearity.py │ │ │ ├── test_init_vars.py │ │ │ ├── test_int_to_binary.py │ │ │ ├── test_strip_bounds.py │ │ │ ├── test_var_aggregator.py │ │ │ ├── test_zero_sum_propagate.py │ │ │ └── test_zero_term_removal.py │ │ └── util.py │ ├── pynumero │ │ ├── README.md │ │ ├── __init__.py │ │ ├── algorithms │ │ │ ├── __init__.py │ │ │ └── solvers │ │ │ │ ├── __init__.py │ │ │ │ ├── cyipopt_solver.py │ │ │ │ ├── implicit_functions.py │ │ │ │ ├── pyomo_ext_cyipopt.py │ │ │ │ ├── scipy_solvers.py │ │ │ │ ├── square_solver_base.py │ │ │ │ └── tests │ │ │ │ ├── __init__.py │ │ │ │ ├── test_cyipopt_interfaces.py │ │ │ │ ├── test_cyipopt_solver.py │ │ │ │ ├── test_implicit_functions.py │ │ │ │ ├── test_pyomo_ext_cyipopt.py │ │ │ │ └── test_scipy_solvers.py │ │ ├── asl.py │ │ ├── build.py │ │ ├── dependencies.py │ │ ├── examples │ │ │ ├── __init__.py │ │ │ ├── callback │ │ │ │ ├── __init__.py │ │ │ │ ├── cyipopt_callback.py │ │ │ │ ├── cyipopt_callback_halt.py │ │ │ │ ├── cyipopt_functor_callback.py │ │ │ │ └── reactor_design.py │ │ │ ├── external_grey_box │ │ │ │ ├── __init__.py │ │ │ │ ├── external_with_objective.py │ │ │ │ ├── param_est │ │ │ │ │ ├── README │ │ │ │ │ ├── __init__.py │ │ │ │ │ ├── generate_data.py │ │ │ │ │ ├── models.py │ │ │ │ │ ├── perform_estimation.py │ │ │ │ │ └── smalldata.csv │ │ │ │ └── react_example │ │ │ │ │ ├── __init__.py │ │ │ │ │ ├── maximize_cb_outputs.py │ │ │ │ │ ├── maximize_cb_ratio_residuals.py │ │ │ │ │ ├── reactor_model_outputs.py │ │ │ │ │ └── reactor_model_residuals.py │ │ │ ├── feasibility.py │ │ │ ├── mumps_example.py │ │ │ ├── nlp_interface.py │ │ │ ├── nlp_interface_2.py │ │ │ ├── parallel_matvec.py │ │ │ ├── parallel_vector_ops.py │ │ │ ├── sensitivity.py │ │ │ ├── sqp.py │ │ │ └── tests │ │ │ │ ├── __init__.py │ │ │ │ ├── test_cyipopt_examples.py │ │ │ │ ├── test_examples.py │ │ │ │ └── test_mpi_examples.py │ │ ├── exceptions.py │ │ ├── interfaces │ │ │ ├── __init__.py │ │ │ ├── ampl_nlp.py │ │ │ ├── cyipopt_interface.py │ │ │ ├── external_grey_box.py │ │ │ ├── external_pyomo_model.py │ │ │ ├── nlp.py │ │ │ ├── nlp_projections.py │ │ │ ├── pyomo_grey_box_nlp.py │ │ │ ├── pyomo_nlp.py │ │ │ ├── tests │ │ │ │ ├── __init__.py │ │ │ │ ├── compare_utils.py │ │ │ │ ├── external_grey_box_models.py │ │ │ │ ├── test_cyipopt_interface.py │ │ │ │ ├── test_dynamic_model.py │ │ │ │ ├── test_external_asl_function.py │ │ │ │ ├── test_external_grey_box_model.py │ │ │ │ ├── test_external_pyomo_block.py │ │ │ │ ├── test_external_pyomo_model.py │ │ │ │ ├── test_nlp.py │ │ │ │ ├── test_nlp_projections.py │ │ │ │ ├── test_pyomo_grey_box_nlp.py │ │ │ │ └── test_utils.py │ │ │ └── utils.py │ │ ├── intrinsic.py │ │ ├── linalg │ │ │ ├── __init__.py │ │ │ ├── base.py │ │ │ ├── ma27.py │ │ │ ├── ma27_interface.py │ │ │ ├── ma57.py │ │ │ ├── ma57_interface.py │ │ │ ├── mumps_interface.py │ │ │ ├── scipy_interface.py │ │ │ ├── tests │ │ │ │ ├── __init__.py │ │ │ │ ├── test_linear_solvers.py │ │ │ │ ├── test_ma27.py │ │ │ │ ├── test_ma57.py │ │ │ │ └── test_mumps_interface.py │ │ │ └── utils.py │ │ ├── plugins.py │ │ ├── sparse │ │ │ ├── __init__.py │ │ │ ├── base_block.py │ │ │ ├── block_matrix.py │ │ │ ├── block_vector.py │ │ │ ├── mpi_block_matrix.py │ │ │ ├── mpi_block_vector.py │ │ │ └── tests │ │ │ │ ├── __init__.py │ │ │ │ ├── test_block_matrix.py │ │ │ │ ├── test_block_vector.py │ │ │ │ ├── test_intrinsics.py │ │ │ │ ├── test_mpi_block_matrix.py │ │ │ │ └── test_mpi_block_vector.py │ │ ├── src │ │ │ ├── AmplInterface.cpp │ │ │ ├── AmplInterface.hpp │ │ │ ├── AssertUtils.hpp │ │ │ ├── CMakeLists.txt │ │ │ ├── ma27Interface.cpp │ │ │ ├── ma57Interface.cpp │ │ │ └── tests │ │ │ │ ├── CMakeLists.txt │ │ │ │ ├── simple_nlp.nl │ │ │ │ └── simple_test.cpp │ │ └── tests │ │ │ └── __init__.py │ ├── pyros │ │ ├── CHANGELOG.txt │ │ ├── __init__.py │ │ ├── config.py │ │ ├── master_problem_methods.py │ │ ├── pyros.py │ │ ├── pyros_algorithm_methods.py │ │ ├── separation_problem_methods.py │ │ ├── solve_data.py │ │ ├── tests │ │ │ ├── __init__.py │ │ │ ├── test_config.py │ │ │ ├── test_grcs.py │ │ │ ├── test_master.py │ │ │ ├── test_preprocessor.py │ │ │ ├── test_separation.py │ │ │ └── test_uncertainty_sets.py │ │ ├── uncertainty_sets.py │ │ └── util.py │ ├── satsolver │ │ ├── __init__.py │ │ ├── satsolver.py │ │ └── tests │ │ │ ├── __init__.py │ │ │ └── test_satsolver.py │ ├── sensitivity_toolbox │ │ ├── __init__.py │ │ ├── examples │ │ │ ├── HIV_Transmission.py │ │ │ ├── __init__.py │ │ │ ├── feedbackController.py │ │ │ ├── parameter.py │ │ │ ├── parameter_kaug.py │ │ │ ├── rangeInequality.py │ │ │ └── rooney_biegler.py │ │ ├── k_aug.py │ │ ├── sens.py │ │ └── tests │ │ │ ├── __init__.py │ │ │ ├── test_k_aug_interface.py │ │ │ ├── test_sens.py │ │ │ └── test_sens_unit.py │ ├── simplification │ │ ├── __init__.py │ │ ├── build.py │ │ ├── ginac │ │ │ ├── __init__.py │ │ │ └── src │ │ │ │ ├── ginac_interface.cpp │ │ │ │ └── ginac_interface.hpp │ │ ├── plugins.py │ │ ├── simplify.py │ │ └── tests │ │ │ ├── __init__.py │ │ │ └── test_simplification.py │ ├── solver │ │ ├── __init__.py │ │ ├── common │ │ │ ├── __init__.py │ │ │ ├── base.py │ │ │ ├── config.py │ │ │ ├── factory.py │ │ │ ├── persistent.py │ │ │ ├── results.py │ │ │ ├── solution_loader.py │ │ │ └── util.py │ │ ├── plugins.py │ │ ├── solvers │ │ │ ├── __init__.py │ │ │ ├── gurobi_direct.py │ │ │ ├── gurobi_persistent.py │ │ │ ├── highs.py │ │ │ ├── ipopt.py │ │ │ └── sol_reader.py │ │ └── tests │ │ │ ├── __init__.py │ │ │ ├── solvers │ │ │ ├── __init__.py │ │ │ ├── test_gurobi_persistent.py │ │ │ ├── test_ipopt.py │ │ │ ├── test_sol_reader.py │ │ │ └── test_solvers.py │ │ │ └── unit │ │ │ ├── __init__.py │ │ │ ├── sol_files │ │ │ ├── __init__.py │ │ │ ├── bad_objno.sol │ │ │ ├── bad_objnoline.sol │ │ │ ├── bad_options.sol │ │ │ ├── conopt_optimal.sol │ │ │ ├── depr_solver.sol │ │ │ ├── iis_no_variable_values.sol │ │ │ ├── infeasible1.sol │ │ │ └── infeasible2.sol │ │ │ ├── test_base.py │ │ │ ├── test_config.py │ │ │ ├── test_results.py │ │ │ ├── test_solution.py │ │ │ └── test_util.py │ ├── trustregion │ │ ├── README.md │ │ ├── TRF.py │ │ ├── __init__.py │ │ ├── examples │ │ │ ├── __init__.py │ │ │ ├── example1.py │ │ │ └── example2.py │ │ ├── filter.py │ │ ├── interface.py │ │ ├── plugins.py │ │ ├── tests │ │ │ ├── __init__.py │ │ │ ├── test_TRF.py │ │ │ ├── test_examples.py │ │ │ ├── test_filter.py │ │ │ ├── test_interface.py │ │ │ └── test_util.py │ │ └── util.py │ └── viewer │ │ ├── README.md │ │ ├── __init__.py │ │ ├── main.ui │ │ ├── model_browser.py │ │ ├── model_browser.ui │ │ ├── model_select.py │ │ ├── model_select.ui │ │ ├── pyomo_viewer.py │ │ ├── qt.py │ │ ├── report.py │ │ ├── residual_table.py │ │ ├── residual_table.ui │ │ ├── tests │ │ ├── __init__.py │ │ ├── test_data_model_item.py │ │ ├── test_data_model_tree.py │ │ ├── test_qt.py │ │ └── test_report.py │ │ ├── ui.py │ │ └── ui_data.py ├── core │ ├── __init__.py │ ├── base │ │ ├── PyomoModel.py │ │ ├── __init__.py │ │ ├── action.py │ │ ├── block.py │ │ ├── blockutil.py │ │ ├── boolean_var.py │ │ ├── check.py │ │ ├── component.py │ │ ├── component_namer.py │ │ ├── component_order.py │ │ ├── componentuid.py │ │ ├── config.py │ │ ├── connector.py │ │ ├── constraint.py │ │ ├── disable_methods.py │ │ ├── enums.py │ │ ├── expression.py │ │ ├── external.py │ │ ├── global_set.py │ │ ├── indexed_component.py │ │ ├── indexed_component_slice.py │ │ ├── initializer.py │ │ ├── instance2dat.py │ │ ├── label.py │ │ ├── logical_constraint.py │ │ ├── matrix_constraint.py │ │ ├── misc.py │ │ ├── numvalue.py │ │ ├── objective.py │ │ ├── param.py │ │ ├── piecewise.py │ │ ├── range.py │ │ ├── reference.py │ │ ├── set.py │ │ ├── set_types.py │ │ ├── sos.py │ │ ├── suffix.py │ │ ├── symbol_map.py │ │ ├── symbolic.py │ │ ├── transformation.py │ │ ├── units_container.py │ │ ├── util.py │ │ └── var.py │ ├── beta │ │ ├── __init__.py │ │ ├── dict_objects.py │ │ └── list_objects.py │ ├── expr │ │ ├── __init__.py │ │ ├── base.py │ │ ├── boolean_value.py │ │ ├── calculus │ │ │ ├── __init__.py │ │ │ ├── derivatives.py │ │ │ ├── diff_with_pyomo.py │ │ │ └── diff_with_sympy.py │ │ ├── cnf_walker.py │ │ ├── compare.py │ │ ├── expr_common.py │ │ ├── expr_errors.py │ │ ├── logical_expr.py │ │ ├── ndarray.py │ │ ├── numeric_expr.py │ │ ├── numvalue.py │ │ ├── relational_expr.py │ │ ├── symbol_map.py │ │ ├── sympy_tools.py │ │ ├── taylor_series.py │ │ ├── template_expr.py │ │ └── visitor.py │ ├── kernel │ │ ├── __init__.py │ │ ├── base.py │ │ ├── block.py │ │ ├── conic.py │ │ ├── constraint.py │ │ ├── container_utils.py │ │ ├── dict_container.py │ │ ├── expression.py │ │ ├── heterogeneous_container.py │ │ ├── homogeneous_container.py │ │ ├── list_container.py │ │ ├── matrix_constraint.py │ │ ├── objective.py │ │ ├── parameter.py │ │ ├── piecewise_library │ │ │ ├── __init__.py │ │ │ ├── transforms.py │ │ │ ├── transforms_nd.py │ │ │ └── util.py │ │ ├── set_types.py │ │ ├── sos.py │ │ ├── suffix.py │ │ ├── tuple_container.py │ │ └── variable.py │ ├── plugins │ │ ├── __init__.py │ │ └── transform │ │ │ ├── __init__.py │ │ │ ├── add_slack_vars.py │ │ │ ├── discrete_vars.py │ │ │ ├── eliminate_fixed_vars.py │ │ │ ├── equality_transform.py │ │ │ ├── expand_connectors.py │ │ │ ├── hierarchy.py │ │ │ ├── logical_to_linear.py │ │ │ ├── lp_dual.py │ │ │ ├── model.py │ │ │ ├── nonnegative_transform.py │ │ │ ├── radix_linearization.py │ │ │ ├── relax_integrality.py │ │ │ ├── scaling.py │ │ │ ├── standard_form.py │ │ │ └── util.py │ ├── pyomoobject.py │ ├── staleflag.py │ ├── tests │ │ ├── __init__.py │ │ ├── data │ │ │ ├── __init__.py │ │ │ ├── baselines │ │ │ │ ├── diet.ini │ │ │ │ └── simple_odbc.ini │ │ │ └── test_odbc_ini.py │ │ ├── diet │ │ │ ├── __init__.py │ │ │ ├── baselines │ │ │ │ ├── diet1_pyomo_dat.jsn │ │ │ │ ├── diet1_pyomo_mdb.jsn │ │ │ │ └── diet1_pyomo_sqlite3.jsn │ │ │ └── test_diet.py │ │ ├── examples │ │ │ ├── __init__.py │ │ │ ├── _pmedian4.nl │ │ │ ├── pmedian.dat │ │ │ ├── pmedian.py │ │ │ ├── pmedian1.py │ │ │ ├── pmedian2.py │ │ │ ├── pmedian4.py │ │ │ ├── pmedian_concrete.py │ │ │ ├── test1.txt │ │ │ ├── test10.txt │ │ │ ├── test12.txt │ │ │ ├── test12b.json │ │ │ ├── test14.txt │ │ │ ├── test14b.json │ │ │ ├── test15b.json │ │ │ ├── test15b.yaml │ │ │ ├── test15c.json │ │ │ ├── test15c.yaml │ │ │ ├── test1b.json │ │ │ ├── test2.txt │ │ │ ├── test2b.json │ │ │ ├── test3.txt │ │ │ ├── test4b.json │ │ │ ├── test5.txt │ │ │ ├── test5b.json │ │ │ ├── test6.txt │ │ │ ├── test7.txt │ │ │ ├── test8b.json │ │ │ ├── test9b.json │ │ │ ├── test_amplbook2.py │ │ │ ├── test_kernel_examples.py │ │ │ ├── test_pyomo.py │ │ │ └── test_tutorials.py │ │ ├── transform │ │ │ ├── __init__.py │ │ │ ├── test_add_slacks.py │ │ │ ├── test_scaling.py │ │ │ └── test_transform.py │ │ └── unit │ │ │ ├── Book1.xlsm │ │ │ ├── Book1.xlsx │ │ │ ├── __init__.py │ │ │ ├── blend.txt │ │ │ ├── data1.tab │ │ │ ├── display.txt │ │ │ ├── display2.txt │ │ │ ├── dummy │ │ │ ├── empty.csv │ │ │ ├── empty.json │ │ │ ├── empty.tab │ │ │ ├── empty.xml │ │ │ ├── empty.yaml │ │ │ ├── kernel │ │ │ ├── __init__.py │ │ │ ├── test_block.py │ │ │ ├── test_component_map.py │ │ │ ├── test_component_set.py │ │ │ ├── test_conic.py │ │ │ ├── test_constraint.py │ │ │ ├── test_dict_container.py │ │ │ ├── test_expression.py │ │ │ ├── test_kernel.py │ │ │ ├── test_list_container.py │ │ │ ├── test_matrix_constraint.py │ │ │ ├── test_objective.py │ │ │ ├── test_parameter.py │ │ │ ├── test_piecewise.py │ │ │ ├── test_sos.py │ │ │ ├── test_suffix.py │ │ │ ├── test_tuple_container.py │ │ │ └── test_variable.py │ │ │ ├── solve1.txt │ │ │ ├── solve1a.txt │ │ │ ├── solve1b.txt │ │ │ ├── solve1c.txt │ │ │ ├── solve3.txt │ │ │ ├── solve5a.txt │ │ │ ├── solve6.txt │ │ │ ├── solve7.txt │ │ │ ├── solve_with_store1.txt │ │ │ ├── solve_with_store2.txt │ │ │ ├── solve_with_store3.txt │ │ │ ├── solve_with_store4.txt │ │ │ ├── test_action.py │ │ │ ├── test_block.py │ │ │ ├── test_block_model.py │ │ │ ├── test_bounds.py │ │ │ ├── test_check.py │ │ │ ├── test_compare.py │ │ │ ├── test_component.py │ │ │ ├── test_componentuid.py │ │ │ ├── test_con.py │ │ │ ├── test_concrete.py │ │ │ ├── test_connector.py │ │ │ ├── test_deprecation.py │ │ │ ├── test_derivs.py │ │ │ ├── test_dict_objects.py │ │ │ ├── test_disable_methods.py │ │ │ ├── test_enums.py │ │ │ ├── test_expr5.txt │ │ │ ├── test_expr_misc.py │ │ │ ├── test_expr_numpy.py │ │ │ ├── test_expression.py │ │ │ ├── test_external.py │ │ │ ├── test_indexed.py │ │ │ ├── test_indexed_slice.py │ │ │ ├── test_initializer.py │ │ │ ├── test_kernel_register_numpy_types.py │ │ │ ├── test_labelers.py │ │ │ ├── test_list_objects.py │ │ │ ├── test_logical_constraint.py │ │ │ ├── test_logical_expr_expanded.py │ │ │ ├── test_logical_to_linear.py │ │ │ ├── test_lp_dual.py │ │ │ ├── test_matrix_constraint.py │ │ │ ├── test_misc.py │ │ │ ├── test_model.py │ │ │ ├── test_mutable.py │ │ │ ├── test_numeric_expr.py │ │ │ ├── test_numeric_expr_api.py │ │ │ ├── test_numeric_expr_dispatcher.py │ │ │ ├── test_numeric_expr_zerofilter.py │ │ │ ├── test_numpy_expr.py │ │ │ ├── test_numvalue.py │ │ │ ├── test_obj.py │ │ │ ├── test_param.py │ │ │ ├── test_pickle.py │ │ │ ├── test_pickle4_baseline.txt │ │ │ ├── test_piecewise.py │ │ │ ├── test_preprocess.py │ │ │ ├── test_range.py │ │ │ ├── test_reference.py │ │ │ ├── test_relational_expr.py │ │ │ ├── test_relational_expr_dispatcher.py │ │ │ ├── test_set.py │ │ │ ├── test_sets.py │ │ │ ├── test_smap.py │ │ │ ├── test_sos.py │ │ │ ├── test_sos_v2.py │ │ │ ├── test_suffix.py │ │ │ ├── test_symbol_map.py │ │ │ ├── test_symbolic.py │ │ │ ├── test_taylor_series.py │ │ │ ├── test_template_expr.py │ │ │ ├── test_uninstantiated_model.txt │ │ │ ├── test_units.py │ │ │ ├── test_var.py │ │ │ ├── test_var_set_bounds.py │ │ │ ├── test_visitor.py │ │ │ ├── test_xfrm_discrete_vars.py │ │ │ ├── uninstantiated_model_linear.py │ │ │ ├── uninstantiated_model_quadratic.py │ │ │ ├── varpprint.txt │ │ │ ├── vars_dat_file.dat │ │ │ ├── vars_dat_file_empty.dat │ │ │ ├── vars_dat_file_missing.dat │ │ │ └── vars_dat_file_nonint.dat │ └── util.py ├── dae │ ├── __init__.py │ ├── contset.py │ ├── diffvar.py │ ├── flatten.py │ ├── initialization.py │ ├── integral.py │ ├── misc.py │ ├── plugins │ │ ├── __init__.py │ │ ├── colloc.py │ │ └── finitedifference.py │ ├── set_utils.py │ ├── simulator.py │ ├── tests │ │ ├── __init__.py │ │ ├── simulator_dae_example.casadi.json │ │ ├── simulator_dae_multindex_example.casadi.json │ │ ├── simulator_ode_example.casadi.json │ │ ├── simulator_ode_example.scipy.json │ │ ├── simulator_ode_multindex_example.casadi.json │ │ ├── simulator_ode_multindex_example.scipy.json │ │ ├── test_colloc.py │ │ ├── test_contset.py │ │ ├── test_diffvar.py │ │ ├── test_finite_diff.py │ │ ├── test_flatten.py │ │ ├── test_initialization.py │ │ ├── test_integral.py │ │ ├── test_misc.py │ │ ├── test_set_utils.py │ │ └── test_simulator.py │ └── utilities.py ├── dataportal │ ├── DataPortal.py │ ├── TableData.py │ ├── __init__.py │ ├── factory.py │ ├── parse_datacmds.py │ ├── plugins │ │ ├── __init__.py │ │ ├── csv_table.py │ │ ├── datacommands.py │ │ ├── db_table.py │ │ ├── json_dict.py │ │ ├── sheet.py │ │ ├── text.py │ │ └── xml_table.py │ ├── process_data.py │ ├── tester │ └── tests │ │ ├── Book1.xls │ │ ├── __init__.py │ │ ├── data1.dat │ │ ├── data11.dat │ │ ├── data12.dat │ │ ├── data13.dat │ │ ├── data14.dat │ │ ├── data15.dat │ │ ├── data16.dat │ │ ├── data17.dat │ │ ├── data2.dat │ │ ├── data3.dat │ │ ├── data4.dat │ │ ├── data5.dat │ │ ├── data6.dat │ │ ├── data7.dat │ │ ├── data8.dat │ │ ├── data_types.dat │ │ ├── param1.baseline.csv │ │ ├── param1.baseline.json │ │ ├── param1.baseline.tab │ │ ├── param1.baseline.xml │ │ ├── param1.baseline.yaml │ │ ├── param2.baseline.csv │ │ ├── param2.baseline.json │ │ ├── param2.baseline.tab │ │ ├── param2.baseline.xml │ │ ├── param2.baseline.yaml │ │ ├── param3.baseline.csv │ │ ├── param3.baseline.json │ │ ├── param3.baseline.tab │ │ ├── param3.baseline.xml │ │ ├── param3.baseline.yaml │ │ ├── param4.baseline.csv │ │ ├── param4.baseline.json │ │ ├── param4.baseline.tab │ │ ├── param4.baseline.xml │ │ ├── param4.baseline.yaml │ │ ├── set1.baseline.csv │ │ ├── set1.baseline.json │ │ ├── set1.baseline.tab │ │ ├── set1.baseline.xml │ │ ├── set1.baseline.yaml │ │ ├── set2.baseline.csv │ │ ├── set2.baseline.json │ │ ├── set2.baseline.tab │ │ ├── set2.baseline.xml │ │ ├── set2.baseline.yaml │ │ ├── test_dat_parser.py │ │ └── test_dataportal.py ├── duality │ ├── __init__.py │ ├── collect.py │ ├── lagrangian_dual.py │ ├── plugins.py │ └── tests │ │ ├── __init__.py │ │ ├── t1.txt │ │ ├── t1_linear_dual.lp │ │ ├── t5.txt │ │ ├── t5_linear_dual.lp │ │ └── test_linear_dual.py ├── environ │ ├── __init__.py │ └── tests │ │ ├── __init__.py │ │ ├── standalone_minimal_pyomo_driver.py │ │ ├── test_environ.py │ │ └── test_package_layout.py ├── future.py ├── gdp │ ├── __init__.py │ ├── basic_step.py │ ├── disjunct.py │ ├── plugins │ │ ├── __init__.py │ │ ├── between_steps.py │ │ ├── bigm.py │ │ ├── bigm_mixin.py │ │ ├── bilinear.py │ │ ├── binary_multiplication.py │ │ ├── bound_pretransformation.py │ │ ├── cuttingplane.py │ │ ├── fix_disjuncts.py │ │ ├── gdp_to_mip_transformation.py │ │ ├── gdp_var_mover.py │ │ ├── hull.py │ │ ├── multiple_bigm.py │ │ ├── partition_disjuncts.py │ │ └── transform_current_disjunctive_state.py │ ├── tests │ │ ├── __init__.py │ │ ├── common_tests.py │ │ ├── jobshop_large.txt │ │ ├── jobshop_large_bigm.lp │ │ ├── jobshop_large_cuttingplane.lp │ │ ├── jobshop_large_hull.lp │ │ ├── jobshop_large_varmover.txt │ │ ├── jobshop_small.txt │ │ ├── jobshop_small_bigm.lp │ │ ├── jobshop_small_cuttingplane.lp │ │ ├── jobshop_small_hull.lp │ │ ├── models.py │ │ ├── test_basic_step.py │ │ ├── test_bigm.py │ │ ├── test_binary_multiplication.py │ │ ├── test_bound_pretransformation.py │ │ ├── test_cuttingplane.py │ │ ├── test_disjunct.py │ │ ├── test_fix_disjuncts.py │ │ ├── test_gdp.py │ │ ├── test_gdp_reclassification_error.py │ │ ├── test_hull.py │ │ ├── test_mbigm.py │ │ ├── test_partition_disjuncts.py │ │ ├── test_reclassify.py │ │ ├── test_transform_current_disjunctive_state.py │ │ └── test_util.py │ ├── transformed_disjunct.py │ └── util.py ├── kernel │ ├── __init__.py │ └── util.py ├── mpec │ ├── __init__.py │ ├── complementarity.py │ ├── plugins │ │ ├── __init__.py │ │ ├── mpec1.py │ │ ├── mpec2.py │ │ ├── mpec3.py │ │ ├── mpec4.py │ │ ├── pathampl.py │ │ ├── solver1.py │ │ └── solver2.py │ └── tests │ │ ├── __init__.py │ │ ├── bard1.txt │ │ ├── cov1_None.txt │ │ ├── cov1_mpec.nl.txt │ │ ├── cov1_mpec.simple_disjunction.txt │ │ ├── cov1_mpec.simple_nonlinear.txt │ │ ├── cov1_mpec.standard_form.txt │ │ ├── cov1_nlxfrm.nl │ │ ├── cov2_None.txt │ │ ├── cov2_mpec.nl.txt │ │ ├── cov2_mpec.simple_disjunction.txt │ │ ├── cov2_mpec.simple_nonlinear.txt │ │ ├── cov2_mpec.standard_form.txt │ │ ├── cov2_nlxfrm.nl │ │ ├── cov3_None.txt │ │ ├── cov3_mpec.nl.txt │ │ ├── cov3_mpec.simple_disjunction.txt │ │ ├── cov3_mpec.simple_nonlinear.txt │ │ ├── cov3_mpec.standard_form.txt │ │ ├── cov3_nlxfrm.nl │ │ ├── cov4_None.txt │ │ ├── cov4_mpec.nl.txt │ │ ├── cov4_mpec.simple_disjunction.txt │ │ ├── cov4_mpec.simple_nonlinear.txt │ │ ├── cov4_mpec.standard_form.txt │ │ ├── cov4_nlxfrm.nl │ │ ├── cov8_None.txt │ │ ├── cov8_mpec.nl.txt │ │ ├── cov8_mpec.simple_disjunction.txt │ │ ├── cov8_mpec.simple_nonlinear.txt │ │ ├── cov8_mpec.standard_form.txt │ │ ├── cov8_nlxfrm.nl │ │ ├── linear1.txt │ │ ├── list1_None.txt │ │ ├── list1_mpec.nl.txt │ │ ├── list1_mpec.simple_disjunction.txt │ │ ├── list1_mpec.simple_nonlinear.txt │ │ ├── list1_mpec.standard_form.txt │ │ ├── list1_nlxfrm.nl │ │ ├── list2_None.txt │ │ ├── list2_mpec.nl.txt │ │ ├── list2_mpec.simple_disjunction.txt │ │ ├── list2_mpec.simple_nonlinear.txt │ │ ├── list2_mpec.standard_form.txt │ │ ├── list2_nlxfrm.nl │ │ ├── list5_None.txt │ │ ├── list5_mpec.nl.txt │ │ ├── list5_mpec.simple_disjunction.txt │ │ ├── list5_mpec.simple_nonlinear.txt │ │ ├── list5_mpec.standard_form.txt │ │ ├── list5_nlxfrm.nl │ │ ├── munson1a.txt │ │ ├── munson1b.txt │ │ ├── munson1c.txt │ │ ├── munson1d.txt │ │ ├── scholtes4.txt │ │ ├── t10_None.txt │ │ ├── t10_mpec.nl.txt │ │ ├── t10_mpec.simple_disjunction.txt │ │ ├── t10_mpec.simple_nonlinear.txt │ │ ├── t10_mpec.standard_form.txt │ │ ├── t10_nlxfrm.nl │ │ ├── t11_None.txt │ │ ├── t11_mpec.nl.txt │ │ ├── t11_mpec.simple_disjunction.txt │ │ ├── t11_mpec.simple_nonlinear.txt │ │ ├── t11_mpec.standard_form.txt │ │ ├── t11_nlxfrm.nl │ │ ├── t11_nlxfrm.nl_v2 │ │ ├── t12_None.txt │ │ ├── t12_mpec.nl.txt │ │ ├── t12_mpec.simple_disjunction.txt │ │ ├── t12_mpec.simple_nonlinear.txt │ │ ├── t12_mpec.standard_form.txt │ │ ├── t12_nlxfrm.nl │ │ ├── t12_nlxfrm.nl_v2 │ │ ├── t13_None.txt │ │ ├── t13_mpec.nl.txt │ │ ├── t13_mpec.simple_disjunction.txt │ │ ├── t13_mpec.simple_nonlinear.txt │ │ ├── t13_mpec.standard_form.txt │ │ ├── t13_nlxfrm.nl │ │ ├── t1a_None.txt │ │ ├── t1a_mpec.nl.txt │ │ ├── t1a_mpec.simple_disjunction.txt │ │ ├── t1a_mpec.simple_nonlinear.txt │ │ ├── t1a_mpec.standard_form.txt │ │ ├── t1a_nlxfrm.nl │ │ ├── t1b_None.txt │ │ ├── t1b_mpec.nl.txt │ │ ├── t1b_mpec.simple_disjunction.txt │ │ ├── t1b_mpec.simple_nonlinear.txt │ │ ├── t1b_mpec.standard_form.txt │ │ ├── t1b_nlxfrm.nl │ │ ├── t1c_None.txt │ │ ├── t1c_mpec.nl.txt │ │ ├── t1c_mpec.simple_disjunction.txt │ │ ├── t1c_mpec.simple_nonlinear.txt │ │ ├── t1c_mpec.standard_form.txt │ │ ├── t1c_nlxfrm.nl │ │ ├── t2a_None.txt │ │ ├── t2a_mpec.nl.txt │ │ ├── t2a_mpec.simple_disjunction.txt │ │ ├── t2a_mpec.simple_nonlinear.txt │ │ ├── t2a_mpec.standard_form.txt │ │ ├── t2a_nlxfrm.nl │ │ ├── t2a_nlxfrm.nl_v2 │ │ ├── t2b_None.txt │ │ ├── t2b_mpec.nl.txt │ │ ├── t2b_mpec.simple_disjunction.txt │ │ ├── t2b_mpec.simple_nonlinear.txt │ │ ├── t2b_mpec.standard_form.txt │ │ ├── t2b_nlxfrm.nl │ │ ├── t2b_nlxfrm.nl_v2 │ │ ├── t3a_None.txt │ │ ├── t3a_mpec.nl.txt │ │ ├── t3a_mpec.simple_disjunction.txt │ │ ├── t3a_mpec.simple_nonlinear.txt │ │ ├── t3a_mpec.standard_form.txt │ │ ├── t3a_nlxfrm.nl │ │ ├── t3b_None.txt │ │ ├── t3b_mpec.nl.txt │ │ ├── t3b_mpec.simple_disjunction.txt │ │ ├── t3b_mpec.simple_nonlinear.txt │ │ ├── t3b_mpec.standard_form.txt │ │ ├── t3b_nlxfrm.nl │ │ ├── t4a_None.txt │ │ ├── t4a_mpec.nl.txt │ │ ├── t4a_mpec.simple_disjunction.txt │ │ ├── t4a_mpec.simple_nonlinear.txt │ │ ├── t4a_mpec.standard_form.txt │ │ ├── t4a_nlxfrm.nl │ │ ├── t4b_None.txt │ │ ├── t4b_mpec.nl.txt │ │ ├── t4b_mpec.simple_disjunction.txt │ │ ├── t4b_mpec.simple_nonlinear.txt │ │ ├── t4b_mpec.standard_form.txt │ │ ├── t4b_nlxfrm.nl │ │ ├── t4c_None.txt │ │ ├── t4c_mpec.nl.txt │ │ ├── t4c_mpec.simple_disjunction.txt │ │ ├── t4c_mpec.simple_nonlinear.txt │ │ ├── t4c_mpec.standard_form.txt │ │ ├── t4c_nlxfrm.nl │ │ ├── t4d_None.txt │ │ ├── t4d_mpec.nl.txt │ │ ├── t4d_mpec.simple_disjunction.txt │ │ ├── t4d_mpec.simple_nonlinear.txt │ │ ├── t4d_mpec.standard_form.txt │ │ ├── t4d_nlxfrm.nl │ │ ├── t9_None.txt │ │ ├── t9_mpec.nl.txt │ │ ├── t9_mpec.simple_disjunction.txt │ │ ├── t9_mpec.simple_nonlinear.txt │ │ ├── t9_mpec.standard_form.txt │ │ ├── t9_nlxfrm.nl │ │ ├── test_complementarity.py │ │ ├── test_minlp.py │ │ ├── test_nlp.py │ │ └── test_path.py ├── neos │ ├── __init__.py │ ├── kestrel.py │ ├── plugins │ │ ├── NEOS.py │ │ ├── __init__.py │ │ └── kestrel_plugin.py │ └── tests │ │ ├── __init__.py │ │ ├── model_min_lp.py │ │ └── test_neos.py ├── network │ ├── __init__.py │ ├── arc.py │ ├── decomposition.py │ ├── foqus_graph.py │ ├── plugins │ │ ├── __init__.py │ │ └── expand_arcs.py │ ├── port.py │ ├── tests │ │ ├── __init__.py │ │ ├── test_arc.py │ │ ├── test_decomposition.py │ │ └── test_port.py │ └── util.py ├── opt │ ├── __init__.py │ ├── base │ │ ├── __init__.py │ │ ├── convert.py │ │ ├── error.py │ │ ├── formats.py │ │ ├── opt_config.py │ │ ├── problem.py │ │ ├── results.py │ │ └── solvers.py │ ├── parallel │ │ ├── __init__.py │ │ ├── async_solver.py │ │ ├── local.py │ │ └── manager.py │ ├── plugins │ │ ├── __init__.py │ │ ├── driver.py │ │ ├── res.py │ │ └── sol.py │ ├── problem │ │ ├── __init__.py │ │ └── ampl.py │ ├── results │ │ ├── __init__.py │ │ ├── container.py │ │ ├── problem.py │ │ ├── results_.py │ │ ├── solution.py │ │ └── solver.py │ ├── solver │ │ ├── __init__.py │ │ ├── ilmcmd.py │ │ └── shellcmd.py │ └── tests │ │ ├── __init__.py │ │ ├── base │ │ ├── __init__.py │ │ ├── bad_objno.sol │ │ ├── bad_objnoline.sol │ │ ├── bad_options.sol │ │ ├── conopt_optimal.sol │ │ ├── iis_no_variable_values.sol │ │ ├── infeasible1.sol │ │ ├── infeasible2.sol │ │ ├── read_solution1.txt │ │ ├── soln_pprint2.txt │ │ ├── test1.mps │ │ ├── test2.lp │ │ ├── test3.baseline.lp │ │ ├── test3.baseline.mps │ │ ├── test3.baseline.nl │ │ ├── test3.baseline.out │ │ ├── test3.mod │ │ ├── test3a.dat │ │ ├── test3a.mod │ │ ├── test4.nl │ │ ├── test4_sol.jsn │ │ ├── test4_sol.sol │ │ ├── test4_sol.txt │ │ ├── test_ampl.py │ │ ├── test_convert.py │ │ ├── test_factory.py │ │ ├── test_sol.py │ │ ├── test_soln.py │ │ └── test_solver.py │ │ └── solver │ │ ├── __init__.py │ │ ├── exe_dir │ │ ├── file_is_executable │ │ └── file_not_executable │ │ └── test_shellcmd.py ├── repn │ ├── __init__.py │ ├── ampl.py │ ├── beta │ │ ├── __init__.py │ │ └── matrix.py │ ├── linear.py │ ├── linear_template.py │ ├── parameterized_linear.py │ ├── parameterized_quadratic.py │ ├── plugins │ │ ├── __init__.py │ │ ├── ampl │ │ │ ├── __init__.py │ │ │ └── ampl_.py │ │ ├── baron_writer.py │ │ ├── cpxlp.py │ │ ├── gams_writer.py │ │ ├── lp_writer.py │ │ ├── mps.py │ │ ├── nl_writer.py │ │ ├── parameterized_standard_form.py │ │ └── standard_form.py │ ├── quadratic.py │ ├── standard_aux.py │ ├── standard_repn.py │ ├── tests │ │ ├── __init__.py │ │ ├── ampl │ │ │ ├── EXPORT_suffixes_float.baseline.nl │ │ │ ├── EXPORT_suffixes_int.baseline.nl │ │ │ ├── __init__.py │ │ │ ├── external_expression_constant.nl.baseline │ │ │ ├── external_expression_fixed.nl.baseline │ │ │ ├── external_expression_fixed.nl_v2.baseline │ │ │ ├── external_expression_partial_fixed.nl.baseline │ │ │ ├── external_expression_partial_fixed.nl_v2.baseline │ │ │ ├── external_expression_variable.nl.baseline │ │ │ ├── external_expression_variable.nl_v2.baseline │ │ │ ├── helper.py │ │ │ ├── small1.ampl.col │ │ │ ├── small1.ampl.nl │ │ │ ├── small1.ampl.row │ │ │ ├── small1.pyomo.nl │ │ │ ├── small10.ampl.col │ │ │ ├── small10.ampl.nl │ │ │ ├── small10.ampl.row │ │ │ ├── small10.pyomo.nl │ │ │ ├── small10_testCase.mod │ │ │ ├── small10_testCase.py │ │ │ ├── small11.ampl.col │ │ │ ├── small11.ampl.nl │ │ │ ├── small11.ampl.row │ │ │ ├── small11.pyomo.nl │ │ │ ├── small11_testCase.mod │ │ │ ├── small11_testCase.py │ │ │ ├── small12.ampl.col │ │ │ ├── small12.ampl.nl │ │ │ ├── small12.ampl.row │ │ │ ├── small12.pyomo.nl │ │ │ ├── small12_testCase.mod │ │ │ ├── small12_testCase.py │ │ │ ├── small13.ampl.col │ │ │ ├── small13.ampl.nl │ │ │ ├── small13.ampl.row │ │ │ ├── small13.pyomo.nl │ │ │ ├── small13_testCase.mod │ │ │ ├── small13_testCase.py │ │ │ ├── small14.ampl.col │ │ │ ├── small14.ampl.nl │ │ │ ├── small14.ampl.row │ │ │ ├── small14.pyomo.nl │ │ │ ├── small14_testCase.mod │ │ │ ├── small14_testCase.py │ │ │ ├── small15.ampl.col │ │ │ ├── small15.ampl.nl │ │ │ ├── small15.ampl.row │ │ │ ├── small15.pyomo.nl │ │ │ ├── small15_testCase.py │ │ │ ├── small1_testCase.mod │ │ │ ├── small1_testCase.py │ │ │ ├── small2.ampl.col │ │ │ ├── small2.ampl.nl │ │ │ ├── small2.ampl.row │ │ │ ├── small2.pyomo.nl │ │ │ ├── small2_testCase.mod │ │ │ ├── small2_testCase.py │ │ │ ├── small3.ampl.col │ │ │ ├── small3.ampl.nl │ │ │ ├── small3.ampl.row │ │ │ ├── small3.pyomo.nl │ │ │ ├── small3_testCase.mod │ │ │ ├── small3_testCase.py │ │ │ ├── small4.ampl.col │ │ │ ├── small4.ampl.nl │ │ │ ├── small4.ampl.row │ │ │ ├── small4.pyomo.nl │ │ │ ├── small4_testCase.mod │ │ │ ├── small4_testCase.py │ │ │ ├── small5.ampl.col │ │ │ ├── small5.ampl.nl │ │ │ ├── small5.ampl.row │ │ │ ├── small5.pyomo.nl │ │ │ ├── small5_testCase.mod │ │ │ ├── small5_testCase.py │ │ │ ├── small6.ampl.col │ │ │ ├── small6.ampl.nl │ │ │ ├── small6.ampl.row │ │ │ ├── small6.pyomo.nl │ │ │ ├── small6_testCase.mod │ │ │ ├── small6_testCase.py │ │ │ ├── small7.ampl.col │ │ │ ├── small7.ampl.nl │ │ │ ├── small7.ampl.row │ │ │ ├── small7.pyomo.nl │ │ │ ├── small7_testCase.mod │ │ │ ├── small7_testCase.py │ │ │ ├── small8.ampl.col │ │ │ ├── small8.ampl.nl │ │ │ ├── small8.ampl.row │ │ │ ├── small8.pyomo.nl │ │ │ ├── small8_testCase.mod │ │ │ ├── small8_testCase.py │ │ │ ├── small9.ampl.col │ │ │ ├── small9.ampl.nl │ │ │ ├── small9.ampl.row │ │ │ ├── small9.pyomo.nl │ │ │ ├── small9_testCase.mod │ │ │ ├── small9_testCase.py │ │ │ ├── test_ampl_comparison.py │ │ │ ├── test_ampl_nl.py │ │ │ ├── test_ampl_repn.py │ │ │ ├── test_nlv2.py │ │ │ ├── test_suffixes.py │ │ │ └── var_on_deactivated_block.nl.baseline │ │ ├── baron │ │ │ ├── __init__.py │ │ │ ├── branching_priorities.bar.baseline │ │ │ ├── exponential_NPV.bar.baseline │ │ │ ├── no_column_ordering_linear.bar.baseline │ │ │ ├── no_column_ordering_quadratic.bar.baseline │ │ │ ├── no_row_ordering.bar.baseline │ │ │ ├── small1.pyomo.bar │ │ │ ├── small10.pyomo.bar │ │ │ ├── small11.pyomo.bar │ │ │ ├── small12.pyomo.bar │ │ │ ├── small13.pyomo.bar │ │ │ ├── small14a.pyomo.bar │ │ │ ├── small14a_testCase.py │ │ │ ├── small15.pyomo.bar │ │ │ ├── small2.pyomo.bar │ │ │ ├── small3.pyomo.bar │ │ │ ├── small4.pyomo.bar │ │ │ ├── small5.pyomo.bar │ │ │ ├── small6.pyomo.bar │ │ │ ├── small7.pyomo.bar │ │ │ ├── small8.pyomo.bar │ │ │ ├── small9.pyomo.bar │ │ │ ├── test_baron.py │ │ │ ├── test_baron_comparison.py │ │ │ ├── var_on_deactivated_block.bar.baseline │ │ │ ├── var_on_nonblock.bar.baseline │ │ │ └── var_on_other_model.bar.baseline │ │ ├── cpxlp │ │ │ ├── __init__.py │ │ │ ├── column_ordering_linear.lp.baseline │ │ │ ├── column_ordering_linear.lp_v2.baseline │ │ │ ├── column_ordering_quadratic.lp.baseline │ │ │ ├── column_ordering_quadratic.lp_v2.baseline │ │ │ ├── linear_var_on_other_model.lp_v2.baseline │ │ │ ├── no_column_ordering_linear.lp.baseline │ │ │ ├── no_column_ordering_linear.lp_v2.baseline │ │ │ ├── no_column_ordering_quadratic.lp.baseline │ │ │ ├── no_column_ordering_quadratic.lp_v2.baseline │ │ │ ├── no_row_ordering.lp.baseline │ │ │ ├── no_row_ordering.lp_v2.baseline │ │ │ ├── quadratic_var_on_other_model.lp_v2.baseline │ │ │ ├── row_ordering.lp.baseline │ │ │ ├── row_ordering.lp_v2.baseline │ │ │ ├── test_cpxlp.py │ │ │ ├── test_lpv2.py │ │ │ ├── var_on_deactivated_block.lp.baseline │ │ │ ├── var_on_deactivated_block.lp_v2.baseline │ │ │ └── var_on_nonblock.lp_v2.baseline │ │ ├── diffutils.py │ │ ├── gams │ │ │ ├── __init__.py │ │ │ ├── fixed_linear_expr.gams.baseline │ │ │ ├── no_column_ordering_linear.gams.baseline │ │ │ ├── no_column_ordering_quadratic.gams.baseline │ │ │ ├── no_row_ordering.gams.baseline │ │ │ ├── small1.pyomo.gms │ │ │ ├── small10.pyomo.gms │ │ │ ├── small11.pyomo.gms │ │ │ ├── small12.pyomo.gms │ │ │ ├── small13.pyomo.gms │ │ │ ├── small14a.pyomo.gms │ │ │ ├── small14a_testCase.py │ │ │ ├── small15.pyomo.gms │ │ │ ├── small2.pyomo.gms │ │ │ ├── small3.pyomo.gms │ │ │ ├── small4.pyomo.gms │ │ │ ├── small5.pyomo.gms │ │ │ ├── small6.pyomo.gms │ │ │ ├── small7.pyomo.gms │ │ │ ├── small8.pyomo.gms │ │ │ ├── small9.pyomo.gms │ │ │ ├── test_gams.py │ │ │ ├── test_gams_comparison.py │ │ │ ├── var_on_deactivated_block.gams.baseline │ │ │ ├── var_on_nonblock.gams.baseline │ │ │ └── var_on_other_model.gams.baseline │ │ ├── lp_diff.py │ │ ├── mps │ │ │ ├── __init__.py │ │ │ ├── column_ordering_linear.mps.baseline │ │ │ ├── column_ordering_quadratic.mps.baseline │ │ │ ├── integer_variable_declaration_with_marker.mps.baseline │ │ │ ├── knapsack_problem_binary_variable_declaration_with_marker.mps.baseline │ │ │ ├── no_column_ordering_linear.mps.baseline │ │ │ ├── no_column_ordering_quadratic.mps.baseline │ │ │ ├── no_row_ordering.mps.baseline │ │ │ ├── row_ordering.mps.baseline │ │ │ └── test_mps.py │ │ ├── nl_diff.py │ │ ├── test_linear.py │ │ ├── test_parameterized_linear.py │ │ ├── test_parameterized_quadratic.py │ │ ├── test_parameterized_standard_form.py │ │ ├── test_plugins.py │ │ ├── test_quadratic.py │ │ ├── test_standard.py │ │ ├── test_standard_form.py │ │ └── test_util.py │ └── util.py ├── scripting │ ├── __init__.py │ ├── commands.py │ ├── convert.py │ ├── driver_help.py │ ├── interface.py │ ├── plugins │ │ ├── __init__.py │ │ ├── build_ext.py │ │ ├── convert.py │ │ ├── download.py │ │ ├── extras.py │ │ └── solve.py │ ├── pyomo_command.py │ ├── pyomo_main.py │ ├── pyomo_parser.py │ ├── solve_config.py │ ├── tests │ │ ├── __init__.py │ │ └── test_cmds.py │ └── util.py ├── solvers │ ├── __init__.py │ ├── amplfunc_merge.py │ ├── mockmip.py │ ├── plugins │ │ ├── __init__.py │ │ ├── converter │ │ │ ├── __init__.py │ │ │ ├── ampl.py │ │ │ ├── glpsol.py │ │ │ ├── model.py │ │ │ └── pico.py │ │ └── solvers │ │ │ ├── ASL.py │ │ │ ├── BARON.py │ │ │ ├── CBCplugin.py │ │ │ ├── CONOPT.py │ │ │ ├── CPLEX.py │ │ │ ├── GAMS.py │ │ │ ├── GLPK.py │ │ │ ├── GUROBI.py │ │ │ ├── GUROBI_RUN.py │ │ │ ├── IPOPT.py │ │ │ ├── KNITROAMPL.py │ │ │ ├── SAS.py │ │ │ ├── SCIPAMPL.py │ │ │ ├── XPRESS.py │ │ │ ├── __init__.py │ │ │ ├── cplex_direct.py │ │ │ ├── cplex_persistent.py │ │ │ ├── direct_or_persistent_solver.py │ │ │ ├── direct_solver.py │ │ │ ├── gurobi_direct.py │ │ │ ├── gurobi_persistent.py │ │ │ ├── mosek_direct.py │ │ │ ├── mosek_persistent.py │ │ │ ├── persistent_solver.py │ │ │ ├── pywrapper.py │ │ │ ├── xpress_direct.py │ │ │ └── xpress_persistent.py │ ├── tests │ │ ├── README.txt │ │ ├── __init__.py │ │ ├── checks │ │ │ ├── __init__.py │ │ │ ├── data │ │ │ │ ├── cbc │ │ │ │ │ ├── fix_parsing_bug.out │ │ │ │ │ ├── fix_parsing_bug.out.soln │ │ │ │ │ ├── intermediate_non_integer.out │ │ │ │ │ ├── intermediate_non_integer.out.soln │ │ │ │ │ ├── max_evaluations.out │ │ │ │ │ ├── max_evaluations.out.soln │ │ │ │ │ ├── max_solutions.out │ │ │ │ │ ├── max_solutions.out.soln │ │ │ │ │ ├── max_time_limit.out │ │ │ │ │ ├── max_time_limit.out.soln │ │ │ │ │ ├── optimal.out │ │ │ │ │ ├── optimal.out.soln │ │ │ │ │ ├── within_gap_tolerance.out │ │ │ │ │ └── within_gap_tolerance.out.soln │ │ │ │ ├── fix_parsing_bug.out.lp │ │ │ │ ├── intermediate_non_integer.out.lp │ │ │ │ ├── max_evaluations.out.lp │ │ │ │ ├── max_solutions.out.lp │ │ │ │ ├── max_time_limit.out.lp │ │ │ │ ├── optimal.out.lp │ │ │ │ ├── test5_timeout_cbc.txt │ │ │ │ ├── test5_timeout_cbc_gap.txt │ │ │ │ └── within_gap_tolerance.out.lp │ │ │ ├── test_BARON.py │ │ │ ├── test_CBCplugin.py │ │ │ ├── test_CPLEXDirect.py │ │ │ ├── test_CPLEXPersistent.py │ │ │ ├── test_GAMS.py │ │ │ ├── test_KNITROAMPL.py │ │ │ ├── test_MOSEKDirect.py │ │ │ ├── test_MOSEKPersistent.py │ │ │ ├── test_SAS.py │ │ │ ├── test_amplfunc_merge.py │ │ │ ├── test_cbc.py │ │ │ ├── test_cplex.py │ │ │ ├── test_gurobi.py │ │ │ ├── test_gurobi_direct.py │ │ │ ├── test_gurobi_persistent.py │ │ │ ├── test_ipopt.py │ │ │ ├── test_no_solution_behavior.py │ │ │ ├── test_pickle.py │ │ │ ├── test_writers.py │ │ │ └── test_xpress_persistent.py │ │ ├── mip │ │ │ ├── __init__.py │ │ │ ├── asl │ │ │ │ ├── test4.out │ │ │ │ ├── test4.sol │ │ │ │ └── test4.soln │ │ │ ├── bell3a.mps │ │ │ ├── cbc │ │ │ │ ├── prod.out │ │ │ │ ├── prod.soln │ │ │ │ ├── test1.out │ │ │ │ ├── test1.soln │ │ │ │ ├── test2.out │ │ │ │ ├── test2.soln │ │ │ │ ├── test4.out │ │ │ │ ├── test4.sol │ │ │ │ └── test5.out │ │ │ ├── cplex │ │ │ │ ├── test1.cplex.sol │ │ │ │ ├── test1.out │ │ │ │ ├── test2.cplex.sol │ │ │ │ ├── test2.out │ │ │ │ ├── tmp0pico_convert.out │ │ │ │ └── tmp0pico_convert.soln │ │ │ ├── diet.mod │ │ │ ├── diet_glpk.txt │ │ │ ├── glpk │ │ │ │ ├── diet.out │ │ │ │ ├── diet.soln │ │ │ │ ├── prod.out │ │ │ │ ├── prod.soln │ │ │ │ ├── test1.out │ │ │ │ ├── test1.soln │ │ │ │ ├── test2.out │ │ │ │ ├── test2.soln │ │ │ │ ├── test4.out │ │ │ │ ├── test4.soln │ │ │ │ ├── test5.out │ │ │ │ └── test5.soln │ │ │ ├── model.py │ │ │ ├── prod.mod │ │ │ ├── prod_cbc.txt │ │ │ ├── prod_glpk.txt │ │ │ ├── sisser.pyomo.nl │ │ │ ├── test1.mps │ │ │ ├── test1_cbc.txt │ │ │ ├── test1_convert.lp │ │ │ ├── test1_cplex.txt │ │ │ ├── test1_glpk.txt │ │ │ ├── test1_gurobi.txt │ │ │ ├── test2.lp │ │ │ ├── test2_cbc.txt │ │ │ ├── test2_convert.lp │ │ │ ├── test2_cplex.txt │ │ │ ├── test2_glpk.txt │ │ │ ├── test2_gurobi.txt │ │ │ ├── test3.mod │ │ │ ├── test3_convert.lp │ │ │ ├── test4.nl │ │ │ ├── test4_asl.txt │ │ │ ├── test4_cbc.txt │ │ │ ├── test4_cplex.txt │ │ │ ├── test4_glpk.txt │ │ │ ├── test4_gurobi.txt │ │ │ ├── test5.dat │ │ │ ├── test5.mod │ │ │ ├── test5.mps │ │ │ ├── test_asl.py │ │ │ ├── test_convert.py │ │ │ ├── test_factory.py │ │ │ ├── test_ipopt.py │ │ │ ├── test_mod_nl1.nl │ │ │ ├── test_qp.py │ │ │ ├── test_scip.py │ │ │ ├── test_scip_log_data.py │ │ │ ├── test_scip_solve_from_instance.baseline │ │ │ ├── test_scip_version.py │ │ │ ├── test_solve_from_instance.baseline │ │ │ ├── test_solve_from_nl.baseline │ │ │ └── test_solver.py │ │ ├── models │ │ │ ├── LP_block.json │ │ │ ├── LP_block.py │ │ │ ├── LP_compiled.json │ │ │ ├── LP_compiled.py │ │ │ ├── LP_constant_objective1.json │ │ │ ├── LP_constant_objective1.py │ │ │ ├── LP_constant_objective2.json │ │ │ ├── LP_constant_objective2.py │ │ │ ├── LP_duals_maximize.json │ │ │ ├── LP_duals_maximize.py │ │ │ ├── LP_duals_minimize.json │ │ │ ├── LP_duals_minimize.py │ │ │ ├── LP_inactive_index.json │ │ │ ├── LP_inactive_index.py │ │ │ ├── LP_infeasible1.py │ │ │ ├── LP_infeasible2.py │ │ │ ├── LP_piecewise.json │ │ │ ├── LP_piecewise.py │ │ │ ├── LP_simple.json │ │ │ ├── LP_simple.py │ │ │ ├── LP_trivial_constraints.json │ │ │ ├── LP_trivial_constraints.py │ │ │ ├── LP_unbounded.py │ │ │ ├── LP_unique_duals.json │ │ │ ├── LP_unique_duals.py │ │ │ ├── LP_unused_vars.json │ │ │ ├── LP_unused_vars.py │ │ │ ├── MILP_discrete_var_bounds.json │ │ │ ├── MILP_discrete_var_bounds.py │ │ │ ├── MILP_infeasible1.py │ │ │ ├── MILP_simple.json │ │ │ ├── MILP_simple.py │ │ │ ├── MILP_unbounded.py │ │ │ ├── MILP_unused_vars.json │ │ │ ├── MILP_unused_vars.py │ │ │ ├── MIQCP_simple.json │ │ │ ├── MIQCP_simple.py │ │ │ ├── MIQP_simple.json │ │ │ ├── MIQP_simple.py │ │ │ ├── QCP_simple.json │ │ │ ├── QCP_simple.py │ │ │ ├── QP_constant_objective.json │ │ │ ├── QP_constant_objective.py │ │ │ ├── QP_simple.json │ │ │ ├── QP_simple.py │ │ │ ├── SOS1_simple.json │ │ │ ├── SOS1_simple.py │ │ │ ├── SOS2_simple.json │ │ │ ├── SOS2_simple.py │ │ │ ├── __init__.py │ │ │ └── base.py │ │ ├── piecewise_linear │ │ │ ├── __init__.py │ │ │ ├── baselines │ │ │ │ ├── concave_multi_vararray1_baseline_results.yml │ │ │ │ ├── concave_multi_vararray2_baseline_results.yml │ │ │ │ ├── concave_var_baseline_results.yml │ │ │ │ ├── concave_vararray_baseline_results.yml │ │ │ │ ├── convex_multi_vararray1_baseline_results.yml │ │ │ │ ├── convex_multi_vararray2_baseline_results.yml │ │ │ │ ├── convex_var_baseline_results.yml │ │ │ │ ├── convex_vararray_baseline_results.yml │ │ │ │ ├── piecewise_multi_vararray_baseline_results.yml │ │ │ │ ├── piecewise_var_baseline_results.yml │ │ │ │ ├── piecewise_vararray_baseline_results.yml │ │ │ │ ├── step_var_baseline_results.yml │ │ │ │ └── step_vararray_baseline_results.yml │ │ │ ├── convex.lp │ │ │ ├── convex.nl │ │ │ ├── indexed.lp │ │ │ ├── indexed.nl │ │ │ ├── indexed_nonlinear.nl │ │ │ ├── kernel_baselines │ │ │ │ ├── concave_var_baseline_results.json │ │ │ │ ├── convex_var_baseline_results.json │ │ │ │ ├── piecewise_var_baseline_results.json │ │ │ │ └── step_var_baseline_results.json │ │ │ ├── kernel_problems │ │ │ │ ├── concave_var.py │ │ │ │ ├── convex_var.py │ │ │ │ ├── piecewise_var.py │ │ │ │ └── step_var.py │ │ │ ├── nonconvex.lp │ │ │ ├── nonconvex.nl │ │ │ ├── problems │ │ │ │ ├── concave_multi_vararray1.py │ │ │ │ ├── concave_multi_vararray2.py │ │ │ │ ├── concave_var.py │ │ │ │ ├── concave_vararray.py │ │ │ │ ├── convex_multi_vararray1.py │ │ │ │ ├── convex_multi_vararray2.py │ │ │ │ ├── convex_var.py │ │ │ │ ├── convex_vararray.py │ │ │ │ ├── piecewise_multi_vararray.py │ │ │ │ ├── piecewise_var.py │ │ │ │ ├── piecewise_vararray.py │ │ │ │ ├── step_var.py │ │ │ │ ├── step_vararray.py │ │ │ │ └── tester.py │ │ │ ├── step.lp │ │ │ ├── step.nl │ │ │ ├── test_examples.py │ │ │ ├── test_piecewise_linear.py │ │ │ └── test_piecewise_linear_kernel.py │ │ ├── solvers.py │ │ └── testcases.py │ └── wrappers.py ├── util │ ├── README.md │ ├── __init__.py │ ├── blockutil.py │ ├── calc_var_value.py │ ├── check_units.py │ ├── components.py │ ├── config_domains.py │ ├── diagnostics.py │ ├── infeasible.py │ ├── model_size.py │ ├── report_scaling.py │ ├── slices.py │ ├── subsystems.py │ ├── tests │ │ ├── __init__.py │ │ ├── test_blockutil.py │ │ ├── test_calc_var_value.py │ │ ├── test_check_units.py │ │ ├── test_components.py │ │ ├── test_config_domains.py │ │ ├── test_infeasible.py │ │ ├── test_model_size.py │ │ ├── test_report_scaling.py │ │ ├── test_slices.py │ │ └── test_subsystems.py │ └── vars_from_expressions.py └── version │ ├── __init__.py │ ├── info.py │ └── tests │ ├── __init__.py │ ├── check.py │ └── test_version.py ├── pyproject.toml ├── scripts ├── admin │ ├── README.md │ ├── bwom.py │ └── contributors.py ├── get_pyomo.py ├── get_pyomo_extras.py └── performance │ ├── compare.py │ ├── compare_components.py │ ├── expr_perf.py │ ├── main.py │ └── simple.py └── setup.py /.github/ISSUE_TEMPLATE/config.yml: -------------------------------------------------------------------------------- 1 | blank_issues_enabled: false 2 | 3 | contact_links: 4 | - name: Get help/Ask a question 5 | url: https://github.com/Pyomo/pyomo#getting-help 6 | about: Have a question? Need some help from the community? Refer to our online documentation for ways to get help. 7 | -------------------------------------------------------------------------------- /MANIFEST.in: -------------------------------------------------------------------------------- 1 | include README.md 2 | include LICENSE.md 3 | -------------------------------------------------------------------------------- /doc/OnlineDocs/code.rst: -------------------------------------------------------------------------------- 1 | :orphan: 2 | 3 | This document is a reference containing all Pyomo module, class, and 4 | function documentation. 5 | 6 | .. autosummary:: 7 | :toctree: api 8 | :caption: Library Reference 9 | :template: recursive-module.rst 10 | :recursive: 11 | 12 | pyomo 13 | 14 | 15 | * :ref:`genindex` 16 | * :ref:`modindex` 17 | -------------------------------------------------------------------------------- /doc/OnlineDocs/docutils.conf: -------------------------------------------------------------------------------- 1 | [writers] 2 | table_style=colwidths-auto 3 | -------------------------------------------------------------------------------- /doc/OnlineDocs/explanation/analysis/communities_8pp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/doc/OnlineDocs/explanation/analysis/communities_8pp.png -------------------------------------------------------------------------------- /doc/OnlineDocs/explanation/analysis/communities_decode_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/doc/OnlineDocs/explanation/analysis/communities_decode_1.png -------------------------------------------------------------------------------- /doc/OnlineDocs/explanation/analysis/doe/FIM_sensitivity.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/doc/OnlineDocs/explanation/analysis/doe/FIM_sensitivity.png -------------------------------------------------------------------------------- /doc/OnlineDocs/explanation/analysis/doe/flowchart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/doc/OnlineDocs/explanation/analysis/doe/flowchart.png -------------------------------------------------------------------------------- /doc/OnlineDocs/explanation/analysis/doe/grid-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/doc/OnlineDocs/explanation/analysis/doe/grid-1.png -------------------------------------------------------------------------------- /doc/OnlineDocs/explanation/analysis/doe/reactor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/doc/OnlineDocs/explanation/analysis/doe/reactor.png -------------------------------------------------------------------------------- /doc/OnlineDocs/explanation/analysis/doe/uml.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/doc/OnlineDocs/explanation/analysis/doe/uml.png -------------------------------------------------------------------------------- /doc/OnlineDocs/explanation/analysis/incidence/api.rst: -------------------------------------------------------------------------------- 1 | .. _incidence_api: 2 | 3 | API Reference 4 | ============= 5 | 6 | .. toctree:: 7 | incidence.rst 8 | config.rst 9 | interface.rst 10 | matching.rst 11 | connected.rst 12 | triangularize.rst 13 | dulmage_mendelsohn.rst 14 | scc_solver.rst 15 | -------------------------------------------------------------------------------- /doc/OnlineDocs/explanation/analysis/incidence/config.rst: -------------------------------------------------------------------------------- 1 | Incidence Options 2 | ================= 3 | 4 | .. automodule:: pyomo.contrib.incidence_analysis.config 5 | :noindex: 6 | :members: 7 | -------------------------------------------------------------------------------- /doc/OnlineDocs/explanation/analysis/incidence/connected.rst: -------------------------------------------------------------------------------- 1 | Weakly Connected Components 2 | =========================== 3 | 4 | .. automodule:: pyomo.contrib.incidence_analysis.connected 5 | :noindex: 6 | :members: 7 | -------------------------------------------------------------------------------- /doc/OnlineDocs/explanation/analysis/incidence/dulmage_mendelsohn.rst: -------------------------------------------------------------------------------- 1 | Dulmage-Mendelsohn Partition 2 | ============================ 3 | 4 | .. automodule:: pyomo.contrib.incidence_analysis.dulmage_mendelsohn 5 | :noindex: 6 | :members: 7 | -------------------------------------------------------------------------------- /doc/OnlineDocs/explanation/analysis/incidence/incidence.rst: -------------------------------------------------------------------------------- 1 | Incident Variables 2 | ================== 3 | 4 | .. automodule:: pyomo.contrib.incidence_analysis.incidence 5 | :noindex: 6 | :members: 7 | -------------------------------------------------------------------------------- /doc/OnlineDocs/explanation/analysis/incidence/interface.rst: -------------------------------------------------------------------------------- 1 | Pyomo Interfaces 2 | ================ 3 | 4 | .. automodule:: pyomo.contrib.incidence_analysis.interface 5 | :noindex: 6 | :members: 7 | -------------------------------------------------------------------------------- /doc/OnlineDocs/explanation/analysis/incidence/matching.rst: -------------------------------------------------------------------------------- 1 | Maximum Matching 2 | ================ 3 | 4 | .. automodule:: pyomo.contrib.incidence_analysis.matching 5 | :noindex: 6 | :members: 7 | -------------------------------------------------------------------------------- /doc/OnlineDocs/explanation/analysis/incidence/scc_solver.rst: -------------------------------------------------------------------------------- 1 | Block Triangular Decomposition Solver 2 | ===================================== 3 | 4 | .. automodule:: pyomo.contrib.incidence_analysis.scc_solver 5 | :noindex: 6 | :members: 7 | -------------------------------------------------------------------------------- /doc/OnlineDocs/explanation/analysis/incidence/triangularize.rst: -------------------------------------------------------------------------------- 1 | Block Triangularization 2 | ======================= 3 | 4 | .. automodule:: pyomo.contrib.incidence_analysis.triangularize 5 | :noindex: 6 | :members: 7 | -------------------------------------------------------------------------------- /doc/OnlineDocs/explanation/analysis/incidence/tutorial.rst: -------------------------------------------------------------------------------- 1 | .. _incidence_tutorial: 2 | 3 | Incidence Analysis Tutorial 4 | =========================== 5 | 6 | This tutorial walks through examples of the most common use cases for 7 | Incidence Analysis: 8 | 9 | .. toctree:: 10 | :maxdepth: 1 11 | 12 | tutorial.dm.rst 13 | tutorial.bt.rst 14 | tutorial.btsolve.rst 15 | -------------------------------------------------------------------------------- /doc/OnlineDocs/explanation/analysis/mpc/api.rst: -------------------------------------------------------------------------------- 1 | .. _mpc_api: 2 | 3 | API Reference 4 | ============= 5 | 6 | .. toctree:: 7 | data.rst 8 | conversion.rst 9 | interface.rst 10 | modeling.rst 11 | -------------------------------------------------------------------------------- /doc/OnlineDocs/explanation/analysis/mpc/conversion.rst: -------------------------------------------------------------------------------- 1 | Data Conversion 2 | =============== 3 | 4 | .. automodule:: pyomo.contrib.mpc.data.convert 5 | :noindex: 6 | :members: 7 | -------------------------------------------------------------------------------- /doc/OnlineDocs/explanation/analysis/mpc/examples.rst: -------------------------------------------------------------------------------- 1 | Examples 2 | ======== 3 | 4 | Please see ``pyomo/contrib/mpc/examples/cstr/run_openloop.py`` and 5 | ``pyomo/contrib/mpc/examples/cstr/run_mpc.py`` for examples of some simple 6 | use cases. 7 | -------------------------------------------------------------------------------- /doc/OnlineDocs/explanation/analysis/mpc/interface.rst: -------------------------------------------------------------------------------- 1 | Interfaces 2 | ========== 3 | 4 | .. automodule:: pyomo.contrib.mpc.interfaces.model_interface 5 | :noindex: 6 | :members: 7 | 8 | .. automodule:: pyomo.contrib.mpc.interfaces.var_linker 9 | :noindex: 10 | :members: 11 | -------------------------------------------------------------------------------- /doc/OnlineDocs/explanation/analysis/parmest/boxplot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/doc/OnlineDocs/explanation/analysis/parmest/boxplot.png -------------------------------------------------------------------------------- /doc/OnlineDocs/explanation/analysis/parmest/pairwise_plot_CI.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/doc/OnlineDocs/explanation/analysis/parmest/pairwise_plot_CI.png -------------------------------------------------------------------------------- /doc/OnlineDocs/explanation/analysis/parmest/pairwise_plot_LR.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/doc/OnlineDocs/explanation/analysis/parmest/pairwise_plot_LR.png -------------------------------------------------------------------------------- /doc/OnlineDocs/explanation/developer_utils/config.rst: -------------------------------------------------------------------------------- 1 | 2 | .. automodule:: pyomo.common.config 3 | :noindex: 4 | -------------------------------------------------------------------------------- /doc/OnlineDocs/explanation/developer_utils/index.rst: -------------------------------------------------------------------------------- 1 | Developer Utilities 2 | =================== 3 | 4 | .. toctree:: 5 | :maxdepth: 2 6 | 7 | config 8 | deprecation 9 | -------------------------------------------------------------------------------- /doc/OnlineDocs/explanation/experimental/index.rst: -------------------------------------------------------------------------------- 1 | Experimental features 2 | ===================== 3 | 4 | .. toctree:: 5 | :maxdepth: 2 6 | 7 | kernel/index 8 | solvers 9 | -------------------------------------------------------------------------------- /doc/OnlineDocs/explanation/modeling/math_programming/index.rst: -------------------------------------------------------------------------------- 1 | Math Programming 2 | ================ 3 | 4 | .. toctree:: 5 | :maxdepth: 1 6 | 7 | sets 8 | parameters 9 | variables 10 | objectives 11 | constraints 12 | expressions 13 | sos_constraints 14 | suffixes 15 | -------------------------------------------------------------------------------- /doc/OnlineDocs/explanation/modeling/mpec.rst: -------------------------------------------------------------------------------- 1 | MPEC 2 | ==== 3 | 4 | ``pyomo.mpec`` supports modeling complementarity conditions and 5 | optimization problems with equilibrium constraints. 6 | 7 | -------------------------------------------------------------------------------- /doc/OnlineDocs/explanation/modeling/reduce_points_demo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/doc/OnlineDocs/explanation/modeling/reduce_points_demo.png -------------------------------------------------------------------------------- /doc/OnlineDocs/explanation/modeling/units.rst: -------------------------------------------------------------------------------- 1 | Units Handling in Pyomo 2 | ======================= 3 | 4 | .. automodule:: pyomo.core.base.units_container 5 | :noindex: 6 | 7 | .. autosummary:: 8 | 9 | PyomoUnitsContainer 10 | UnitsError 11 | InconsistentUnitsError 12 | 13 | -------------------------------------------------------------------------------- /doc/OnlineDocs/explanation/philosophy/component_design.rst: -------------------------------------------------------------------------------- 1 | Pyomo Component Design 2 | ====================== 3 | 4 | TODO 5 | -------------------------------------------------------------------------------- /doc/OnlineDocs/explanation/philosophy/transformations.rst: -------------------------------------------------------------------------------- 1 | Model Transformations 2 | ===================== 3 | 4 | TODO 5 | -------------------------------------------------------------------------------- /doc/OnlineDocs/explanation/solvers/gdpopt_flowchart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/doc/OnlineDocs/explanation/solvers/gdpopt_flowchart.png -------------------------------------------------------------------------------- /doc/OnlineDocs/explanation/solvers/index.rst: -------------------------------------------------------------------------------- 1 | Solvers 2 | ======= 3 | 4 | .. toctree:: 5 | :maxdepth: 2 6 | 7 | persistent 8 | gdpopt 9 | pyros 10 | mindtpy 11 | mcpp 12 | multistart 13 | trustregion 14 | pynumero/index 15 | z3_interface 16 | -------------------------------------------------------------------------------- /doc/OnlineDocs/getting_started/index.rst: -------------------------------------------------------------------------------- 1 | Getting Started 2 | =============== 3 | 4 | .. toctree:: 5 | :maxdepth: 2 6 | 7 | installation.rst 8 | pyomo_overview/index.rst 9 | -------------------------------------------------------------------------------- /doc/OnlineDocs/getting_started/pyomo_overview/index.rst: -------------------------------------------------------------------------------- 1 | Pyomo Overview 2 | ============== 3 | 4 | .. toctree:: 5 | :maxdepth: 1 6 | 7 | math_modeling.rst 8 | overview_components.rst 9 | abstract_concrete.rst 10 | simple_examples.rst 11 | -------------------------------------------------------------------------------- /doc/OnlineDocs/howto/abstract_models/data/ABCD.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/doc/OnlineDocs/howto/abstract_models/data/ABCD.pdf -------------------------------------------------------------------------------- /doc/OnlineDocs/howto/abstract_models/data/ABCD.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/doc/OnlineDocs/howto/abstract_models/data/ABCD.png -------------------------------------------------------------------------------- /doc/OnlineDocs/howto/abstract_models/data/PP.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/doc/OnlineDocs/howto/abstract_models/data/PP.png -------------------------------------------------------------------------------- /doc/OnlineDocs/howto/abstract_models/index.rst: -------------------------------------------------------------------------------- 1 | Working with Abstract Models 2 | ============================ 3 | 4 | .. toctree:: 5 | :maxdepth: 1 6 | 7 | instantiating_models.rst 8 | data/index.rst 9 | pyomo_command.rst 10 | BuildAction.rst 11 | -------------------------------------------------------------------------------- /doc/OnlineDocs/howto/debugging.rst: -------------------------------------------------------------------------------- 1 | Debugging Models 2 | ================ 3 | 4 | TODO 5 | -------------------------------------------------------------------------------- /doc/OnlineDocs/howto/index.rst: -------------------------------------------------------------------------------- 1 | How-To Guides 2 | ============= 3 | 4 | .. toctree:: 5 | :maxdepth: 2 6 | 7 | interrogating 8 | manipulating 9 | solver_recipes 10 | abstract_models/index.rst 11 | debugging 12 | ../contribution_guide 13 | -------------------------------------------------------------------------------- /doc/OnlineDocs/reference/future.rst: -------------------------------------------------------------------------------- 1 | Accessing preview features 2 | ========================== 3 | 4 | .. automodule:: pyomo.__future__ 5 | :noindex: 6 | -------------------------------------------------------------------------------- /doc/OnlineDocs/reference/topical/appsi/appsi.solvers.cbc.rst: -------------------------------------------------------------------------------- 1 | Cbc 2 | === 3 | 4 | .. autosummary:: 5 | 6 | pyomo.contrib.appsi.solvers.cbc.CbcConfig 7 | pyomo.contrib.appsi.solvers.cbc.Cbc 8 | -------------------------------------------------------------------------------- /doc/OnlineDocs/reference/topical/appsi/appsi.solvers.cplex.rst: -------------------------------------------------------------------------------- 1 | Cplex 2 | ===== 3 | 4 | .. autosummary:: 5 | 6 | `pyomo.contrib.appsi.solvers.cplex.CplexConfig` 7 | `pyomo.contrib.appsi.solvers.cplex.CplexResults` 8 | `pyomo.contrib.appsi.solvers.cplex.Cplex` 9 | -------------------------------------------------------------------------------- /doc/OnlineDocs/reference/topical/appsi/appsi.solvers.highs.rst: -------------------------------------------------------------------------------- 1 | HiGHS 2 | ===== 3 | 4 | .. autosummary:: 5 | 6 | pyomo.contrib.appsi.solvers.highs.HighsResults 7 | pyomo.contrib.appsi.solvers.highs.Highs 8 | -------------------------------------------------------------------------------- /doc/OnlineDocs/reference/topical/appsi/appsi.solvers.ipopt.rst: -------------------------------------------------------------------------------- 1 | Ipopt 2 | ===== 3 | 4 | .. autosummary:: 5 | 6 | pyomo.contrib.appsi.solvers.ipopt.IpoptConfig 7 | pyomo.contrib.appsi.solvers.ipopt.Ipopt 8 | -------------------------------------------------------------------------------- /doc/OnlineDocs/reference/topical/appsi/appsi.solvers.maingo.rst: -------------------------------------------------------------------------------- 1 | MAiNGO 2 | ====== 3 | 4 | .. autosummary:: 5 | 6 | pyomo.contrib.appsi.solvers.maingo.MAiNGOConfig 7 | pyomo.contrib.appsi.solvers.maingo.MAiNGO 8 | -------------------------------------------------------------------------------- /doc/OnlineDocs/reference/topical/appsi/appsi.solvers.rst: -------------------------------------------------------------------------------- 1 | Solvers 2 | ======= 3 | 4 | .. automodule:: pyomo.contrib.appsi.solvers 5 | :noindex: 6 | 7 | .. toctree:: 8 | 9 | appsi.solvers.gurobi 10 | appsi.solvers.ipopt 11 | appsi.solvers.cplex 12 | appsi.solvers.cbc 13 | appsi.solvers.highs 14 | appsi.solvers.maingo 15 | -------------------------------------------------------------------------------- /doc/OnlineDocs/reference/topical/data/index.rst: -------------------------------------------------------------------------------- 1 | Model Data Management 2 | ===================== 3 | 4 | .. autoclass:: pyomo.dataportal.DataPortal.DataPortal 5 | :noindex: 6 | :members: 7 | :special-members: 8 | 9 | .. autoclass:: pyomo.dataportal.TableData.TableData 10 | :noindex: 11 | :members: 12 | :special-members: 13 | 14 | -------------------------------------------------------------------------------- /doc/OnlineDocs/reference/topical/expressions/building.rst: -------------------------------------------------------------------------------- 1 | 2 | Utilities to Build Expressions 3 | ============================== 4 | 5 | .. autosummary:: 6 | 7 | pyomo.core.util.prod 8 | pyomo.core.util.quicksum 9 | pyomo.core.util.sum_product 10 | pyomo.core.util.summation 11 | pyomo.core.util.dot_product 12 | 13 | -------------------------------------------------------------------------------- /doc/OnlineDocs/reference/topical/expressions/context_managers.rst: -------------------------------------------------------------------------------- 1 | 2 | Context Managers 3 | ================ 4 | 5 | .. autosummary:: 6 | 7 | pyomo.core.expr.nonlinear_expression 8 | pyomo.core.expr.linear_expression 9 | 10 | -------------------------------------------------------------------------------- /doc/OnlineDocs/reference/topical/expressions/index.rst: -------------------------------------------------------------------------------- 1 | 2 | Expression Reference 3 | ==================== 4 | 5 | .. toctree:: 6 | :maxdepth: 1 7 | 8 | building.rst 9 | managing.rst 10 | context_managers.rst 11 | classes.rst 12 | visitors.rst 13 | 14 | -------------------------------------------------------------------------------- /doc/OnlineDocs/reference/topical/expressions/visitors.rst: -------------------------------------------------------------------------------- 1 | 2 | Visitor Classes 3 | =============== 4 | 5 | .. autosummary:: 6 | 7 | pyomo.core.expr.StreamBasedExpressionVisitor 8 | pyomo.core.expr.ExpressionValueVisitor 9 | pyomo.core.expr.ExpressionReplacementVisitor 10 | -------------------------------------------------------------------------------- /doc/OnlineDocs/reference/topical/kernel/base.rst: -------------------------------------------------------------------------------- 1 | Base Object Storage Interface 2 | ============================= 3 | 4 | .. autosummary:: 5 | 6 | pyomo.core.kernel.base 7 | -------------------------------------------------------------------------------- /doc/OnlineDocs/reference/topical/kernel/block.rst: -------------------------------------------------------------------------------- 1 | Blocks 2 | ====== 3 | 4 | Summary 5 | ~~~~~~~ 6 | .. autosummary:: 7 | 8 | pyomo.core.kernel.block.block 9 | pyomo.core.kernel.block.block_tuple 10 | pyomo.core.kernel.block.block_list 11 | pyomo.core.kernel.block.block_dict 12 | 13 | -------------------------------------------------------------------------------- /doc/OnlineDocs/reference/topical/kernel/dict_container.rst: -------------------------------------------------------------------------------- 1 | Dict-like Object Storage 2 | ======================== 3 | 4 | .. autosummary:: 5 | 6 | pyomo.core.kernel.dict_container.DictContainer 7 | -------------------------------------------------------------------------------- /doc/OnlineDocs/reference/topical/kernel/expression.rst: -------------------------------------------------------------------------------- 1 | Expressions 2 | =========== 3 | 4 | Summary 5 | ~~~~~~~ 6 | .. autosummary:: 7 | 8 | pyomo.core.kernel.expression.expression 9 | pyomo.core.kernel.expression.expression_tuple 10 | pyomo.core.kernel.expression.expression_list 11 | pyomo.core.kernel.expression.expression_dict 12 | -------------------------------------------------------------------------------- /doc/OnlineDocs/reference/topical/kernel/heterogeneous_container.rst: -------------------------------------------------------------------------------- 1 | Heterogeneous Object Containers 2 | =============================== 3 | 4 | .. autosummary:: 5 | 6 | pyomo.core.kernel.heterogeneous_container 7 | -------------------------------------------------------------------------------- /doc/OnlineDocs/reference/topical/kernel/homogeneous_container.rst: -------------------------------------------------------------------------------- 1 | Homogeneous Object Containers 2 | ============================= 3 | 4 | .. autosummary:: 5 | 6 | pyomo.core.kernel.homogeneous_container 7 | -------------------------------------------------------------------------------- /doc/OnlineDocs/reference/topical/kernel/list_container.rst: -------------------------------------------------------------------------------- 1 | List-like Object Storage 2 | ======================== 3 | 4 | .. autosummary:: 5 | 6 | pyomo.core.kernel.list_container.ListContainer 7 | -------------------------------------------------------------------------------- /doc/OnlineDocs/reference/topical/kernel/objective.rst: -------------------------------------------------------------------------------- 1 | Objectives 2 | ========== 3 | 4 | Summary 5 | ~~~~~~~ 6 | .. autosummary:: 7 | 8 | pyomo.core.kernel.objective.objective 9 | pyomo.core.kernel.objective.objective_tuple 10 | pyomo.core.kernel.objective.objective_list 11 | pyomo.core.kernel.objective.objective_dict 12 | -------------------------------------------------------------------------------- /doc/OnlineDocs/reference/topical/kernel/parameter.rst: -------------------------------------------------------------------------------- 1 | Parameters 2 | ========== 3 | 4 | Summary 5 | ~~~~~~~ 6 | .. autosummary:: 7 | 8 | pyomo.core.kernel.parameter.parameter 9 | pyomo.core.kernel.parameter.functional_value 10 | pyomo.core.kernel.parameter.parameter_tuple 11 | pyomo.core.kernel.parameter.parameter_list 12 | pyomo.core.kernel.parameter.parameter_dict 13 | -------------------------------------------------------------------------------- /doc/OnlineDocs/reference/topical/kernel/piecewise/index.rst: -------------------------------------------------------------------------------- 1 | Piecewise Function Library 2 | ========================== 3 | 4 | Modules 5 | 6 | .. toctree:: 7 | :maxdepth: 1 8 | 9 | piecewise.rst 10 | piecewise_nd.rst 11 | util.rst 12 | -------------------------------------------------------------------------------- /doc/OnlineDocs/reference/topical/kernel/piecewise/util.rst: -------------------------------------------------------------------------------- 1 | Utilities for Piecewise Functions 2 | ================================= 3 | 4 | .. autosummary:: 5 | 6 | pyomo.core.kernel.piecewise_library.util 7 | -------------------------------------------------------------------------------- /doc/OnlineDocs/reference/topical/kernel/sos.rst: -------------------------------------------------------------------------------- 1 | Special Ordered Sets 2 | ==================== 3 | 4 | Summary 5 | ~~~~~~~ 6 | .. autosummary:: 7 | 8 | pyomo.core.kernel.sos.sos 9 | pyomo.core.kernel.sos.sos1 10 | pyomo.core.kernel.sos.sos2 11 | pyomo.core.kernel.sos.sos_tuple 12 | pyomo.core.kernel.sos.sos_list 13 | pyomo.core.kernel.sos.sos_dict 14 | 15 | -------------------------------------------------------------------------------- /doc/OnlineDocs/reference/topical/kernel/suffix.rst: -------------------------------------------------------------------------------- 1 | Suffixes 2 | ======== 3 | 4 | .. autosummary:: 5 | 6 | pyomo.core.kernel.suffix 7 | -------------------------------------------------------------------------------- /doc/OnlineDocs/reference/topical/kernel/tuple_container.rst: -------------------------------------------------------------------------------- 1 | Tuple-like Object Storage 2 | ========================= 3 | 4 | .. autosummary:: 5 | 6 | pyomo.core.kernel.tuple_container.TupleContainer 7 | -------------------------------------------------------------------------------- /doc/OnlineDocs/reference/topical/kernel/variable.rst: -------------------------------------------------------------------------------- 1 | Variables 2 | ========= 3 | 4 | Summary 5 | ~~~~~~~ 6 | .. autosummary:: 7 | 8 | pyomo.core.kernel.variable.variable 9 | pyomo.core.kernel.variable.variable_tuple 10 | pyomo.core.kernel.variable.variable_list 11 | pyomo.core.kernel.variable.variable_dict 12 | -------------------------------------------------------------------------------- /doc/OnlineDocs/reference/topical/solvers/cplex_persistent.rst: -------------------------------------------------------------------------------- 1 | CPLEXPersistent 2 | ================ 3 | 4 | .. autosummary:: 5 | 6 | pyomo.solvers.plugins.solvers.cplex_persistent.CPLEXPersistent 7 | -------------------------------------------------------------------------------- /doc/OnlineDocs/reference/topical/solvers/index.rst: -------------------------------------------------------------------------------- 1 | Solver Interfaces 2 | ================= 3 | 4 | .. toctree:: 5 | :maxdepth: 1 6 | 7 | gams.rst 8 | cplex_persistent.rst 9 | gurobi_direct.rst 10 | gurobi_persistent.rst 11 | xpress_persistent.rst 12 | -------------------------------------------------------------------------------- /doc/OnlineDocs/reference/topical/solvers/xpress_persistent.rst: -------------------------------------------------------------------------------- 1 | XpressPersistent 2 | ================ 3 | 4 | .. autosummary:: 5 | 6 | pyomo.solvers.plugins.solvers.xpress_persistent.XpressPersistent 7 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/A.tab: -------------------------------------------------------------------------------- 1 | A 2 | A1 3 | A2 4 | A3 5 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/ABCD.tab: -------------------------------------------------------------------------------- 1 | A B C D 2 | A1 B1 1 10 3 | A2 B2 2 20 4 | A3 B3 3 30 5 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/ABCD.txt: -------------------------------------------------------------------------------- 1 | A,B,C,D 2 | A1,B1,1,10 3 | A2,B2,2,20 4 | A3,B3,3,30 5 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/ABCD.xls: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/doc/OnlineDocs/src/data/ABCD.xls -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/ABCD1.dat: -------------------------------------------------------------------------------- 1 | load ABCD.tab format=set : Z ; 2 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/ABCD1.txt: -------------------------------------------------------------------------------- 1 | [('A1', 'B1', 1, 10), ('A2', 'B2', 2, 20), ('A3', 'B3', 3, 30)] 2 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/ABCD2.dat: -------------------------------------------------------------------------------- 1 | load ABCD.tab : [A,B,C] D ; 2 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/ABCD2.txt: -------------------------------------------------------------------------------- 1 | Z [('A1', 'B1', 1), ('A2', 'B2', 2), ('A3', 'B3', 3)] 2 | D 3 | D[A1,B1,1] 10 4 | D[A2,B2,2] 20 5 | D[A3,B3,3] 30 6 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/ABCD3.dat: -------------------------------------------------------------------------------- 1 | load ABCD.tab : Z=[A,B,C] D ; 2 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/ABCD3.txt: -------------------------------------------------------------------------------- 1 | Z [('A1', 'B1', 1), ('A2', 'B2', 2), ('A3', 'B3', 3)] 2 | D 3 | D[A1,B1,1] 10 4 | D[A2,B2,2] 20 5 | D[A3,B3,3] 30 6 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/ABCD4.dat: -------------------------------------------------------------------------------- 1 | load ABCD.tab : Z=[A,B,C] Y=D ; 2 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/ABCD4.txt: -------------------------------------------------------------------------------- 1 | Z [('A1', 'B1', 1), ('A2', 'B2', 2), ('A3', 'B3', 3)] 2 | Y 3 | Y[A1,B1,1] 10 4 | Y[A2,B2,2] 20 5 | Y[A3,B3,3] 30 6 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/ABCD5.dat: -------------------------------------------------------------------------------- 1 | load ABCD.tab : Z=[B] Y=D W=C; 2 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/ABCD5.txt: -------------------------------------------------------------------------------- 1 | Z ['B1', 'B2', 'B3'] 2 | Y 3 | Y[B1] 10 4 | Y[B2] 20 5 | Y[B3] 30 6 | W 7 | W[B1] 1 8 | W[B2] 2 9 | W[B3] 3 10 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/ABCD6.dat: -------------------------------------------------------------------------------- 1 | load ABCD.txt using=csv : Z=[A,B,C] D ; 2 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/ABCD6.txt: -------------------------------------------------------------------------------- 1 | Z [('A1', 'B1', 1), ('A2', 'B2', 2), ('A3', 'B3', 3)] 2 | D 3 | D[A1,B1,1] 10 4 | D[A2,B2,2] 20 5 | D[A3,B3,3] 30 6 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/ABCD7.dat: -------------------------------------------------------------------------------- 1 | load ABCD.xls range=ABCD : Z=[A,B,C] Y=D ; 2 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/ABCD7.txt: -------------------------------------------------------------------------------- 1 | Z [('A1', 'B1', 1.0), ('A2', 'B2', 2.0), ('A3', 'B3', 3.0)] 2 | Y 3 | Y[A1,B1,1.0] 10.0 4 | Y[A2,B2,2.0] 20.0 5 | Y[A3,B3,3.0] 30.0 6 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/ABCD8.bad: -------------------------------------------------------------------------------- 1 | ERROR Cannot create data manager 'pyodbc' 2 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/ABCD8.dat: -------------------------------------------------------------------------------- 1 | load ABCD.xls using=pyodbc table=ABCD : Z=[A,B,C] Y=D ; 2 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/ABCD9.bad: -------------------------------------------------------------------------------- 1 | ERROR Cannot create data manager 'pyodbc' 2 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/ABCD9.dat: -------------------------------------------------------------------------------- 1 | load "Driver={Microsoft Excel Driver (*.xls)}; Dbq=ABCD.xls;" 2 | using=pyodbc 3 | table=ABCD : Z=[A,B,C] Y=D ; 4 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/C.tab: -------------------------------------------------------------------------------- 1 | A B 2 | A1 1 3 | A1 2 4 | A1 3 5 | A2 1 6 | A2 2 7 | A2 3 8 | A3 1 9 | A3 2 10 | A3 3 11 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/D.tab: -------------------------------------------------------------------------------- 1 | B A1 A2 A3 2 | 1 + - - 3 | 2 - + - 4 | 3 - - + 5 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/U.tab: -------------------------------------------------------------------------------- 1 | I A1 A2 A3 2 | I1 1.3 2.3 3.3 3 | I2 1.4 2.4 3.4 4 | I3 1.5 2.5 3.5 5 | I4 1.6 2.6 3.6 6 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/Y.tab: -------------------------------------------------------------------------------- 1 | A Y 2 | A1 3.3 3 | A2 3.4 4 | A3 3.5 5 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/Z.tab: -------------------------------------------------------------------------------- 1 | 1.1 2 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/diet.sqlite: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/doc/OnlineDocs/src/data/diet.sqlite -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/diet.sqlite.dat: -------------------------------------------------------------------------------- 1 | # File diet.sqlite.dat 2 | 3 | load "diet.sqlite" 4 | using=sqlite3 5 | query="SELECT FOOD,cost,f_min,f_max FROM Food" 6 | : FOOD=[FOOD] cost f_min f_max ; 7 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/ex.dat: -------------------------------------------------------------------------------- 1 | include ex1.dat; 2 | include ex2.dat; 3 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/ex.txt: -------------------------------------------------------------------------------- 1 | 2 2 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/ex1.dat: -------------------------------------------------------------------------------- 1 | param z := 1; 2 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/ex2.dat: -------------------------------------------------------------------------------- 1 | param z := 2; 2 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/import1.tab.dat: -------------------------------------------------------------------------------- 1 | load Y.tab : [A] Y; 2 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/import1.tab.txt: -------------------------------------------------------------------------------- 1 | Y 2 | A1 3.3 3 | A2 3.4 4 | A3 3.5 5 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/import2.tab.dat: -------------------------------------------------------------------------------- 1 | load Y.tab : A=[A] Y; 2 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/import2.tab.txt: -------------------------------------------------------------------------------- 1 | A ['A1', 'A2', 'A3'] 2 | Y 3 | A1 3.3 4 | A2 3.4 5 | A3 3.5 6 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/import3.tab.dat: -------------------------------------------------------------------------------- 1 | load A.tab format=set : A; 2 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/import3.tab.txt: -------------------------------------------------------------------------------- 1 | A ['A1', 'A2', 'A3'] 2 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/import4.tab.dat: -------------------------------------------------------------------------------- 1 | load C.tab format=set : C; 2 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/import4.tab.txt: -------------------------------------------------------------------------------- 1 | C [('A1', 1), ('A1', 2), ('A1', 3), ('A2', 1), ('A2', 2), ('A2', 3), ('A3', 1), ('A3', 2), ('A3', 3)] 2 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/import5.tab.dat: -------------------------------------------------------------------------------- 1 | load D.tab format=set_array: B; 2 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/import5.tab.txt: -------------------------------------------------------------------------------- 1 | B [('A1', 1), ('A2', 2), ('A3', 3)] 2 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/import6.tab.dat: -------------------------------------------------------------------------------- 1 | load Z.tab format=param: p; 2 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/import6.tab.txt: -------------------------------------------------------------------------------- 1 | p 1.1 2 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/import7.tab.dat: -------------------------------------------------------------------------------- 1 | load U.tab format=array: A=[X] U; 2 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/import7.tab.txt: -------------------------------------------------------------------------------- 1 | I ['I1', 'I2', 'I3', 'I4'] 2 | A ['A1', 'A2', 'A3'] 3 | U 4 | U[I1,A1] 1.3 5 | U[I1,A2] 2.3 6 | U[I1,A3] 3.3 7 | U[I2,A1] 1.4 8 | U[I2,A2] 2.4 9 | U[I2,A3] 3.4 10 | U[I3,A1] 1.5 11 | U[I3,A2] 2.5 12 | U[I3,A3] 3.5 13 | U[I4,A1] 1.6 14 | U[I4,A2] 2.6 15 | U[I4,A3] 3.6 16 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/import8.tab.dat: -------------------------------------------------------------------------------- 1 | load U.tab format=transposed_array: A=[X] U; 2 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/import8.tab.txt: -------------------------------------------------------------------------------- 1 | A ['A1', 'A2', 'A3'] 2 | I ['I1', 'I2', 'I3', 'I4'] 3 | U 4 | U[A1,I1] 1.3 5 | U[A1,I2] 1.4 6 | U[A1,I3] 1.5 7 | U[A1,I4] 1.6 8 | U[A2,I1] 2.3 9 | U[A2,I2] 2.4 10 | U[A2,I3] 2.5 11 | U[A2,I4] 2.6 12 | U[A3,I1] 3.3 13 | U[A3,I2] 3.4 14 | U[A3,I3] 3.5 15 | U[A3,I4] 3.6 16 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/namespace1.dat: -------------------------------------------------------------------------------- 1 | set C := 1 2 3 ; 2 | 3 | namespace ns1 4 | { 5 | set C := 4 5 6 ; 6 | } 7 | 8 | namespace ns2 9 | { 10 | set C := 7 8 9 ; 11 | } 12 | 13 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/param1.dat: -------------------------------------------------------------------------------- 1 | param A := 1.4; 2 | param B := 1; 3 | param C := abc; 4 | param D := true; 5 | param E := 1.0e+04; 6 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/param1.txt: -------------------------------------------------------------------------------- 1 | 1.4 2 | 1 3 | abc 4 | True 5 | 10000.0 6 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/param2.dat: -------------------------------------------------------------------------------- 1 | set A := a c e; 2 | 3 | param B := a 10 c 30 e 50; 4 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/param2.txt: -------------------------------------------------------------------------------- 1 | a 10 2 | c 30 3 | e 50 4 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/param2a.dat: -------------------------------------------------------------------------------- 1 | set A := a c e; 2 | 3 | param B := 4 | a 10 5 | c 30 6 | e 50 7 | ; 8 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/param2a.txt: -------------------------------------------------------------------------------- 1 | a 10 2 | c 30 3 | e 50 4 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/param3.dat: -------------------------------------------------------------------------------- 1 | set A := a c e; 2 | 3 | param : B C D := 4 | a 10 -1 1.1 5 | c 30 -3 3.3 6 | e 50 -5 5.5 7 | ; 8 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/param3.txt: -------------------------------------------------------------------------------- 1 | B 2 | a 10 3 | c 30 4 | e 50 5 | C 6 | a -1 7 | c -3 8 | e -5 9 | D 10 | a 1.1 11 | c 3.3 12 | e 5.5 13 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/param3a.dat: -------------------------------------------------------------------------------- 1 | set A := a c e g; 2 | 3 | param : B C D := 4 | a 10 -1 1.1 5 | c 30 -3 3.3 6 | e 50 -5 5.5 7 | ; 8 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/param3a.txt: -------------------------------------------------------------------------------- 1 | B 2 | a 10 3 | c 30 4 | e 50 5 | C 6 | a -1 7 | c -3 8 | e -5 9 | D 10 | a 1.1 11 | c 3.3 12 | e 5.5 13 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/param3b.dat: -------------------------------------------------------------------------------- 1 | set A := a c e; 2 | 3 | param : B C D := 4 | a . -1 1.1 5 | c 30 . 3.3 6 | e 50 -5 . 7 | ; 8 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/param3b.txt: -------------------------------------------------------------------------------- 1 | B 2 | c 30 3 | e 50 4 | C 5 | a -1 6 | e -5 7 | D 8 | a 1.1 9 | c 3.3 10 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/param3c.dat: -------------------------------------------------------------------------------- 1 | param : A : B C D := 2 | a 10 -1 1.1 3 | c 30 -3 3.3 4 | e 50 -5 5.5 5 | ; 6 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/param3c.txt: -------------------------------------------------------------------------------- 1 | B 2 | a 10 3 | c 30 4 | e 50 5 | C 6 | a -1 7 | c -3 8 | e -5 9 | D 10 | a 1.1 11 | c 3.3 12 | e 5.5 13 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/param4.dat: -------------------------------------------------------------------------------- 1 | set A := a c e; 2 | 3 | param B default 0.0 := 4 | c 30 5 | e 50 6 | ; 7 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/param4.txt: -------------------------------------------------------------------------------- 1 | B 2 | a 0 3 | c 30 4 | e 50 5 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/param5.dat: -------------------------------------------------------------------------------- 1 | set A := a 1 c 2 e 3; 2 | 3 | param B := 4 | a 1 10 5 | c 2 30 6 | e 3 50; 7 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/param5.txt: -------------------------------------------------------------------------------- 1 | ('a', 1) 10 2 | ('c', 2) 30 3 | ('e', 3) 50 4 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/param5a.dat: -------------------------------------------------------------------------------- 1 | set A := a 1 c 2 e 3; 2 | 3 | param B default 0 := 4 | a 1 10 5 | c 2 . 6 | e 3 50; 7 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/param5a.txt: -------------------------------------------------------------------------------- 1 | ('a', 1) 10 2 | ('c', 2) 0 3 | ('e', 3) 50 4 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/param6.dat: -------------------------------------------------------------------------------- 1 | set A := a 1 c 2 e 3; 2 | 3 | param : B C D := 4 | a 1 10 -1 1.1 5 | c 2 30 -3 3.3 6 | e 3 50 -5 5.5 7 | ; 8 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/param6.txt: -------------------------------------------------------------------------------- 1 | B 2 | ('a', 1) 10 3 | ('c', 2) 30 4 | ('e', 3) 50 5 | C 6 | ('a', 1) -1 7 | ('c', 2) -3 8 | ('e', 3) -5 9 | D 10 | ('a', 1) 1.1 11 | ('c', 2) 3.3 12 | ('e', 3) 5.5 13 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/param6a.dat: -------------------------------------------------------------------------------- 1 | param : A : B C D := 2 | a 1 10 -1 1.1 3 | c 2 30 -3 3.3 4 | e 3 50 -5 5.5 5 | ; 6 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/param6a.txt: -------------------------------------------------------------------------------- 1 | B 2 | ('a', 1) 10 3 | ('c', 2) 30 4 | ('e', 3) 50 5 | C 6 | ('a', 1) -1 7 | ('c', 2) -3 8 | ('e', 3) -5 9 | D 10 | ('a', 1) 1.1 11 | ('c', 2) 3.3 12 | ('e', 3) 5.5 13 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/param7a.dat: -------------------------------------------------------------------------------- 1 | set A := 1 a 1 c 1 e 2 a 2 c 2 e 3 a 3 c 3 e; 2 | 3 | param B : a c e := 4 | 1 1 2 3 5 | 2 4 5 6 6 | 3 7 8 9 7 | ; 8 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/param7a.txt: -------------------------------------------------------------------------------- 1 | (1, 'a') 1 2 | (1, 'c') 2 3 | (1, 'e') 3 4 | (2, 'a') 4 5 | (2, 'c') 5 6 | (2, 'e') 6 7 | (3, 'a') 7 8 | (3, 'c') 8 9 | (3, 'e') 9 10 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/param7b.dat: -------------------------------------------------------------------------------- 1 | set A := 1 a 1 c 1 e 2 a 2 c 2 e 3 a 3 c 3 e; 2 | 3 | param B (tr) : 1 2 3 := 4 | a 1 4 7 5 | c 2 5 8 6 | e 3 6 9 7 | ; 8 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/param7b.txt: -------------------------------------------------------------------------------- 1 | (1, 'a') 1 2 | (1, 'c') 2 3 | (1, 'e') 3 4 | (2, 'a') 4 5 | (2, 'c') 5 6 | (2, 'e') 6 7 | (3, 'a') 7 8 | (3, 'c') 8 9 | (3, 'e') 9 10 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/param8a.dat: -------------------------------------------------------------------------------- 1 | set A := (a,1,a,1) (a,2,a,2) (b,1,b,1) (b,2,b,2); 2 | 3 | param B := 4 | 5 | [*,1,*,1] a a 10 b b 20 6 | [*,2,*,2] a a 30 b b 40 7 | ; 8 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/param8a.txt: -------------------------------------------------------------------------------- 1 | ('a', 1, 'a', 1) 10 2 | ('a', 2, 'a', 2) 30 3 | ('b', 1, 'b', 1) 20 4 | ('b', 2, 'b', 2) 40 5 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/pyomo.diet1.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | pyomo solve --solver=glpk diet1.py diet.sqlite.dat 3 | cat results.yml 4 | rm -f results.yml results.json 5 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/pyomo.diet2.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | pyomo solve --solver=glpk diet1.py diet.dat 3 | cat results.yml 4 | rm -f results.yml results.json 5 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/set1.dat: -------------------------------------------------------------------------------- 1 | # An empty set 2 | set A := ; 3 | 4 | # A set of numbers 5 | set A := 1 2 3; 6 | 7 | # A set of strings 8 | set B := north south east west; 9 | 10 | # A set of mixed types 11 | set C := 12 | 0 13 | -1.0e+10 14 | 'foo bar' 15 | infinity 16 | "100" 17 | ; 18 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/set1.txt: -------------------------------------------------------------------------------- 1 | [1, 2, 3] 2 | ['east', 'north', 'south', 'west'] 3 | [-10000000000.0, 0, 100, 'foo bar', inf] 4 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/set2.dat: -------------------------------------------------------------------------------- 1 | set A := 1 2 3 4 5 6 ; 2 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/set2.txt: -------------------------------------------------------------------------------- 1 | [(1, 2, 3), (4, 5, 6)] 2 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/set2a.dat: -------------------------------------------------------------------------------- 1 | set A := (1,2,3) (4,5,6) ; 2 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/set2a.txt: -------------------------------------------------------------------------------- 1 | [(1, 2, 3), (4, 5, 6)] 2 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/set3.dat: -------------------------------------------------------------------------------- 1 | set A := 1 aaa 'a b'; 2 | 3 | set B[1] := 0 1 2; 4 | set B[aaa] := aa bb cc; 5 | set B['a b'] := 'aa bb cc'; 6 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/set3.txt: -------------------------------------------------------------------------------- 1 | [1, 'a b', 'aaa'] 2 | [0, 1, 2] 3 | ['aa', 'bb', 'cc'] 4 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/set4.dat: -------------------------------------------------------------------------------- 1 | set A : A1 A2 A3 A4 := 2 | 1 + - - + 3 | 2 + - + - 4 | 3 - + - - ; 5 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/set4.txt: -------------------------------------------------------------------------------- 1 | [('A1', 1), ('A1', 2), ('A2', 3), ('A3', 2), ('A4', 1)] 2 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/set5.dat: -------------------------------------------------------------------------------- 1 | set A := 2 | (1,2,*,4) A B 3 | (*,2,*,4) A B C D ; 4 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/set5.txt: -------------------------------------------------------------------------------- 1 | (1, 2, 'A', 4) 2 | (1, 2, 'B', 4) 3 | ('A', 2, 'B', 4) 4 | ('C', 2, 'D', 4) 5 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/table0.dat: -------------------------------------------------------------------------------- 1 | table M(A) : 2 | A B M N := 3 | A1 B1 4.3 5.3 4 | A2 B2 4.4 5.4 5 | A3 B3 4.5 5.5 6 | ; 7 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/table0.ul.dat: -------------------------------------------------------------------------------- 1 | table columns=4 M(1)={3} := 2 | A1 B1 4.3 5.3 3 | A2 B2 4.4 5.4 4 | A3 B3 4.5 5.5 5 | ; 6 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/table1.dat: -------------------------------------------------------------------------------- 1 | table M(A) : 2 | A B M N := 3 | A1 B1 4.3 5.3 A2 B2 4.4 5.4 A3 B3 4.5 5.5 ; 4 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/table2.dat: -------------------------------------------------------------------------------- 1 | table M(A) N(A,B) : 2 | A B M N := 3 | A1 B1 4.3 5.3 4 | A2 B2 4.4 5.4 5 | A3 B3 4.5 5.5 6 | ; 7 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/table3.dat: -------------------------------------------------------------------------------- 1 | table A={A} Z={A,B} M(A) N(A,B) : 2 | A B M N := 3 | A1 B1 4.3 5.3 4 | A2 B2 4.4 5.4 5 | A3 B3 4.5 5.5 6 | ; 7 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/table3.ul.dat: -------------------------------------------------------------------------------- 1 | table columns=4 A={1} Z={1,2} M(1)={3} N(1,2)={4} := 2 | A1 B1 4.3 5.3 3 | A2 B2 4.4 5.4 4 | A3 B3 4.5 5.5 5 | ; 6 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/table4.dat: -------------------------------------------------------------------------------- 1 | table A={A} Z={A,B} M(A) N(Z) : 2 | A B M N := 3 | A1 B1 4.3 5.3 4 | A2 B2 4.4 5.4 5 | A3 B3 4.5 5.5 6 | ; 7 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/table4.ul.dat: -------------------------------------------------------------------------------- 1 | table columns=4 A={1} Z={1,2} M(A)={3} N(Z)={4} := 2 | A1 B1 4.3 5.3 3 | A2 B2 4.4 5.4 4 | A3 B3 4.5 5.5 5 | ; 6 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/table5.dat: -------------------------------------------------------------------------------- 1 | table Z={A,B} Y={M,N} : 2 | A B M N := 3 | A1 B1 4.3 5.3 4 | A2 B2 4.4 5.4 5 | A3 B3 4.5 5.5 6 | ; 7 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/table6.dat: -------------------------------------------------------------------------------- 1 | table pi := 3.1416 ; 2 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/table6.txt: -------------------------------------------------------------------------------- 1 | 1 Param Declarations 2 | pi : Size=1, Index=None, Domain=Any, Default=None, Mutable=False 3 | Key : Value 4 | None : 3.1416 5 | 6 | 1 Declarations: pi 7 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/data/table7.dat: -------------------------------------------------------------------------------- 1 | table Z={A,B} M(A): 2 | A B M N := 3 | A1 B1 4.3 5.3 4 | A2 B2 4.4 5.4 5 | A3 B3 4.5 5.5 6 | ; 7 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/dataportal/A.tab: -------------------------------------------------------------------------------- 1 | A 2 | A1 3 | A2 4 | A3 5 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/dataportal/C.tab: -------------------------------------------------------------------------------- 1 | A B 2 | A1 1 3 | A1 2 4 | A1 3 5 | A2 1 6 | A2 2 7 | A2 3 8 | A3 1 9 | A3 2 10 | A3 3 11 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/dataportal/D.tab: -------------------------------------------------------------------------------- 1 | B A1 A2 A3 2 | 1 + - - 3 | 2 - + - 4 | 3 - - + 5 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/dataportal/PP.csv: -------------------------------------------------------------------------------- 1 | A,B,PP 2 | A1,B1,4.3 3 | A2,B2,4.4 4 | A3,B3,4.5 5 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/dataportal/PP.json: -------------------------------------------------------------------------------- 1 | { 2 | "A": ["A1", "A2", "A3"], 3 | "B": ["B1", "B2", "B3"], 4 | "PP": [ 5 | {"index":["A1","B1"], "value":4.3}, 6 | {"index":["A2","B2"], "value":4.4}, 7 | {"index":["A3","B3"], "value":4.5} 8 | ] 9 | } 10 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/dataportal/PP.sqlite: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/doc/OnlineDocs/src/dataportal/PP.sqlite -------------------------------------------------------------------------------- /doc/OnlineDocs/src/dataportal/PP.tab: -------------------------------------------------------------------------------- 1 | A B PP 2 | A1 B1 4.3 3 | A2 B2 4.4 4 | A3 B3 4.5 5 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/dataportal/PP.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/dataportal/PP.yaml: -------------------------------------------------------------------------------- 1 | A: 2 | - A1 3 | - A2 4 | - A3 5 | B: 6 | - B1 7 | - B2 8 | - B3 9 | PP: 10 | - index: [A1, B1] 11 | value: 4.3 12 | - index: [A2, B2] 13 | value: 4.4 14 | - index: [A3, B3] 15 | value: 4.5 16 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/dataportal/Pyomo_mysql: -------------------------------------------------------------------------------- 1 | DROP TABLE IF EXISTS PPTable; 2 | 3 | CREATE TABLE PPTable ( 4 | A varchar(64) not null, 5 | B varchar(64) not null, 6 | PP float not null 7 | ) engine=innodb ; 8 | 9 | INSERT INTO PPTable VALUES ("A1", "B1", 4.3), ("A2", "B2", 4.4), ("A3", "B3", 4.5); 10 | 11 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/dataportal/S.tab: -------------------------------------------------------------------------------- 1 | A S 2 | A1 3.3 3 | A2 . 4 | A3 3.5 5 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/dataportal/T.json: -------------------------------------------------------------------------------- 1 | { "A": ["A1", "A2", "A3"], 2 | "B": [[1, "B1"], [2, "B2"], [3, "B3"]], 3 | "C": {"A1": [1, 2, 3], "A3": [10, 20, 30]}, 4 | "p": 0.1, 5 | "q": {"A1": 3.3, "A2": 3.4, "A3": 3.5}, 6 | "r": [ {"index": [1, "B1"], "value": 3.3}, 7 | {"index": [2, "B2"], "value": 3.4}, 8 | {"index": [3, "B3"], "value": 3.5}]} 9 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/dataportal/T.yaml: -------------------------------------------------------------------------------- 1 | A: [A1, A2, A3] 2 | B: 3 | - [1, B1] 4 | - [2, B2] 5 | - [3, B3] 6 | C: 7 | 'A1': [1, 2, 3] 8 | 'A3': [10, 20, 30] 9 | p: 0.1 10 | q: {A1: 3.3, A2: 3.4, A3: 3.5} 11 | r: 12 | - index: [1, B1] 13 | value: 3.3 14 | - index: [2, B2] 15 | value: 3.4 16 | - index: [3, B3] 17 | value: 3.5 18 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/dataportal/U.tab: -------------------------------------------------------------------------------- 1 | I A1 A2 A3 2 | I1 1.3 2.3 3.3 3 | I2 1.4 2.4 3.4 4 | I3 1.5 2.5 3.5 5 | I4 1.6 2.6 3.6 6 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/dataportal/XW.tab: -------------------------------------------------------------------------------- 1 | A X W 2 | A1 3.3 4.3 3 | A2 3.4 4.4 4 | A3 3.5 4.5 5 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/dataportal/Y.tab: -------------------------------------------------------------------------------- 1 | A Y 2 | A1 3.3 3 | A2 3.4 4 | A3 3.5 5 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/dataportal/Z.tab: -------------------------------------------------------------------------------- 1 | 1.1 2 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/dataportal/excel.xls: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/doc/OnlineDocs/src/dataportal/excel.xls -------------------------------------------------------------------------------- /doc/OnlineDocs/src/expr/index.txt: -------------------------------------------------------------------------------- 1 | 2*v 2 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/expr/managing.txt: -------------------------------------------------------------------------------- 1 | sin(x) + 2*x 2 | sum(sin(x), mon(2, x)) 3 | sin(x1) + 2*x2 4 | True 5 | x[0] + 5*x[1] 6 | x[0] + 5*x[1] 7 | True 8 | True 9 | p[0]*x[0] + p[1]*x[1] + p[2]*x[2] + p[3]*x[3] + p[4]*x[4] 10 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/expr/quicksum.log: -------------------------------------------------------------------------------- 1 | sum: 1.447861 2 | repn: 0.870225 3 | quicksum: 1.388344 4 | repn: 0.864316 5 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/kernel/examples.sh: -------------------------------------------------------------------------------- 1 | #! /bin/bash 2 | 3 | dir=`dirname $0` 4 | for file in `ls ${dir}/examples/*.py | sort`; do python $file; done; 5 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/scripting/abstract1.dat: -------------------------------------------------------------------------------- 1 | # one way to input the data in AMPL format 2 | # for indexed parameters, the indexes are given before the value 3 | 4 | param m := 1 ; 5 | param n := 2 ; 6 | 7 | param a := 8 | 1 1 3 9 | 1 2 4 10 | ; 11 | 12 | param c:= 13 | 1 2 14 | 2 3 15 | ; 16 | 17 | param b := 1 1 ; 18 | 19 | -------------------------------------------------------------------------------- /doc/OnlineDocs/src/scripting/abstract2a.dat: -------------------------------------------------------------------------------- 1 | # abstract2a.dat AMPL format 2 | 3 | set I := 1 ; 4 | set J := 1 2 ; 5 | 6 | param a := 7 | 1 1 3 8 | 1 2 4 9 | ; 10 | 11 | param c:= 12 | 1 2 13 | 2 3 14 | ; 15 | 16 | param b := 1 1 ; 17 | -------------------------------------------------------------------------------- /doc/logos/coopr/Coopr-120x75.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/doc/logos/coopr/Coopr-120x75.png -------------------------------------------------------------------------------- /doc/logos/coopr/CooprLogo6.ai: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/doc/logos/coopr/CooprLogo6.ai -------------------------------------------------------------------------------- /doc/logos/coopr/CooprLogo6.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/doc/logos/coopr/CooprLogo6.jpg -------------------------------------------------------------------------------- /doc/logos/coopr/CooprLogo6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/doc/logos/coopr/CooprLogo6.png -------------------------------------------------------------------------------- /doc/logos/dae/Pyomo-DAE-150.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/doc/logos/dae/Pyomo-DAE-150.png -------------------------------------------------------------------------------- /doc/logos/dae/Pyomo-DAE-2400-transparent.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/doc/logos/dae/Pyomo-DAE-2400-transparent.png -------------------------------------------------------------------------------- /doc/logos/dae/Pyomo-DAE-2400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/doc/logos/dae/Pyomo-DAE-2400.png -------------------------------------------------------------------------------- /doc/logos/dae/Pyomo-DAE-300.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/doc/logos/dae/Pyomo-DAE-300.png -------------------------------------------------------------------------------- /doc/logos/dae/Pyomo-DAE.eps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/doc/logos/dae/Pyomo-DAE.eps -------------------------------------------------------------------------------- /doc/logos/dae/Pyomo-DAE.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/doc/logos/dae/Pyomo-DAE.pdf -------------------------------------------------------------------------------- /doc/logos/doe/PyomoDoE-lg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/doc/logos/doe/PyomoDoE-lg.png -------------------------------------------------------------------------------- /doc/logos/doe/PyomoDoE-md.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/doc/logos/doe/PyomoDoE-md.png -------------------------------------------------------------------------------- /doc/logos/doe/PyomoDoE-sm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/doc/logos/doe/PyomoDoE-sm.png -------------------------------------------------------------------------------- /doc/logos/doe/PyomoDoE.ai: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/doc/logos/doe/PyomoDoE.ai -------------------------------------------------------------------------------- /doc/logos/doe/PyomoDoE.eps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/doc/logos/doe/PyomoDoE.eps -------------------------------------------------------------------------------- /doc/logos/doe/PyomoDoE.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/doc/logos/doe/PyomoDoE.pdf -------------------------------------------------------------------------------- /doc/logos/doe/PyomoDoE_noTXT-150.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/doc/logos/doe/PyomoDoE_noTXT-150.png -------------------------------------------------------------------------------- /doc/logos/doe/PyomoDoE_noTXT-300.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/doc/logos/doe/PyomoDoE_noTXT-300.png -------------------------------------------------------------------------------- /doc/logos/doe/PyomoDoE_noTXT-600.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/doc/logos/doe/PyomoDoE_noTXT-600.png -------------------------------------------------------------------------------- /doc/logos/doe/PyomoDoE_noTXT-72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/doc/logos/doe/PyomoDoE_noTXT-72.png -------------------------------------------------------------------------------- /doc/logos/gdp/Pyomo-GDP-150.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/doc/logos/gdp/Pyomo-GDP-150.png -------------------------------------------------------------------------------- /doc/logos/gdp/Pyomo-GDP.ai: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/doc/logos/gdp/Pyomo-GDP.ai -------------------------------------------------------------------------------- /doc/logos/gdp/Pyomo-GDP.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/doc/logos/gdp/Pyomo-GDP.png -------------------------------------------------------------------------------- /doc/logos/pyomo/PYOMO_noTXT-150.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/doc/logos/pyomo/PYOMO_noTXT-150.png -------------------------------------------------------------------------------- /doc/logos/pyomo/PYOMO_noTXT-300.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/doc/logos/pyomo/PYOMO_noTXT-300.png -------------------------------------------------------------------------------- /doc/logos/pyomo/PYOMO_noTXT-72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/doc/logos/pyomo/PYOMO_noTXT-72.png -------------------------------------------------------------------------------- /doc/logos/pyomo/Pyomo120x75.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/doc/logos/pyomo/Pyomo120x75.png -------------------------------------------------------------------------------- /doc/logos/pyomo/PyomoNewBlue.ai: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/doc/logos/pyomo/PyomoNewBlue.ai -------------------------------------------------------------------------------- /doc/logos/pyomo/PyomoNewBlue.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/doc/logos/pyomo/PyomoNewBlue.jpg -------------------------------------------------------------------------------- /doc/logos/pyomo/PyomoNewBlue3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/doc/logos/pyomo/PyomoNewBlue3.png -------------------------------------------------------------------------------- /doc/logos/pyomo/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/doc/logos/pyomo/favicon.ico -------------------------------------------------------------------------------- /doc/logos/pysp/PySP-logo-Web2.eps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/doc/logos/pysp/PySP-logo-Web2.eps -------------------------------------------------------------------------------- /doc/logos/pysp/PySP-logo-Web2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/doc/logos/pysp/PySP-logo-Web2.png -------------------------------------------------------------------------------- /doc/logos/pysp/PySP-logo-forPrint.ai: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/doc/logos/pysp/PySP-logo-forPrint.ai -------------------------------------------------------------------------------- /doc/logos/pysp/PySP-logo-forPrint.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/doc/logos/pysp/PySP-logo-forPrint.bmp -------------------------------------------------------------------------------- /doc/logos/pysp/PySP-logo-forPrint.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/doc/logos/pysp/PySP-logo-forPrint.jpg -------------------------------------------------------------------------------- /doc/logos/pysp/PySP-logo-forPrint.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/doc/logos/pysp/PySP-logo-forPrint.pdf -------------------------------------------------------------------------------- /doc/logos/pysp/PySP-logo-forWeb.eps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/doc/logos/pysp/PySP-logo-forWeb.eps -------------------------------------------------------------------------------- /doc/logos/pysp/PySP-logo-forWeb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/doc/logos/pysp/PySP-logo-forWeb.png -------------------------------------------------------------------------------- /doc/logos/pysp/PySP-logo-v2.ai: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/doc/logos/pysp/PySP-logo-v2.ai -------------------------------------------------------------------------------- /doc/logos/pysp/PySP-logo-v2.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/doc/logos/pysp/PySP-logo-v2.pdf -------------------------------------------------------------------------------- /doc/logos/pysp/PySP-logo-v2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/doc/logos/pysp/PySP-logo-v2.png -------------------------------------------------------------------------------- /examples/dae/README.txt: -------------------------------------------------------------------------------- 1 | # 2 | # Examples for pyomo.dae 3 | # 4 | -------------------------------------------------------------------------------- /examples/dae/data_set2.dat: -------------------------------------------------------------------------------- 1 | set t := 0 1 2 3 5 6 ; 2 | set MEAS_t := 1 2 3 5 ; 3 | param x1_meas := 4 | 1 0.264 5 | 2 0.594 6 | 3 0.801 7 | 5 0.959 8 | ; 9 | -------------------------------------------------------------------------------- /examples/doc/samples/case_studies/deer/DeerProblem.dat: -------------------------------------------------------------------------------- 1 | param p1 := 0.88; 2 | param p2 := 0.82; 3 | param p3 := 0.92; 4 | param p4 := 0.84; 5 | param p5 := 0.73; 6 | param p6 := 0.87; 7 | param p7 := 2700; 8 | param p8 := 2300; 9 | param p9 := 540; 10 | param ps := 700000; 11 | 12 | 13 | -------------------------------------------------------------------------------- /examples/doc/samples/case_studies/diet/DietProblem.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/examples/doc/samples/case_studies/diet/DietProblem.pdf -------------------------------------------------------------------------------- /examples/doc/samples/case_studies/max_flow/MaxFlow.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/examples/doc/samples/case_studies/max_flow/MaxFlow.pdf -------------------------------------------------------------------------------- /examples/doc/samples/case_studies/max_flow/MaxFlow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/examples/doc/samples/case_studies/max_flow/MaxFlow.png -------------------------------------------------------------------------------- /examples/doc/samples/case_studies/network_flow/NetworkFlow1-crop.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/examples/doc/samples/case_studies/network_flow/NetworkFlow1-crop.png -------------------------------------------------------------------------------- /examples/doc/samples/case_studies/network_flow/networkFlow1.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/examples/doc/samples/case_studies/network_flow/networkFlow1.pdf -------------------------------------------------------------------------------- /examples/doc/samples/case_studies/transportation/transportationProblem.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/examples/doc/samples/case_studies/transportation/transportationProblem.pdf -------------------------------------------------------------------------------- /examples/doc/samples/comparisons/cutstock/CHANGELOG.txt: -------------------------------------------------------------------------------- 1 | Revisions 2 | ----------------------------------------------------------------------------- 3 | 10/2011 Bjarni Kristjansson 4 | Initial creation of examples for cplex, gurobi, pulp, and lpsolve. 5 | 6 | 03/2011 Bill Hart 7 | Misc revisions and creation of example for pyomo. 8 | -------------------------------------------------------------------------------- /examples/doc/samples/comparisons/cutstock/Waste.csv: -------------------------------------------------------------------------------- 1 | 2 2 | 1 3 | 6 4 | 6 5 | 0 6 | 5 7 | 0 8 | 0 9 | 0 10 | 4 11 | 9 12 | 4 13 | 4 14 | 4 15 | 8 16 | 3 17 | 8 18 | 0 19 | 9 20 | 4 21 | 3 22 | 8 23 | 3 24 | 8 25 | 2 26 | 7 27 | 2 28 | 7 29 | 2 30 | -------------------------------------------------------------------------------- /examples/doc/samples/comparisons/cutstock/WidthDemand.csv: -------------------------------------------------------------------------------- 1 | 500 2 | 400 3 | 300 4 | 450 5 | 350 6 | 200 7 | 800 8 | 200 9 | -------------------------------------------------------------------------------- /examples/doc/samples/comparisons/sched/msfs/Sched.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/examples/doc/samples/comparisons/sched/msfs/Sched.xlsx -------------------------------------------------------------------------------- /examples/doc/samples/scripts/s1/knapsack.dat: -------------------------------------------------------------------------------- 1 | set ITEMS := hammer wrench screwdriver towel ; 2 | 3 | param : v w := 4 | hammer 8 5 5 | wrench 3 7 6 | screwdriver 6 4 7 | towel 11 3; 8 | 9 | param limit := 14; 10 | -------------------------------------------------------------------------------- /examples/doc/samples/scripts/s2/knapsack.dat: -------------------------------------------------------------------------------- 1 | set ITEMS := hammer wrench screwdriver towel ; 2 | 3 | param : v w := 4 | hammer 8 5 5 | wrench 3 7 6 | screwdriver 6 4 7 | towel 11 3; 8 | 9 | param limit := 14; 10 | -------------------------------------------------------------------------------- /examples/gdp/README.txt: -------------------------------------------------------------------------------- 1 | # 2 | # Examples for pyomo.gdp 3 | # 4 | -------------------------------------------------------------------------------- /examples/gdp/jobshop-small.dat: -------------------------------------------------------------------------------- 1 | 2 | set JOBS := A B C ; 3 | set STAGES := 1 2 3 ; 4 | 5 | param tau: 6 | 1 2 3 := 7 | A 5 . 3 8 | B . 3 2 9 | C 2 4 . ; 10 | 11 | -------------------------------------------------------------------------------- /examples/gdp/jobshop.dat: -------------------------------------------------------------------------------- 1 | 2 | set JOBS := A B C D E F G ; 3 | set STAGES := 1 2 3 4 5 ; 4 | 5 | param tau: 6 | 1 2 3 4 5 := 7 | A 3 . 5 . 2 8 | B . 3 4 . 3 9 | C 6 3 . 6 . 10 | D . 8 5 1 . 11 | E . 4 6 . 2 12 | F 2 . 5 7 . 13 | G . 8 . 5 4 ; 14 | -------------------------------------------------------------------------------- /examples/gdp/small_lit/README.md: -------------------------------------------------------------------------------- 1 | Small GDP model examples from literature 2 | -------------------------------------------------------------------------------- /examples/gdp/strip_packing/stripPacking_4BigM.dat: -------------------------------------------------------------------------------- 1 | set RECTANGLES := 1 2 3 4 ; 2 | 3 | param Heights := 4 | 1 6 5 | 2 3 6 | 3 4 7 | 4 2 8 | ; 9 | 10 | param Lengths := 11 | 1 6 12 | 2 8 13 | 3 5 14 | 4 3 15 | ; 16 | 17 | param StripWidth := 10 ; 18 | param LengthUB := 15 ; 19 | -------------------------------------------------------------------------------- /examples/mpec/linear1.mod: -------------------------------------------------------------------------------- 1 | param a = 100; 2 | 3 | var x1 >= -2, <= 2; 4 | var x2 >= -1, <= 1; 5 | 6 | minimize f: - x1 - 2*x2; 7 | 8 | s.t. c: x1 >= 0 complements x2 >= 0; 9 | 10 | -------------------------------------------------------------------------------- /examples/mpec/linear1_run.mod: -------------------------------------------------------------------------------- 1 | model linear1.mod; 2 | option presolve 0; 3 | option substout 0; 4 | option auxfiles rc; 5 | write gampl; 6 | -------------------------------------------------------------------------------- /examples/performance/README.txt: -------------------------------------------------------------------------------- 1 | Models that are used for testing Pyomo performance. 2 | -------------------------------------------------------------------------------- /examples/performance/jump/README: -------------------------------------------------------------------------------- 1 | Test files taken from: 2 | 3 | https://github.com/mlubin/JuMPSupplement 4 | 5 | These were used to generate performance comparisons for 6 | various modeling languages. 7 | -------------------------------------------------------------------------------- /examples/performance/jump/clnlbeam-5000.dat: -------------------------------------------------------------------------------- 1 | data; 2 | 3 | param N := 5000; 4 | -------------------------------------------------------------------------------- /examples/performance/jump/clnlbeam-50000.dat: -------------------------------------------------------------------------------- 1 | data; 2 | 3 | param N := 50000; 4 | -------------------------------------------------------------------------------- /examples/performance/jump/clnlbeam-500000.dat: -------------------------------------------------------------------------------- 1 | data; 2 | 3 | param N := 500000; 4 | -------------------------------------------------------------------------------- /examples/performance/misc/set1-100.dat: -------------------------------------------------------------------------------- 1 | param d := 100; 2 | -------------------------------------------------------------------------------- /examples/performance/misc/set1-1000.dat: -------------------------------------------------------------------------------- 1 | param d := 1000; 2 | -------------------------------------------------------------------------------- /examples/performance/misc/set1-10000.dat: -------------------------------------------------------------------------------- 1 | param d := 10000; 2 | -------------------------------------------------------------------------------- /examples/performance/pmedian/pmedian.dat: -------------------------------------------------------------------------------- 1 | param N := 10; 2 | param M := 6; 3 | param P := 3; 4 | -------------------------------------------------------------------------------- /examples/performance/pmedian/pmedian.test4.dat: -------------------------------------------------------------------------------- 1 | param N := 40; 2 | param M := 40; 3 | param P := 1; 4 | -------------------------------------------------------------------------------- /examples/performance/pmedian/pmedian.test6.dat: -------------------------------------------------------------------------------- 1 | param N := 160; 2 | param M := 160; 3 | param P := 1; 4 | -------------------------------------------------------------------------------- /examples/performance/pmedian/pmedian.test7.dat: -------------------------------------------------------------------------------- 1 | param N := 320; 2 | param M := 320; 3 | param P := 1; 4 | -------------------------------------------------------------------------------- /examples/performance/pmedian/pmedian.test8.dat: -------------------------------------------------------------------------------- 1 | param N := 640; 2 | param M := 640; 3 | param P := 1; 4 | -------------------------------------------------------------------------------- /examples/pyomo/amplbook2/README.txt: -------------------------------------------------------------------------------- 1 | Examples from "AMPL: A Modeling Language for Mathematical Programming", 2 | version 2. Pyomo examples are indicated with *.py files. SUCASA *.map 3 | files are also included, to validate SUCASA's ability to parse AMPL files. 4 | -------------------------------------------------------------------------------- /examples/pyomo/amplbook2/econ.map: -------------------------------------------------------------------------------- 1 | # 2 | # Mapfile econ.out.map generated by the 3 | # SUCASA MILPSymbInfo class. 4 | # 5 | set PROD within literals dimen 1; 6 | set ACT within literals dimen 1; 7 | param cost[ACT] in reals; 8 | param demand[PROD] in reals; 9 | param io[PROD,ACT] in reals; 10 | var Price[PROD]; 11 | var Level[ACT]; 12 | con Pri_Compl[PROD]; 13 | con Lev_Compl[ACT]; 14 | -------------------------------------------------------------------------------- /examples/pyomo/amplbook2/econmin.map: -------------------------------------------------------------------------------- 1 | # 2 | # Mapfile econmin.out.map generated by the 3 | # SUCASA MILPSymbInfo class. 4 | # 5 | set PROD within literals dimen 1; 6 | set ACT within literals dimen 1; 7 | param cost[ACT] in reals; 8 | param demand[PROD] in reals; 9 | param io[PROD,ACT] in reals; 10 | var Level[ACT]; 11 | con Total_Cost; 12 | con Demand[PROD]; 13 | -------------------------------------------------------------------------------- /examples/pyomo/amplbook2/net1node.map: -------------------------------------------------------------------------------- 1 | # 2 | # Mapfile net1node.out.map generated by the 3 | # SUCASA MILPSymbInfo class. 4 | # 5 | set CITIES within literals dimen 1; 6 | set LINKS within literals dimen 1; 7 | param supply[CITIES] in reals; 8 | param demand[CITIES] in reals; 9 | param cost[LINKS] in reals; 10 | param capacity[LINKS] in reals; 11 | con Total_Cost; 12 | -------------------------------------------------------------------------------- /examples/pyomo/amplbook2/netmax3.map: -------------------------------------------------------------------------------- 1 | # 2 | # Mapfile netmax3.out.map generated by the 3 | # SUCASA MILPSymbInfo class. 4 | # 5 | set INTER within literals dimen 1; 6 | param entr in reals; 7 | param exit in reals; 8 | set ROADS within literals dimen 1; 9 | param cap[ROADS] in reals; 10 | con Entering_Traff; 11 | -------------------------------------------------------------------------------- /examples/pyomo/amplbook2/prod.dat: -------------------------------------------------------------------------------- 1 | data; 2 | 3 | set P := bands coils; 4 | 5 | param: a c u := 6 | bands 200 25 6000 7 | coils 140 30 4000 ; 8 | 9 | param b := 40; 10 | -------------------------------------------------------------------------------- /examples/pyomo/amplbook2/prod.map: -------------------------------------------------------------------------------- 1 | # 2 | # Mapfile prod.out.map generated by the 3 | # SUCASA MILPSymbInfo class. 4 | # 5 | set P within literals dimen 1; 6 | param a[P] in reals; 7 | param b in reals; 8 | param c[P] in reals; 9 | param u[P] in reals; 10 | var X[P]; 11 | con Total_Profit; 12 | con Time; 13 | con Limit[P]; 14 | -------------------------------------------------------------------------------- /examples/pyomo/amplbook2/prod0.map: -------------------------------------------------------------------------------- 1 | # 2 | # Mapfile prod0.out.map generated by the 3 | # SUCASA MILPSymbInfo class. 4 | # 5 | var XB; 6 | var XC; 7 | con Profit; 8 | con Time; 9 | con B_limit; 10 | con C_limit; 11 | -------------------------------------------------------------------------------- /examples/pyomo/amplbook2/prod0.mod: -------------------------------------------------------------------------------- 1 | var XB; 2 | var XC; 3 | maximize Profit: 25 * XB + 30 * XC; 4 | subject to Time: (1/200) * XB + (1/140) * XC <= 40; 5 | subject to B_limit: 0 <= XB <= 6000; 6 | subject to C_limit: 0 <= XC <= 4000; 7 | -------------------------------------------------------------------------------- /examples/pyomo/amplbook2/steel.dat: -------------------------------------------------------------------------------- 1 | data; 2 | 3 | set PROD := bands coils; 4 | 5 | param: rate profit market := 6 | bands 200 25 6000 7 | coils 140 30 4000 ; 8 | 9 | param avail := 40; 10 | -------------------------------------------------------------------------------- /examples/pyomo/amplbook2/steel.map: -------------------------------------------------------------------------------- 1 | # 2 | # Mapfile steel.out.map generated by the 3 | # SUCASA MILPSymbInfo class. 4 | # 5 | set PROD within literals dimen 1; 6 | param rate[PROD] in reals; 7 | param avail in reals; 8 | param profit[PROD] in reals; 9 | param market[PROD] in reals; 10 | var Make[PROD]; 11 | con Total_Profit; 12 | con Time; 13 | -------------------------------------------------------------------------------- /examples/pyomo/amplbook2/steel2.dat: -------------------------------------------------------------------------------- 1 | data; 2 | 3 | set PROD := bands coils plate; 4 | 5 | param: rate profit market := 6 | bands 200 25 6000 7 | coils 140 30 4000 8 | plate 160 29 3500 ; 9 | 10 | param avail := 40; 11 | -------------------------------------------------------------------------------- /examples/pyomo/amplbook2/steel3.dat: -------------------------------------------------------------------------------- 1 | data; 2 | 3 | set PROD := bands coils plate; 4 | 5 | param: rate profit commit market := 6 | bands 200 25 1000 6000 7 | coils 140 30 500 4000 8 | plate 160 29 750 3500 ; 9 | 10 | param avail := 40; 11 | -------------------------------------------------------------------------------- /examples/pyomo/amplbook2/steel3.map: -------------------------------------------------------------------------------- 1 | # 2 | # Mapfile steel3.out.map generated by the 3 | # SUCASA MILPSymbInfo class. 4 | # 5 | set PROD within literals dimen 1; 6 | param rate[PROD] in reals; 7 | param avail in reals; 8 | param profit[PROD] in reals; 9 | param commit[PROD] in reals; 10 | param market[PROD] in reals; 11 | var Make[PROD]; 12 | con Total_Profit; 13 | con Time; 14 | -------------------------------------------------------------------------------- /examples/pyomo/concrete/knapsack.dat: -------------------------------------------------------------------------------- 1 | set ITEMS := hammer wrench screwdriver towel ; 2 | 3 | param : v w := 4 | hammer 8 5 5 | wrench 3 7 6 | screwdriver 6 4 7 | towel 11 3; 8 | 9 | param limit := 14; 10 | -------------------------------------------------------------------------------- /examples/pyomo/diet/diet.mdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/examples/pyomo/diet/diet.mdb -------------------------------------------------------------------------------- /examples/pyomo/diet/diet.sqlite: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/examples/pyomo/diet/diet.sqlite -------------------------------------------------------------------------------- /examples/pyomo/diet/diet1.db.dat: -------------------------------------------------------------------------------- 1 | load "Driver={Microsoft Access Driver (*.mdb)};DBQ=diet.mdb" 2 | using=pyodbc 3 | query="SELECT FOOD,cost,f_min,f_max FROM Food": 4 | [FOOD] cost f_min f_max; 5 | -------------------------------------------------------------------------------- /examples/pyomo/diet/diet1.sql.dat: -------------------------------------------------------------------------------- 1 | load "Driver={MySQL};Database=pyomo_diet;Server=giskard.sandia.gov;User=pyomo;Password=pyomo;" using=pyodbc query="SELECT FOOD,cost,f_min,f_max FROM Food" : [FOOD] cost f_min f_max ; 2 | -------------------------------------------------------------------------------- /examples/pyomo/diet/diet1.sqlite.dat: -------------------------------------------------------------------------------- 1 | load "diet.sqlite" using=sqlite3 query="SELECT FOOD,cost,f_min,f_max FROM Food" : FOOD=[FOOD] cost f_min f_max ; 2 | -------------------------------------------------------------------------------- /examples/pyomo/diet/diet2.ampl: -------------------------------------------------------------------------------- 1 | model diet2.mod; 2 | data diet.dat; 3 | option solver cbc; 4 | solve; 5 | -------------------------------------------------------------------------------- /examples/pyomo/draft/README.txt: -------------------------------------------------------------------------------- 1 | Miscellaneous examples that have not been translated into Pyomo ... yet. 2 | -------------------------------------------------------------------------------- /examples/pyomo/draft/bpack.map: -------------------------------------------------------------------------------- 1 | # 2 | # Mapfile bpack.out.map generated by the 3 | # SUCASA MILPSymbInfo class. 4 | # 5 | param N in reals; 6 | set I within literals dimen 1; 7 | var b[I]; 8 | con zot; 9 | set set0 within literals dimen 1; 10 | set set1 within literals dimen 1; 11 | param w[set0,set1] in reals; 12 | param rhs[set0] in reals; 13 | con bletch[set0]; 14 | -------------------------------------------------------------------------------- /examples/pyomo/p-median/ampl1.in: -------------------------------------------------------------------------------- 1 | model pmedian.mod; 2 | data pmedian.test1.dat; 3 | write gpmedian; 4 | -------------------------------------------------------------------------------- /examples/pyomo/p-median/ampl2.in: -------------------------------------------------------------------------------- 1 | model pmedian.mod; 2 | data pmedian.test2.dat; 3 | write gpmedian; 4 | -------------------------------------------------------------------------------- /examples/pyomo/p-median/ampl3.in: -------------------------------------------------------------------------------- 1 | model pmedian.mod; 2 | data pmedian.test3.dat; 3 | write gpmedian; 4 | -------------------------------------------------------------------------------- /examples/pyomo/p-median/ampl4.in: -------------------------------------------------------------------------------- 1 | model pmedian.mod; 2 | data pmedian.test4.dat; 3 | write gpmedian; 4 | -------------------------------------------------------------------------------- /examples/pyomo/p-median/ampl5.in: -------------------------------------------------------------------------------- 1 | model pmedian.mod; 2 | data pmedian.test5.dat; 3 | write gpmedian; 4 | -------------------------------------------------------------------------------- /examples/pyomo/p-median/ampl6.in: -------------------------------------------------------------------------------- 1 | model pmedian.mod; 2 | data pmedian.test6.dat; 3 | write gpmedian; 4 | -------------------------------------------------------------------------------- /examples/pyomo/p-median/ampl7.in: -------------------------------------------------------------------------------- 1 | model pmedian.mod; 2 | data pmedian.test7.dat; 3 | write gpmedian; 4 | -------------------------------------------------------------------------------- /examples/pyomo/p-median/ampl8.in: -------------------------------------------------------------------------------- 1 | model pmedian.mod; 2 | data pmedian.test8.dat; 3 | write gpmedian; 4 | -------------------------------------------------------------------------------- /examples/pyomo/p-median/pmedian.ampl: -------------------------------------------------------------------------------- 1 | model pmedian.mod; 2 | data pmedian.dat; 3 | option solver cplexamp; 4 | solve; 5 | -------------------------------------------------------------------------------- /examples/pyomo/p-median/pmedian.dat: -------------------------------------------------------------------------------- 1 | param N := 10; 2 | param M := 6; 3 | param P := 3; 4 | -------------------------------------------------------------------------------- /examples/pyomo/p-median/pmedian.test1.dat: -------------------------------------------------------------------------------- 1 | param N := 5; 2 | param M := 5; 3 | param P := 1; 4 | -------------------------------------------------------------------------------- /examples/pyomo/p-median/pmedian.test2.dat: -------------------------------------------------------------------------------- 1 | param N := 10; 2 | param M := 10; 3 | param P := 1; 4 | -------------------------------------------------------------------------------- /examples/pyomo/p-median/pmedian.test3.dat: -------------------------------------------------------------------------------- 1 | param N := 20; 2 | param M := 20; 3 | param P := 1; 4 | -------------------------------------------------------------------------------- /examples/pyomo/p-median/pmedian.test4.dat: -------------------------------------------------------------------------------- 1 | param N := 40; 2 | param M := 40; 3 | param P := 1; 4 | -------------------------------------------------------------------------------- /examples/pyomo/p-median/pmedian.test5.dat: -------------------------------------------------------------------------------- 1 | param N := 80; 2 | param M := 80; 3 | param P := 1; 4 | -------------------------------------------------------------------------------- /examples/pyomo/p-median/pmedian.test6.dat: -------------------------------------------------------------------------------- 1 | param N := 160; 2 | param M := 160; 3 | param P := 1; 4 | -------------------------------------------------------------------------------- /examples/pyomo/p-median/pmedian.test7.dat: -------------------------------------------------------------------------------- 1 | param N := 320; 2 | param M := 320; 3 | param P := 1; 4 | -------------------------------------------------------------------------------- /examples/pyomo/p-median/pmedian.test8.dat: -------------------------------------------------------------------------------- 1 | param N := 640; 2 | param M := 640; 3 | param P := 1; 4 | -------------------------------------------------------------------------------- /examples/pyomo/radertext/Ex2_2.dat: -------------------------------------------------------------------------------- 1 | param NumTimePeriods := 6; 2 | 3 | param RequiredWorkers := 4 | 1 8 5 | 2 9 6 | 3 15 7 | 4 14 8 | 5 13 9 | 6 11; 10 | -------------------------------------------------------------------------------- /examples/pyomo/radertext/Ex2_6.dat: -------------------------------------------------------------------------------- 1 | param NumSensors := 3; 2 | 3 | param: xPos yPos := 4 | 1 10 3 5 | 2 5 15 6 | 3 20 25; 7 | -------------------------------------------------------------------------------- /examples/pyomo/sos/DepotSiting.dat: -------------------------------------------------------------------------------- 1 | set Customers := W X Y Z ; 2 | 3 | set Sites := A B C D ; 4 | 5 | param SatisfactionCost := 6 | 7 | W A 10 8 | W B 15 9 | W C 65 10 | W D 43 11 | 12 | X A 28 13 | X B 56 14 | X C 26 15 | X D 89 16 | 17 | Y A 15 18 | Y B 50 19 | Y C 19 20 | Y D 17 21 | 22 | Z A 90 23 | Z B 76 24 | Z C 11 25 | Z D 45 26 | 27 | ; 28 | -------------------------------------------------------------------------------- /examples/pyomo/tutorials/csv/A.csv: -------------------------------------------------------------------------------- 1 | A 2 | A1 3 | A2 4 | A3 5 | -------------------------------------------------------------------------------- /examples/pyomo/tutorials/csv/B.csv: -------------------------------------------------------------------------------- 1 | B 2 | 1 3 | 2 4 | 3 5 | -------------------------------------------------------------------------------- /examples/pyomo/tutorials/csv/C.csv: -------------------------------------------------------------------------------- 1 | A,B 2 | A1,1 3 | A1,2 4 | A1,3 5 | A2,1 6 | A2,2 7 | A2,3 8 | A3,1 9 | A3,2 10 | A3,3 11 | -------------------------------------------------------------------------------- /examples/pyomo/tutorials/csv/D.csv: -------------------------------------------------------------------------------- 1 | B,A1,A2,A3 2 | 1,+,-,- 3 | 2,-,+,- 4 | 3,-,-,+ 5 | -------------------------------------------------------------------------------- /examples/pyomo/tutorials/csv/E.csv: -------------------------------------------------------------------------------- 1 | A,B,A 2 | A1,1,A1 3 | A1,1,A2 4 | A2,2,A2 5 | A2,2,A3 6 | A3,3,A1 7 | A3,3,A3 8 | -------------------------------------------------------------------------------- /examples/pyomo/tutorials/csv/I.csv: -------------------------------------------------------------------------------- 1 | I 2 | I1 3 | I2 4 | I3 5 | I4 6 | -------------------------------------------------------------------------------- /examples/pyomo/tutorials/csv/PO.csv: -------------------------------------------------------------------------------- 1 | A,B,P,O 2 | A1,B1,4.3,5.3 3 | A2,B2,4.4,5.4 4 | A3,B3,4.5,5.5 5 | -------------------------------------------------------------------------------- /examples/pyomo/tutorials/csv/PP.csv: -------------------------------------------------------------------------------- 1 | A,B,PP 2 | A1,B1,4.3 3 | A2,B2,4.4 4 | A3,B3,4.5 5 | -------------------------------------------------------------------------------- /examples/pyomo/tutorials/csv/RQ.csv: -------------------------------------------------------------------------------- 1 | H,R,Q 2 | H1,3.3,4.3 3 | H2,3.4,4.4 4 | H3,3.5,4.5 5 | -------------------------------------------------------------------------------- /examples/pyomo/tutorials/csv/S.csv: -------------------------------------------------------------------------------- 1 | A,S 2 | A1,3.3 3 | A2,. 4 | A3,3.5 5 | -------------------------------------------------------------------------------- /examples/pyomo/tutorials/csv/T.csv: -------------------------------------------------------------------------------- 1 | I,A1,A2,A3 2 | I1,1.3,2.3,3.3 3 | I2,1.4,2.4,3.4 4 | I3,1.5,2.5,3.5 5 | I4,1.6,2.6,3.6 6 | -------------------------------------------------------------------------------- /examples/pyomo/tutorials/csv/U.csv: -------------------------------------------------------------------------------- 1 | I,A1,A2,A3 2 | I1,1.3,2.3,3.3 3 | I2,1.4,2.4,3.4 4 | I3,1.5,2.5,3.5 5 | I4,1.6,2.6,3.6 6 | -------------------------------------------------------------------------------- /examples/pyomo/tutorials/csv/XW.csv: -------------------------------------------------------------------------------- 1 | A,X,W 2 | A1,3.3,4.3 3 | A2,3.4,4.4 4 | A3,3.5,4.5 5 | -------------------------------------------------------------------------------- /examples/pyomo/tutorials/csv/Y.csv: -------------------------------------------------------------------------------- 1 | A,Y 2 | A1,3.3 3 | A2,3.4 4 | A3,3.5 5 | -------------------------------------------------------------------------------- /examples/pyomo/tutorials/csv/Z.csv: -------------------------------------------------------------------------------- 1 | 1.01 2 | -------------------------------------------------------------------------------- /examples/pyomo/tutorials/excel.xls: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/examples/pyomo/tutorials/excel.xls -------------------------------------------------------------------------------- /examples/pyomo/tutorials/excel.xlsb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/examples/pyomo/tutorials/excel.xlsb -------------------------------------------------------------------------------- /examples/pyomo/tutorials/excel.xlsm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/examples/pyomo/tutorials/excel.xlsm -------------------------------------------------------------------------------- /examples/pyomo/tutorials/excel.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/examples/pyomo/tutorials/excel.xlsx -------------------------------------------------------------------------------- /examples/pyomo/tutorials/json/A.json: -------------------------------------------------------------------------------- 1 | { "A": [ "A1", "A2", "A3" ] } 2 | -------------------------------------------------------------------------------- /examples/pyomo/tutorials/json/B.json: -------------------------------------------------------------------------------- 1 | { "B": [ 1, 2, 3] } 2 | -------------------------------------------------------------------------------- /examples/pyomo/tutorials/json/C.json: -------------------------------------------------------------------------------- 1 | { "C": [ 2 | ["A1",1], 3 | ["A1",2], 4 | ["A1",3], 5 | ["A2",1], 6 | ["A2",2], 7 | ["A2",3], 8 | ["A3",1], 9 | ["A3",2], 10 | ["A3",3] 11 | ] 12 | } 13 | 14 | -------------------------------------------------------------------------------- /examples/pyomo/tutorials/json/PP.json: -------------------------------------------------------------------------------- 1 | { 2 | "A": ["A1", "A2", "A3"], 3 | "B": ["B1", "B2", "B3"], 4 | "PP": [ 5 | {"index":["A1","B1"], "value":4.3}, 6 | {"index":["A2","B2"], "value":4.4}, 7 | {"index":["A3","B3"], "value":4.5} 8 | ] 9 | } 10 | -------------------------------------------------------------------------------- /examples/pyomo/tutorials/json/S.json: -------------------------------------------------------------------------------- 1 | {"S": {"A1":3.3, "A3":3.5}} 2 | -------------------------------------------------------------------------------- /examples/pyomo/tutorials/json/XW.json: -------------------------------------------------------------------------------- 1 | { 2 | "A": ["A1", "A2", "A3"], 3 | "X": {"A1":3.3, "A2":3.4, "A3":3.5}, 4 | "W": {"A1":4.3, "A2":4.4, "A3":4.5} 5 | } 6 | -------------------------------------------------------------------------------- /examples/pyomo/tutorials/json/Y.json: -------------------------------------------------------------------------------- 1 | {"Y": {"A1":3.3, "A2":3.4, "A3":3.5}} 2 | -------------------------------------------------------------------------------- /examples/pyomo/tutorials/json/Z.json: -------------------------------------------------------------------------------- 1 | {"Z":1.01} 2 | -------------------------------------------------------------------------------- /examples/pyomo/tutorials/tab/A.tab: -------------------------------------------------------------------------------- 1 | A 2 | A1 3 | A2 4 | A3 5 | -------------------------------------------------------------------------------- /examples/pyomo/tutorials/tab/B.tab: -------------------------------------------------------------------------------- 1 | B 2 | 1 3 | 2 4 | 3 5 | -------------------------------------------------------------------------------- /examples/pyomo/tutorials/tab/C.tab: -------------------------------------------------------------------------------- 1 | A B 2 | A1 1 3 | A1 2 4 | A1 3 5 | A2 1 6 | A2 2 7 | A2 3 8 | A3 1 9 | A3 2 10 | A3 3 11 | -------------------------------------------------------------------------------- /examples/pyomo/tutorials/tab/D.tab: -------------------------------------------------------------------------------- 1 | B A1 A2 A3 2 | 1 + - - 3 | 2 - + - 4 | 3 - - + 5 | -------------------------------------------------------------------------------- /examples/pyomo/tutorials/tab/E.tab: -------------------------------------------------------------------------------- 1 | A B A 2 | A1 1 A1 3 | A1 1 A2 4 | A2 2 A2 5 | A2 2 A3 6 | A3 3 A1 7 | A3 3 A3 8 | -------------------------------------------------------------------------------- /examples/pyomo/tutorials/tab/I.tab: -------------------------------------------------------------------------------- 1 | I 2 | I1 3 | I2 4 | I3 5 | I4 6 | -------------------------------------------------------------------------------- /examples/pyomo/tutorials/tab/PO.tab: -------------------------------------------------------------------------------- 1 | A B P O 2 | A1 B1 4.3 5.3 3 | A2 B2 4.4 5.4 4 | A3 B3 4.5 5.5 5 | -------------------------------------------------------------------------------- /examples/pyomo/tutorials/tab/PP.tab: -------------------------------------------------------------------------------- 1 | A B PP 2 | A1 B1 4.3 3 | A2 B2 4.4 4 | A3 B3 4.5 5 | -------------------------------------------------------------------------------- /examples/pyomo/tutorials/tab/RQ.tab: -------------------------------------------------------------------------------- 1 | H R Q 2 | H1 3.3 4.3 3 | H2 3.4 4.4 4 | H3 3.5 4.5 5 | -------------------------------------------------------------------------------- /examples/pyomo/tutorials/tab/S.tab: -------------------------------------------------------------------------------- 1 | A S 2 | A1 3.3 3 | A2 . 4 | A3 3.5 5 | -------------------------------------------------------------------------------- /examples/pyomo/tutorials/tab/T.tab: -------------------------------------------------------------------------------- 1 | I A1 A2 A3 2 | I1 1.3 2.3 3.3 3 | I2 1.4 2.4 3.4 4 | I3 1.5 2.5 3.5 5 | I4 1.6 2.6 3.6 6 | -------------------------------------------------------------------------------- /examples/pyomo/tutorials/tab/U.tab: -------------------------------------------------------------------------------- 1 | I A1 A2 A3 2 | I1 1.3 2.3 3.3 3 | I2 1.4 2.4 3.4 4 | I3 1.5 2.5 3.5 5 | I4 1.6 2.6 3.6 6 | -------------------------------------------------------------------------------- /examples/pyomo/tutorials/tab/XW.tab: -------------------------------------------------------------------------------- 1 | A X W 2 | A1 3.3 4.3 3 | A2 3.4 4.4 4 | A3 3.5 4.5 5 | -------------------------------------------------------------------------------- /examples/pyomo/tutorials/tab/Y.tab: -------------------------------------------------------------------------------- 1 | A Y 2 | A1 3.3 3 | A2 3.4 4 | A3 3.5 5 | -------------------------------------------------------------------------------- /examples/pyomo/tutorials/tab/Z.tab: -------------------------------------------------------------------------------- 1 | 1.01 2 | -------------------------------------------------------------------------------- /examples/pyomo/tutorials/xml/A.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | A1 4 | 5 | 6 | A2 7 | 8 | 9 | A3 10 | 11 |
12 | -------------------------------------------------------------------------------- /examples/pyomo/tutorials/xml/B.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 1 4 | 5 | 6 | 2 7 | 8 | 9 | 3 10 | 11 |
12 | -------------------------------------------------------------------------------- /examples/pyomo/tutorials/xml/I.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | -------------------------------------------------------------------------------- /examples/pyomo/tutorials/xml/PO.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |

6 | 7 | 8 | 9 | 10 | 11 |

12 | 13 | 14 | 15 | 16 | 17 |

18 | 19 | 20 |

21 | -------------------------------------------------------------------------------- /examples/pyomo/tutorials/xml/PP.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | -------------------------------------------------------------------------------- /examples/pyomo/tutorials/xml/RQ.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | -------------------------------------------------------------------------------- /examples/pyomo/tutorials/xml/S.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | -------------------------------------------------------------------------------- /examples/pyomo/tutorials/xml/XW.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | -------------------------------------------------------------------------------- /examples/pyomo/tutorials/xml/XW_nested2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 |
22 |
23 | -------------------------------------------------------------------------------- /examples/pyomo/tutorials/xml/Y.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | -------------------------------------------------------------------------------- /examples/pyomo/tutorials/xml/Z.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 | -------------------------------------------------------------------------------- /examples/pyomo/tutorials/yaml/A.yaml: -------------------------------------------------------------------------------- 1 | A: 2 | - A1 3 | - A2 4 | - A3 5 | -------------------------------------------------------------------------------- /examples/pyomo/tutorials/yaml/B.yaml: -------------------------------------------------------------------------------- 1 | B: 2 | - 1 3 | - 2 4 | - 3 5 | -------------------------------------------------------------------------------- /examples/pyomo/tutorials/yaml/C.yaml: -------------------------------------------------------------------------------- 1 | C: 2 | - [A1 , 1] 3 | - [A1 , 2] 4 | - [A1 , 3] 5 | - [A2 , 1] 6 | - [A2 , 2] 7 | - [A2 , 3] 8 | - [A3 , 1] 9 | - [A3 , 2] 10 | - [A3 , 3] 11 | -------------------------------------------------------------------------------- /examples/pyomo/tutorials/yaml/PP.yaml: -------------------------------------------------------------------------------- 1 | A: 2 | - A1 3 | - A2 4 | - A3 5 | B: 6 | - B1 7 | - B2 8 | - B3 9 | PP: 10 | - index: [A1, B1] 11 | value: 4.3 12 | - index: [A2, B2] 13 | value: 4.4 14 | - index: [A3, B3] 15 | value: 4.5 16 | -------------------------------------------------------------------------------- /examples/pyomo/tutorials/yaml/S.yaml: -------------------------------------------------------------------------------- 1 | S: 2 | A1: 3.3 3 | A3: 3.5 4 | -------------------------------------------------------------------------------- /examples/pyomo/tutorials/yaml/XW.yaml: -------------------------------------------------------------------------------- 1 | A: [A1, A2, A3] 2 | X: 3 | A1: 3.3 4 | A2: 3.4 5 | A3: 3.5 6 | W: 7 | A1: 4.3 8 | A2: 4.4 9 | A3: 4.5 10 | -------------------------------------------------------------------------------- /examples/pyomo/tutorials/yaml/Y.yaml: -------------------------------------------------------------------------------- 1 | Y: 2 | A1: 3.3 3 | A2: 3.4 4 | A3: 3.5 5 | -------------------------------------------------------------------------------- /examples/pyomo/tutorials/yaml/Z.yaml: -------------------------------------------------------------------------------- 1 | Z: 1.01 2 | -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/ABCD.xls: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/examples/pyomobook/abstract-ch/ABCD.xls -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/AbstractH.dat: -------------------------------------------------------------------------------- 1 | # Pyomo data file for AbstractH.py 2 | set A := I_C_Scoops Peanuts ; 3 | param h := I_C_Scoops 1 Peanuts 0.1 ; 4 | param d := 5 | I_C_Scoops 5 6 | Peanuts 27 ; 7 | param c := I_C_Scoops 3.14 Peanuts 0.2718 ; 8 | param b := 12 ; 9 | param u := I_C_Scoops 100 Peanuts 40.6 ; 10 | -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/abstract5.dat: -------------------------------------------------------------------------------- 1 | set N := 1 2 ; 2 | 3 | set M := 1 2 ; 4 | 5 | param c := 6 | 1 1 7 | 2 2 ; 8 | 9 | param a := 10 | 1 1 3 11 | 2 1 4 12 | 1 2 2 13 | 2 2 5 ; 14 | 15 | param b := 16 | 1 1 17 | 2 2 ; 18 | -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/abstract5.yaml: -------------------------------------------------------------------------------- 1 | # abstract5.yaml 2 | model: 3 | filename: abstract5.py 4 | data: 5 | files: 6 | - abstract5.dat 7 | solvers: 8 | - solver name: glpk 9 | -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/abstract6.dat: -------------------------------------------------------------------------------- 1 | set N := 1 2 ; 2 | 3 | set M := 1 2 ; 4 | 5 | param c := 6 | 1 1 7 | 2 2 ; 8 | 9 | param a := 10 | 1 1 3 11 | 2 1 4 12 | 1 2 2 13 | 2 2 5 ; 14 | 15 | param b := 16 | 1 1 17 | 2 2 ; 18 | -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/concrete1.yaml: -------------------------------------------------------------------------------- 1 | # concrete1.yaml 2 | model: 3 | filename: concrete1.py 4 | solvers: 5 | - solver name: glpk 6 | -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/diet.sqlite: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/examples/pyomobook/abstract-ch/diet.sqlite -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/diet.sqlite.dat: -------------------------------------------------------------------------------- 1 | # File diet.sqlite.dat 2 | 3 | load "diet.sqlite" 4 | using=sqlite3 5 | query="SELECT FOOD,cost,f_min,f_max FROM Food" 6 | : FOOD=[FOOD] cost f_min f_max ; 7 | -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/ex.dat: -------------------------------------------------------------------------------- 1 | include ex1.dat; 2 | include ex2.dat; 3 | -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/ex.txt: -------------------------------------------------------------------------------- 1 | 2 2 | -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/ex1.dat: -------------------------------------------------------------------------------- 1 | param z := 1; 2 | -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/ex2.dat: -------------------------------------------------------------------------------- 1 | param z := 2; 2 | -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/namespace1.dat: -------------------------------------------------------------------------------- 1 | set C := 1 2 3 ; 2 | 3 | namespace ns1 4 | { 5 | set C := 4 5 6 ; 6 | } 7 | 8 | namespace ns2 9 | { 10 | set C := 7 8 9 ; 11 | } 12 | 13 | -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/param1.dat: -------------------------------------------------------------------------------- 1 | param A := 1.4; 2 | param B := 1; 3 | param C := abc; 4 | param D := true; 5 | param E := 1.0e+04; 6 | -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/param1.txt: -------------------------------------------------------------------------------- 1 | 1.4 2 | 1 3 | abc 4 | True 5 | 10000.0 6 | -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/param2.dat: -------------------------------------------------------------------------------- 1 | set A := a c e; 2 | 3 | param B := a 10 c 30 e 50; 4 | -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/param2.txt: -------------------------------------------------------------------------------- 1 | a 10 2 | c 30 3 | e 50 4 | -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/param2a.dat: -------------------------------------------------------------------------------- 1 | set A := a c e; 2 | 3 | param B := 4 | a 10 5 | c 30 6 | e 50 7 | ; 8 | -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/param2a.txt: -------------------------------------------------------------------------------- 1 | a 10 2 | c 30 3 | e 50 4 | -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/param3.dat: -------------------------------------------------------------------------------- 1 | set A := a c e; 2 | 3 | param : B C D := 4 | a 10 -1 1.1 5 | c 30 -3 3.3 6 | e 50 -5 5.5 7 | ; 8 | -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/param3.txt: -------------------------------------------------------------------------------- 1 | B 2 | a 10 3 | c 30 4 | e 50 5 | C 6 | a -1 7 | c -3 8 | e -5 9 | D 10 | a 1.1 11 | c 3.3 12 | e 5.5 13 | -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/param3a.dat: -------------------------------------------------------------------------------- 1 | set A := a c e g; 2 | 3 | param : B C D := 4 | a 10 -1 1.1 5 | c 30 -3 3.3 6 | e 50 -5 5.5 7 | ; 8 | -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/param3a.txt: -------------------------------------------------------------------------------- 1 | B 2 | a 10 3 | c 30 4 | e 50 5 | C 6 | a -1 7 | c -3 8 | e -5 9 | D 10 | a 1.1 11 | c 3.3 12 | e 5.5 13 | -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/param3b.dat: -------------------------------------------------------------------------------- 1 | set A := a c e; 2 | 3 | param : B C D := 4 | a . -1 1.1 5 | c 30 . 3.3 6 | e 50 -5 . 7 | ; 8 | -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/param3b.txt: -------------------------------------------------------------------------------- 1 | B 2 | c 30 3 | e 50 4 | C 5 | a -1 6 | e -5 7 | D 8 | a 1.1 9 | c 3.3 10 | -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/param3c.dat: -------------------------------------------------------------------------------- 1 | param : A : B C D := 2 | a 10 -1 1.1 3 | c 30 -3 3.3 4 | e 50 -5 5.5 5 | ; 6 | -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/param3c.txt: -------------------------------------------------------------------------------- 1 | B 2 | a 10 3 | c 30 4 | e 50 5 | C 6 | a -1 7 | c -3 8 | e -5 9 | D 10 | a 1.1 11 | c 3.3 12 | e 5.5 13 | -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/param4.dat: -------------------------------------------------------------------------------- 1 | set A := a c e; 2 | 3 | param B default 0.0 := 4 | c 30 5 | e 50 6 | ; 7 | -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/param4.txt: -------------------------------------------------------------------------------- 1 | B 2 | a 0.0 3 | c 30 4 | e 50 5 | -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/param5.dat: -------------------------------------------------------------------------------- 1 | set A := a 1 c 2 e 3; 2 | 3 | param B := 4 | a 1 10 5 | c 2 30 6 | e 3 50; 7 | -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/param5.txt: -------------------------------------------------------------------------------- 1 | ('a', 1) 10 2 | ('c', 2) 30 3 | ('e', 3) 50 4 | -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/param5a.dat: -------------------------------------------------------------------------------- 1 | set A := a 1 c 2 e 3; 2 | 3 | param B default 0 := 4 | a 1 10 5 | c 2 . 6 | e 3 50; 7 | -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/param5a.txt: -------------------------------------------------------------------------------- 1 | ('a', 1) 10 2 | ('c', 2) 0 3 | ('e', 3) 50 4 | -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/param6.dat: -------------------------------------------------------------------------------- 1 | set A := a 1 c 2 e 3; 2 | 3 | param : B C D := 4 | a 1 10 -1 1.1 5 | c 2 30 -3 3.3 6 | e 3 50 -5 5.5 7 | ; 8 | -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/param6.txt: -------------------------------------------------------------------------------- 1 | B 2 | ('a', 1) 10 3 | ('c', 2) 30 4 | ('e', 3) 50 5 | C 6 | ('a', 1) -1 7 | ('c', 2) -3 8 | ('e', 3) -5 9 | D 10 | ('a', 1) 1.1 11 | ('c', 2) 3.3 12 | ('e', 3) 5.5 13 | -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/param6a.dat: -------------------------------------------------------------------------------- 1 | param : A : B C D := 2 | a 1 10 -1 1.1 3 | c 2 30 -3 3.3 4 | e 3 50 -5 5.5 5 | ; 6 | -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/param6a.txt: -------------------------------------------------------------------------------- 1 | B 2 | ('a', 1) 10 3 | ('c', 2) 30 4 | ('e', 3) 50 5 | C 6 | ('a', 1) -1 7 | ('c', 2) -3 8 | ('e', 3) -5 9 | D 10 | ('a', 1) 1.1 11 | ('c', 2) 3.3 12 | ('e', 3) 5.5 13 | -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/param7a.dat: -------------------------------------------------------------------------------- 1 | set A := 1 a 1 c 1 e 2 a 2 c 2 e 3 a 3 c 3 e; 2 | 3 | param B : a c e := 4 | 1 1 2 3 5 | 2 4 5 6 6 | 3 7 8 9 7 | ; 8 | -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/param7a.txt: -------------------------------------------------------------------------------- 1 | (1, 'a') 1 2 | (1, 'c') 2 3 | (1, 'e') 3 4 | (2, 'a') 4 5 | (2, 'c') 5 6 | (2, 'e') 6 7 | (3, 'a') 7 8 | (3, 'c') 8 9 | (3, 'e') 9 10 | -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/param7b.dat: -------------------------------------------------------------------------------- 1 | set A := 1 a 1 c 1 e 2 a 2 c 2 e 3 a 3 c 3 e; 2 | 3 | param B (tr) : 1 2 3 := 4 | a 1 4 7 5 | c 2 5 8 6 | e 3 6 9 7 | ; 8 | -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/param7b.txt: -------------------------------------------------------------------------------- 1 | (1, 'a') 1 2 | (1, 'c') 2 3 | (1, 'e') 3 4 | (2, 'a') 4 5 | (2, 'c') 5 6 | (2, 'e') 6 7 | (3, 'a') 7 8 | (3, 'c') 8 9 | (3, 'e') 9 10 | -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/param8a.dat: -------------------------------------------------------------------------------- 1 | set A := (a,1,a,1) (a,2,a,2) (b,1,b,1) (b,2,b,2); 2 | 3 | param B := 4 | 5 | [*,1,*,1] a a 10 b b 20 6 | [*,2,*,2] a a 30 b b 40 7 | ; 8 | -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/param8a.txt: -------------------------------------------------------------------------------- 1 | ('a', 1, 'a', 1) 10 2 | ('a', 2, 'a', 2) 30 3 | ('b', 1, 'b', 1) 20 4 | ('b', 2, 'b', 2) 40 5 | -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/pyomo.AbstractH.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | pyomo solve --solver=ipopt AbstractH.py AbstractH.dat 4 | cat results.yml 5 | rm -f results.yml results.json 6 | -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/pyomo.AbstractHLinear.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | pyomo solve --solver=glpk AbstractHLinear.py AbstractH.dat 4 | cat results.yml 5 | rm -f results.yml results.json 6 | -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/pyomo.ConcreteHLinear.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | pyomo solve --solver=glpk ConcreteHLinear.py 4 | cat results.yml 5 | rm -f results.yml results.json 6 | -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/pyomo.ConcreteHLinearSummary.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | pyomo solve --solver=glpk --summary ConcreteHLinear.py 4 | rm -f results.yml results.json 5 | 6 | -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/pyomo.abstract5.ns1.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # @cmd: 4 | pyomo solve --solver=glpk --namespace=data1 abstract5.py \ 5 | abstract5-ns1.dat 6 | # @:cmd 7 | cat results.yml 8 | rm -f results.yml results.json 9 | -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/pyomo.abstract5.ns2.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # @cmd: 4 | pyomo solve --solver=glpk --namespace=data2 abstract5.py \ 5 | abstract5-ns1.dat 6 | # @:cmd 7 | cat results.yml 8 | rm -f results.yml results.json 9 | -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/pyomo.abstract5.ns3.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # @cmd: 4 | pyomo solve --solver=glpk --namespace=c1 --namespace=data2 \ 5 | abstract5.py abstract5-ns2.dat 6 | # @:cmd 7 | cat results.yml 8 | rm -f results.yml results.json 9 | -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/pyomo.abstract6.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # @cmd: 4 | pyomo solve --solver=glpk --model-name=Model \ 5 | abstract6.py abstract6.dat 6 | # @:cmd 7 | cat results.yml 8 | rm -f results.yml results.json 9 | -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/pyomo.abstract7.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # @cmd: 4 | pyomo solve --solver=glpk -c abstract7.py 5 | # @:cmd 6 | rm -f results.yml results.json abstract7.pyomo abstract7.results 7 | -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/pyomo.buildactions_fails.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # @pyomo: 4 | pyomo solve --solver=glpk buildactions.py buildactions_fails.dat 5 | # @:pyomo 6 | rm -f results.json results.yml 7 | -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/pyomo.buildactions_works.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # @pyomo: 4 | pyomo solve --solver=glpk buildactions.py buildactions_works.dat 5 | # @:pyomo 6 | rm -f results.json results.yml 7 | -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/pyomo.diet1.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | pyomo solve --solver=glpk diet1.py diet.sqlite.dat 3 | cat results.yml 4 | rm -f results.yml results.json 5 | -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/pyomo.diet2.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | pyomo solve --solver=glpk diet1.py diet.dat 3 | cat results.yml 4 | rm -f results.yml results.json 5 | -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/pyomo.model1.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # @cmd: 4 | pyomo convert --format=lp concrete1.py 5 | # @:cmd 6 | diff unknown.lp unknown-ref.lp 7 | rm -f results.yml results.json unknown.lp 8 | -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/pyomo.model1.txt: -------------------------------------------------------------------------------- 1 | [ 0.00] Setting up Pyomo environment 2 | [ 0.00] Applying Pyomo preprocessing actions 3 | [ 0.00] Creating model 4 | Model written to file 'unknown.lp' 5 | [ 0.05] Pyomo Finished 6 | -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/pyomo.model2.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # @cmd: 4 | pyomo convert --output=concrete1.lp concrete1.py 5 | # @:cmd 6 | diff concrete1.lp ../command-ch/concrete1-ref.lp 7 | rm -f results.yml results.json concrete1.lp 8 | -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/pyomo.model2.txt: -------------------------------------------------------------------------------- 1 | [ 0.00] Setting up Pyomo environment 2 | [ 0.00] Applying Pyomo preprocessing actions 3 | [ 0.00] Creating model 4 | Model written to file 'concrete1.lp' 5 | [ 0.00] Pyomo Finished 6 | diff: ../command-ch/concrete1-ref.lp: No such file or directory 7 | -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/pyomo.model3.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # @cmd: 4 | pyomo convert --output=concrete1.nl concrete1.py 5 | # @:cmd 6 | python -m pyomo.repn.tests.nl_diff concrete1.nl concrete1-ref.nl 7 | rm -f results.yml results.json concrete1.nl 8 | -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/pyomo.model3.txt: -------------------------------------------------------------------------------- 1 | [ 0.00] Setting up Pyomo environment 2 | [ 0.00] Applying Pyomo preprocessing actions 3 | [ 0.00] Creating model 4 | Model written to file 'concrete1.nl' 5 | [ 0.00] Pyomo Finished 6 | -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/pyomo.solve1.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # @cmd: 4 | pyomo solve --solver=glpk --solver-options='mipgap=0.01' concrete1.py 5 | # @:cmd 6 | cat results.yml 7 | rm -f results.yml results.json 8 | -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/pyomo.solve2.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # @cmd: 4 | pyomo solve --solver=glpk --postprocess postprocess_fn.py concrete1.py 5 | # @:cmd 6 | cat results.yml 7 | cat results.csv 8 | rm -f results.yml results.json results.csv 9 | -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/pyomo.solve3.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # @cmd: 4 | pyomo solve --solver=glpk --solver-suffix='.*' concrete2.py 5 | # @:cmd 6 | cat results.yml 7 | rm -f results.csv results.yml results.json 8 | -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/pyomo.solve4.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # @cmd: 4 | pyomo solve concrete1.yaml 5 | # @:cmd 6 | cat results.yml 7 | rm -f results.yml results.json 8 | -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/pyomo.solve5.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # @cmd: 4 | pyomo solve abstract5.yaml 5 | # @:cmd 6 | cat results.yml 7 | rm -f results.yml results.json 8 | -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/pyomo.wl_abstract.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # @cmd: 4 | pyomo solve --solver=glpk wl_abstract.py wl_data.dat 5 | # @:cmd 6 | cat results.yml 7 | rm -f results.yml results.json 8 | -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/set1.dat: -------------------------------------------------------------------------------- 1 | # An empty set 2 | set A := ; 3 | 4 | # A set of numbers 5 | set A := 1 2 3; 6 | 7 | # A set of strings 8 | set B := north south east west; 9 | 10 | # A set of mixed types 11 | set C := 12 | 0 13 | -1.0e+10 14 | 'foo bar' 15 | infinity 16 | "100" 17 | ; 18 | -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/set1.txt: -------------------------------------------------------------------------------- 1 | [1, 2, 3] 2 | ['east', 'north', 'south', 'west'] 3 | [-10000000000.0, 0, '100', 'foo bar', 'infinity'] 4 | -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/set2.dat: -------------------------------------------------------------------------------- 1 | set A := 1 2 3 4 5 6 ; 2 | -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/set2.txt: -------------------------------------------------------------------------------- 1 | [(1, 2, 3), (4, 5, 6)] 2 | -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/set2a.dat: -------------------------------------------------------------------------------- 1 | set A := (1,2,3) (4,5,6) ; 2 | -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/set2a.txt: -------------------------------------------------------------------------------- 1 | [(1, 2, 3), (4, 5, 6)] 2 | -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/set3.dat: -------------------------------------------------------------------------------- 1 | # @decl: 2 | set A := 1 aaa 'a b'; 3 | 4 | set B[1] := 0 1 2; 5 | set B[aaa] := aa bb cc; 6 | set B['a b'] := 'aa bb cc'; 7 | # @:decl 8 | 9 | set C['a b',"a b"] := 1 2; 10 | -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/set3.txt: -------------------------------------------------------------------------------- 1 | [1, 'a b', 'aaa'] 2 | [0, 1, 2] 3 | ['aa', 'bb', 'cc'] 4 | -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/set4.dat: -------------------------------------------------------------------------------- 1 | set A : A1 A2 A3 A4 := 2 | 1 + - - + 3 | 2 + - + - 4 | 3 - + - - ; 5 | -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/set4.txt: -------------------------------------------------------------------------------- 1 | [('A1', 1), ('A1', 2), ('A2', 3), ('A3', 2), ('A4', 1)] 2 | -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/set5.dat: -------------------------------------------------------------------------------- 1 | set A := 2 | (1,2,*,4) A B 3 | (*,2,*,4) A B C D ; 4 | -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/set5.txt: -------------------------------------------------------------------------------- 1 | (1, 2, 'A', 4) 2 | (1, 2, 'B', 4) 3 | ('A', 2, 'B', 4) 4 | ('C', 2, 'D', 4) 5 | -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/unknown-ref.lp: -------------------------------------------------------------------------------- 1 | \* Source Pyomo model name=unknown *\ 2 | 3 | min 4 | x1: 5 | +1 x2 6 | +2 x3 7 | 8 | s.t. 9 | 10 | c_l_x4_: 11 | +3 x2 12 | +4 x3 13 | >= 1 14 | 15 | c_l_x5_: 16 | +2 x2 17 | +5 x3 18 | >= 2 19 | 20 | bounds 21 | 0 <= x2 <= +inf 22 | 0 <= x3 <= +inf 23 | general 24 | x2 25 | x3 26 | end 27 | -------------------------------------------------------------------------------- /examples/pyomobook/abstract-ch/wl_abstract_script.txt: -------------------------------------------------------------------------------- 1 | y : Size=3, Index=N 2 | Key : Lower : Value : Upper : Fixed : Stale : Domain 3 | Ashland : 0 : 1.0 : 1 : False : False : Binary 4 | Harlingen : 0 : 1.0 : 1 : False : False : Binary 5 | Memphis : 0 : 0.0 : 1 : False : False : Binary 6 | -------------------------------------------------------------------------------- /examples/pyomobook/blocks-ch/blocks_lotsizing.txt: -------------------------------------------------------------------------------- 1 | Period: 1, Prod. Amount: 3.0 2 | Period: 2, Prod. Amount: 5.0 3 | Period: 3, Prod. Amount: 5.0 4 | Period: 4, Prod. Amount: 5.0 5 | Period: 5, Prod. Amount: 0.0 6 | -------------------------------------------------------------------------------- /examples/pyomobook/blocks-ch/lotsizing.txt: -------------------------------------------------------------------------------- 1 | Period: 1, Prod. Amount: 3.0 2 | Period: 2, Prod. Amount: 5.0 3 | Period: 3, Prod. Amount: 5.0 4 | Period: 4, Prod. Amount: 5.0 5 | Period: 5, Prod. Amount: 0.0 6 | -------------------------------------------------------------------------------- /examples/pyomobook/dae-ch/dae_tester_model.txt: -------------------------------------------------------------------------------- 1 | First Model 2 | 21 3 | 21 4 | Second Model 5 | 11 6 | 101 7 | 1111 8 | Third Model 9 | 29 10 | 31 11 | 899 12 | Fourth Model 13 | 11 14 | 16 15 | 176 16 | -------------------------------------------------------------------------------- /examples/pyomobook/gdp-ch/gdp_uc.dat: -------------------------------------------------------------------------------- 1 | # gdp_uc.dat 2 | 3 | param NumTimePeriods := 3; 4 | 5 | set GENERATORS := g1 g2; 6 | 7 | param MaxPower := g1 100 g2 200; 8 | param MinPower := g1 10 g2 20; 9 | param RampUpLimit := g1 5 g2 10; 10 | param RampDownLimit := g1 5 g2 10; 11 | param StartUpRampLimit := g1 10 g2 20 ; 12 | param ShutDownRampLimit := g1 10 g2 20 ; 13 | -------------------------------------------------------------------------------- /examples/pyomobook/gdp-ch/pyomo.gdp_uc.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # @cmd: 4 | pyomo solve gdp_uc.py gdp_uc.dat --solver=glpk \ 5 | --transform core.logical_to_linear --transform gdp.bigm 6 | # @:cmd 7 | cat results.yml 8 | rm results.yml 9 | -------------------------------------------------------------------------------- /examples/pyomobook/gdp-ch/pyomo.scont.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # @cmd: 4 | pyomo solve scont.py --transform gdp.bigm --solver=glpk 5 | # @:cmd 6 | python verify_scont.py results.yml 7 | rm results.yml 8 | -------------------------------------------------------------------------------- /examples/pyomobook/gdp-ch/pyomo.scont2.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # @cmd: 4 | pyomo solve scont2.py --transform gdp.bigm --solver=glpk 5 | # @:cmd 6 | python verify_scont.py results.yml 7 | rm results.yml 8 | -------------------------------------------------------------------------------- /examples/pyomobook/gdp-ch/scont_script.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | python scont_script.py 4 | -------------------------------------------------------------------------------- /examples/pyomobook/intro-ch/abstract5.dat: -------------------------------------------------------------------------------- 1 | param : N : c := 2 | 1 1 3 | 2 2 ; 4 | 5 | param : M : b := 6 | 1 1 7 | 2 2 ; 8 | 9 | param a := 10 | 1 1 3 11 | 1 2 4 12 | 2 1 2 13 | 2 2 5 ; 14 | -------------------------------------------------------------------------------- /examples/pyomobook/intro-ch/pyomo.abstract5.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | pyomo solve --solver=glpk abstract5.py abstract5.dat 4 | cat results.yml 5 | rm -f results.yml results.json 6 | -------------------------------------------------------------------------------- /examples/pyomobook/intro-ch/pyomo.coloring_concrete.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | pyomo solve --solver=glpk coloring_concrete.py 4 | rm -f results.yml results.json 5 | 6 | 7 | -------------------------------------------------------------------------------- /examples/pyomobook/intro-ch/pyomo.concrete1.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | pyomo solve --solver=glpk concrete1.py 4 | cat results.yml 5 | rm -f results.yml results.json 6 | -------------------------------------------------------------------------------- /examples/pyomobook/intro-ch/pyomo.concrete1_generic.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | pyomo solve --solver=glpk concrete1_generic.py 4 | cat results.yml 5 | rm -f results.yml results.json 6 | -------------------------------------------------------------------------------- /examples/pyomobook/mpec-ch/mip1.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # @pyomo: 4 | pyomo solve --solver=mpec_minlp \ 5 | --solver-options="solver=glpk" ralph1.py 6 | # @:pyomo 7 | rm results.yml 8 | -------------------------------------------------------------------------------- /examples/pyomobook/mpec-ch/nlp1.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # @pyomo: 4 | pyomo solve --solver=ipopt \ 5 | --transform=mpec.simple_nonlinear ex1a.py 6 | # @:pyomo 7 | rm results.yml 8 | -------------------------------------------------------------------------------- /examples/pyomobook/mpec-ch/nlp2.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # @pyomo: 4 | pyomo solve --solver=mpec_nlp ex1a.py 5 | # @:pyomo 6 | cat results.yml 7 | rm results.yml 8 | -------------------------------------------------------------------------------- /examples/pyomobook/mpec-ch/nlp3.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # @pyomo: 4 | pyomo solve --solver=mpec_nlp \ 5 | --solver-options="epsilon_initial=0.1 \ 6 | epsilon_final=1e-7" \ 7 | ex1a.py 8 | # @:pyomo 9 | rm results.yml 10 | -------------------------------------------------------------------------------- /examples/pyomobook/mpec-ch/nlp_ex1b.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # @pyomo: 4 | pyomo solve --solver=mpec_nlp ex1b.py 5 | # @:pyomo 6 | cat results.yml 7 | rm results.yml 8 | -------------------------------------------------------------------------------- /examples/pyomobook/mpec-ch/nlp_ex1c.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # @pyomo: 4 | pyomo solve --solver=mpec_nlp ex1c.py 5 | # @:pyomo 6 | cat results.yml 7 | rm results.yml 8 | -------------------------------------------------------------------------------- /examples/pyomobook/mpec-ch/nlp_ex1d.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # @pyomo: 4 | pyomo solve --solver=mpec_nlp ex1d.py 5 | # @:pyomo 6 | cat results.yml 7 | rm results.yml 8 | -------------------------------------------------------------------------------- /examples/pyomobook/mpec-ch/nlp_ex1e.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # @pyomo: 4 | pyomo solve --solver=mpec_nlp ex1e.py 5 | # @:pyomo 6 | cat results.yml 7 | rm results.yml 8 | -------------------------------------------------------------------------------- /examples/pyomobook/mpec-ch/nlp_ex2.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # @pyomo: 4 | pyomo solve --model-name=transformed --solver=ipopt ex2.py 5 | # @:pyomo 6 | cat results.yml 7 | rm results.yml 8 | -------------------------------------------------------------------------------- /examples/pyomobook/mpec-ch/path1.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # @pyomo: 4 | pyomo solve --solver=path munson1.py 5 | # @:pyomo 6 | rm -f results.yml 7 | -------------------------------------------------------------------------------- /examples/pyomobook/nonlinear-ch/deer/DeerProblem.dat: -------------------------------------------------------------------------------- 1 | # DeerProblem.dat 2 | param p1 := 0.88; 3 | param p2 := 0.82; 4 | param p3 := 0.92; 5 | param p4 := 0.84; 6 | param p5 := 0.73; 7 | param p6 := 0.87; 8 | param p7 := 2700; 9 | param p8 := 2300; 10 | param p9 := 540; 11 | param ps := 700000; 12 | -------------------------------------------------------------------------------- /examples/pyomobook/nonlinear-ch/disease_est/disease_estimation.txt: -------------------------------------------------------------------------------- 1 | *** 2 | *** Optimal beta Value: 1.99 3 | *** Optimal alpha Value: 1.00 4 | *** 5 | -------------------------------------------------------------------------------- /examples/pyomobook/nonlinear-ch/multimodal/multimodal_init1.txt: -------------------------------------------------------------------------------- 1 | 0.017822170949138568 0.017822170949138565 2 | -------------------------------------------------------------------------------- /examples/pyomobook/nonlinear-ch/multimodal/multimodal_init2.txt: -------------------------------------------------------------------------------- 1 | 2.0 2.0 2 | -------------------------------------------------------------------------------- /examples/pyomobook/overview-ch/pyomo.wl_abstract.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # @cmd: 4 | pyomo solve --solver=glpk wl_abstract.py wl_data.dat 5 | # @:cmd 6 | cat results.yml 7 | rm -f results.yml results.json 8 | -------------------------------------------------------------------------------- /examples/pyomobook/overview-ch/wl_abstract_script.txt: -------------------------------------------------------------------------------- 1 | y : Size=3, Index=N 2 | Key : Lower : Value : Upper : Fixed : Stale : Domain 3 | Ashland : 0 : 1.0 : 1 : False : False : Binary 4 | Harlingen : 0 : 1.0 : 1 : False : False : Binary 5 | Memphis : 0 : 0.0 : 1 : False : False : Binary 6 | -------------------------------------------------------------------------------- /examples/pyomobook/overview-ch/wl_concrete_script.txt: -------------------------------------------------------------------------------- 1 | y : Size=3, Index={Harlingen, Memphis, Ashland} 2 | Key : Lower : Value : Upper : Fixed : Stale : Domain 3 | Ashland : 0 : 1.0 : 1 : False : False : Binary 4 | Harlingen : 0 : 1.0 : 1 : False : False : Binary 5 | Memphis : 0 : 0.0 : 1 : False : False : Binary 6 | -------------------------------------------------------------------------------- /examples/pyomobook/overview-ch/wl_data.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/examples/pyomobook/overview-ch/wl_data.xlsx -------------------------------------------------------------------------------- /examples/pyomobook/overview-ch/wl_excel.txt: -------------------------------------------------------------------------------- 1 | y : Size=3, Index={Harlingen, Memphis, Ashland} 2 | Key : Lower : Value : Upper : Fixed : Stale : Domain 3 | Ashland : 0 : 1.0 : 1 : False : False : Binary 4 | Harlingen : 0 : 1.0 : 1 : False : False : Binary 5 | Memphis : 0 : 0.0 : 1 : False : False : Binary 6 | -------------------------------------------------------------------------------- /examples/pyomobook/performance-ch/SparseSets.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/examples/pyomobook/performance-ch/SparseSets.txt -------------------------------------------------------------------------------- /examples/pyomobook/performance-ch/lin_expr_output.txt: -------------------------------------------------------------------------------- 1 | [ 0.00] Resetting the tic/toc delta timer 2 | [+ 3.52] created expression with sum function 3 | [+ 0.52] created expression with LinearExpression constructor 4 | -------------------------------------------------------------------------------- /examples/pyomobook/performance-ch/persistent.txt: -------------------------------------------------------------------------------- 1 | Restricted license - for non-production use only - expires 2022-01-13 2 | Objective after solve 1: 5.0000000039343995 3 | Objective after solve 2: 5.555555556979119 4 | Objective after solve 3: 5.0000000039343995 5 | Objective after solve 4: 5.0000000039343995 6 | AttributeError was raised 7 | Objective after solve 5: 5.0000000039343995 8 | -------------------------------------------------------------------------------- /examples/pyomobook/performance-ch/persistent_output.txt: -------------------------------------------------------------------------------- 1 | AttributeError was raised 2 | -------------------------------------------------------------------------------- /examples/pyomobook/pyomo-components-ch/param_declaration.dat: -------------------------------------------------------------------------------- 1 | param Z := 1z2y; 2 | 3 | param Y := 2; 4 | 5 | param X := 1.1; 6 | 7 | param W := True; 8 | 9 | set B := A B C; 10 | 11 | param : U := 12 | A 10 13 | B 20 14 | C 30 15 | ; 16 | 17 | set C := A B C ; 18 | 19 | param : T := 20 | 1 A 10 21 | 2 B 20 22 | 3 C 30 23 | ; 24 | 25 | -------------------------------------------------------------------------------- /examples/pyomobook/pyomo-components-ch/param_validation.dat: -------------------------------------------------------------------------------- 1 | param Z := 1.1; 2 | 3 | param Y := 1.1; 4 | 5 | param : X := 6 | 1 1.1 7 | 2 2.2 8 | 3 3.3; 9 | -------------------------------------------------------------------------------- /examples/pyomobook/pyomo-components-ch/set_declaration.dat: -------------------------------------------------------------------------------- 1 | set A := 1 2 3 ; 2 | 3 | set B := 2 4 6 ; 4 | 5 | set C[1] := a b c; 6 | set C[3] := d e f; 7 | 8 | set D[1,4] := a b c; 9 | set D[2,6] := d e f; 10 | 11 | set E[2] := 21 22 23; 12 | 13 | set F[1] := 11 12 13; 14 | set F[3] := 31 32 33; 15 | 16 | set L := (1,2) (2,4) (3,6) ; 17 | -------------------------------------------------------------------------------- /examples/pyomobook/pyomo-components-ch/set_misc.txt: -------------------------------------------------------------------------------- 1 | 3 2 | True 3 | True 4 | True 5 | [1, 2, 3] 6 | [1] 7 | [1, 2] 8 | True 9 | False 10 | True 11 | True 12 | True 13 | False 14 | True 15 | [1, 2, 3] 16 | [1] 17 | [1, 2] 18 | 3 19 | 1 20 | 1 21 | 3 22 | 3 23 | 1 24 | 1 25 | 3 26 | 3 27 | 1 28 | -------------------------------------------------------------------------------- /examples/pyomobook/pyomo-components-ch/set_options.dat: -------------------------------------------------------------------------------- 1 | 2 | set A := 3 1 2 ; 3 | -------------------------------------------------------------------------------- /examples/pyomobook/pyomo-components-ch/set_options.txt: -------------------------------------------------------------------------------- 1 | 1 Set Declarations 2 | A : Size=1, Index=None, Ordered=Sorted 3 | Key : Dimen : Domain : Size : Members 4 | None : 1 : Any : 3 : {1, 2, 3} 5 | 6 | 1 Declarations: A 7 | -------------------------------------------------------------------------------- /examples/pyomobook/pyomo-components-ch/set_validation.dat: -------------------------------------------------------------------------------- 1 | set A := AA BB CC; 2 | 3 | set B := BB; 4 | 5 | set C := CC; 6 | 7 | set D := (AA,BB) (BB,BB) (CC,BB); 8 | 9 | set E := (AA,BB) (BB,BB) (CC,BB); 10 | 11 | set F[1] := AA; 12 | set F[2] := BB; 13 | set F[3] := CC; 14 | 15 | set G[1] := AA; 16 | set G[2] := BB; 17 | set G[3] := CC; 18 | -------------------------------------------------------------------------------- /examples/pyomobook/python-ch/BadIndent.sh: -------------------------------------------------------------------------------- 1 | # run python: this will generate a syntax error 2 | python BadIndent.py 3 | -------------------------------------------------------------------------------- /examples/pyomobook/python-ch/BadIndent.txt: -------------------------------------------------------------------------------- 1 | File "BadIndent.py", line 11 2 | print("But not without risks.") 3 | ^ 4 | IndentationError: unexpected indent 5 | -------------------------------------------------------------------------------- /examples/pyomobook/python-ch/LineExample.txt: -------------------------------------------------------------------------------- 1 | Hello World, how many people do you have? 2 | Wow! 3 | That's a lot of people 4 | -------------------------------------------------------------------------------- /examples/pyomobook/python-ch/class.txt: -------------------------------------------------------------------------------- 1 | The Int Locker has 3 2 | The Int Locker has 5 3 | -------------------------------------------------------------------------------- /examples/pyomobook/python-ch/ctob.txt: -------------------------------------------------------------------------------- 1 | Flying Birbus 2 | -------------------------------------------------------------------------------- /examples/pyomobook/python-ch/example.txt: -------------------------------------------------------------------------------- 1 | Hello World 2 | -------------------------------------------------------------------------------- /examples/pyomobook/python-ch/functions.txt: -------------------------------------------------------------------------------- 1 | [0, 1, 2, 9] 2 | -------------------------------------------------------------------------------- /examples/pyomobook/python-ch/iterate.txt: -------------------------------------------------------------------------------- 1 | Bob 123 2 | Mary 231 3 | Ted 987 4 | Cleese is not in the list. 5 | -------------------------------------------------------------------------------- /examples/pyomobook/python-ch/pythonconditional.txt: -------------------------------------------------------------------------------- 1 | This program cannot tell us much. 2 | -------------------------------------------------------------------------------- /examples/pyomobook/scripts-ch/attributes.txt: -------------------------------------------------------------------------------- 1 | 1956*x[Harlingen,NYC] + 1606*x[Harlingen,LA] + 1410*x[Harlingen,Chicago] + 330*x[Harlingen,Houston] + 1096*x[Memphis,NYC] + 1792*x[Memphis,LA] + 531*x[Memphis,Chicago] + 567*x[Memphis,Houston] + 485*x[Ashland,NYC] + 2322*x[Ashland,LA] + 324*x[Ashland,Chicago] + 1236*x[Ashland,Houston] 2 | 2745.0 3 | 1.0 4 | -------------------------------------------------------------------------------- /examples/pyomobook/scripts-ch/prob_mod_ex.txt: -------------------------------------------------------------------------------- 1 | 1.0 2 | 0.0 3 | 0.333333333333 4 | 0.666666666667 5 | 0.5 6 | 0.0 7 | 0.333333333333 8 | 0.666666666667 9 | 1.0 10 | 0.0 11 | 0.5 12 | 0.5 13 | 1.0 14 | 0.0 15 | -------------------------------------------------------------------------------- /examples/pyomobook/scripts-ch/sudoku/SudokuFigure.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/examples/pyomobook/scripts-ch/sudoku/SudokuFigure.pdf -------------------------------------------------------------------------------- /examples/pyomobook/scripts-ch/sudoku/SudokuFigure.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/examples/pyomobook/scripts-ch/sudoku/SudokuFigure.xlsx -------------------------------------------------------------------------------- /examples/pyomobook/scripts-ch/sudoku/SudokuFigureSolved.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/examples/pyomobook/scripts-ch/sudoku/SudokuFigureSolved.pdf -------------------------------------------------------------------------------- /examples/pyomobook/scripts-ch/sudoku/SudokuFigureSolved.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/examples/pyomobook/scripts-ch/sudoku/SudokuFigureSolved.xlsx -------------------------------------------------------------------------------- /examples/pyomobook/scripts-ch/value_expression.txt: -------------------------------------------------------------------------------- 1 | u - 1 2 | 3 | 1.0 4 | 5 | -------------------------------------------------------------------------------- /pyomo/common/README.md: -------------------------------------------------------------------------------- 1 | # Pyomo common utilities 2 | 3 | `pyomo.common` holds Pyomo-specific utility modules that may be used elsewhere in the codebase. 4 | Modules in `pyomo.common` should not inherit from the rest of `pyomo`. -------------------------------------------------------------------------------- /pyomo/contrib/alternative_solutions/README.md: -------------------------------------------------------------------------------- 1 | # alternative_solutions 2 | 3 | pyomo.contrib.alternative_solutions is a collection of functions that 4 | that generate a set of alternative (near-)optimal solutions 5 | (AOS). These functions rely on a pyomo solver to search for solutions, 6 | and they iteratively adapt the search process to find a variety of 7 | alternative solutions. 8 | 9 | -------------------------------------------------------------------------------- /pyomo/contrib/alternative_solutions/tests/test_case.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/pyomo/contrib/alternative_solutions/tests/test_case.xlsx -------------------------------------------------------------------------------- /pyomo/contrib/cspline_external/test/test_params_line.txt: -------------------------------------------------------------------------------- 1 | 1 2 | 0 3 | 1 4 | 0 5 | 1 6 | 0 7 | 0 -------------------------------------------------------------------------------- /pyomo/contrib/doe/examples/result.json: -------------------------------------------------------------------------------- 1 | {"CA0": 5.0, "CA_bounds": [1.0, 5.0], "CB0": 0.0, "CC0": 0.0, "t_range": [0, 1], "control_points": {"0": 500, "0.125": 300, "0.25": 300, "0.375": 300, "0.5": 300, "0.625": 300, "0.75": 300, "0.875": 300, "1": 300}, "T_bounds": [300, 700], "A1": 84.79, "A2": 371.72, "E1": 7.78, "E2": 15.05} -------------------------------------------------------------------------------- /pyomo/contrib/mcpp/.gitignore: -------------------------------------------------------------------------------- 1 | *.so 2 | 3 | -------------------------------------------------------------------------------- /pyomo/contrib/mpc/examples/README.md: -------------------------------------------------------------------------------- 1 | ### Examples of rolling horizon and dynamic optimization data structures 2 | 3 | This repository contains examples using the data structures and interfaces 4 | in this package for rolling horizon dynamic simulation and optimization. 5 | 6 | Code in this directory should not be imported from elsewhere in the codebase. 7 | -------------------------------------------------------------------------------- /pyomo/contrib/pynumero/src/tests/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | 2 | ADD_EXECUTABLE(pynumero_asl_test simple_test.cpp) 3 | TARGET_LINK_LIBRARIES( pynumero_asl_test pynumero_ASL) 4 | INSTALL(TARGETS pynumero_asl_test DESTINATION bin/tests ) 5 | INSTALL(FILES simple_nlp.nl DESTINATION bin/tests ) 6 | -------------------------------------------------------------------------------- /pyomo/contrib/solver/tests/unit/sol_files/bad_objno.sol: -------------------------------------------------------------------------------- 1 | CONOPT 3.17A: Optimal; objective 1 2 | 4 iterations; evals: nf = 2, ng = 0, nc = 2, nJ = 0, nH = 0, nHv = 0 3 | 4 | Options 5 | 3 6 | 1 7 | 1 8 | 0 9 | 1 10 | 1 11 | 1 12 | 1 13 | 1 14 | 1 15 | Xobjno 0 0 16 | suffix 0 1 8 0 0 17 | sstatus 18 | 0 1 19 | suffix 1 1 8 0 0 20 | sstatus 21 | 0 3 22 | 23 | -------------------------------------------------------------------------------- /pyomo/contrib/solver/tests/unit/sol_files/bad_objnoline.sol: -------------------------------------------------------------------------------- 1 | CONOPT 3.17A: Optimal; objective 1 2 | 4 iterations; evals: nf = 2, ng = 0, nc = 2, nJ = 0, nH = 0, nHv = 0 3 | 4 | Options 5 | 3 6 | 1 7 | 1 8 | 0 9 | 1 10 | 1 11 | 1 12 | 1 13 | 1 14 | 1 15 | objno 0 0 1 16 | suffix 0 1 8 0 0 17 | sstatus 18 | 0 1 19 | suffix 1 1 8 0 0 20 | sstatus 21 | 0 3 22 | 23 | -------------------------------------------------------------------------------- /pyomo/contrib/solver/tests/unit/sol_files/bad_options.sol: -------------------------------------------------------------------------------- 1 | CONOPT 3.17A: Optimal; objective 1 2 | 4 iterations; evals: nf = 2, ng = 0, nc = 2, nJ = 0, nH = 0, nHv = 0 3 | 4 | OXptions 5 | 3 6 | 1 7 | 1 8 | 0 9 | 1 10 | 1 11 | 1 12 | 1 13 | 1 14 | 1 15 | objno 0 0 16 | suffix 0 1 8 0 0 17 | sstatus 18 | 0 1 19 | suffix 1 1 8 0 0 20 | sstatus 21 | 0 3 22 | 23 | -------------------------------------------------------------------------------- /pyomo/contrib/solver/tests/unit/sol_files/conopt_optimal.sol: -------------------------------------------------------------------------------- 1 | CONOPT 3.17A: Optimal; objective 1 2 | 4 iterations; evals: nf = 2, ng = 0, nc = 2, nJ = 0, nH = 0, nHv = 0 3 | 4 | Options 5 | 3 6 | 1 7 | 1 8 | 0 9 | 1 10 | 1 11 | 1 12 | 1 13 | 1 14 | 1 15 | objno 0 0 16 | suffix 0 1 8 0 0 17 | sstatus 18 | 0 1 19 | suffix 1 1 8 0 0 20 | sstatus 21 | 0 3 22 | 23 | -------------------------------------------------------------------------------- /pyomo/contrib/solver/tests/unit/sol_files/infeasible2.sol: -------------------------------------------------------------------------------- 1 | 2 | Couenne (C:\Users\SASCHA~1\AppData\Local\Temp\tmpvcmknhw0.pyomo.nl May 18 2015): Infeasible 3 | 4 | Options 5 | 3 6 | 0 7 | 1 8 | 0 9 | 242 10 | 0 11 | 86 12 | 0 13 | objno 0 220 14 | -------------------------------------------------------------------------------- /pyomo/core/tests/data/baselines/diet.ini: -------------------------------------------------------------------------------- 1 | [ODBC Data Sources] 2 | dietdb = Microsoft Access Driver (*.mdb) 3 | 4 | [dietdb] 5 | Description = Diet DB 6 | Database = diet1.mdb 7 | Servername = localhost 8 | Username = 9 | Password = 10 | Port = 5432 11 | -------------------------------------------------------------------------------- /pyomo/core/tests/data/baselines/simple_odbc.ini: -------------------------------------------------------------------------------- 1 | [ODBC Data Sources] 2 | testdb = Microsoft Access Driver (*.mdb) 3 | 4 | [testdb] 5 | Database = testdb.mdb 6 | -------------------------------------------------------------------------------- /pyomo/core/tests/examples/pmedian.dat: -------------------------------------------------------------------------------- 1 | param N := 5; 2 | param M := 6; 3 | param P := 3; 4 | -------------------------------------------------------------------------------- /pyomo/core/tests/examples/test12b.json: -------------------------------------------------------------------------------- 1 | { 2 | "data": { 3 | "files": "pmedian.dat" 4 | }, 5 | "model": { 6 | "filename": "pmedian.py" 7 | }, 8 | "solvers": [ 9 | { "solver name": "glpk" } 10 | ], 11 | "runtime": { 12 | "logfile": "test12b.log" 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /pyomo/core/tests/examples/test14b.json: -------------------------------------------------------------------------------- 1 | { 2 | "model": { 3 | "filename": "pmedian4.py" 4 | }, 5 | "solvers": [ 6 | { "solver name": "glpk" } 7 | ] 8 | } 9 | -------------------------------------------------------------------------------- /pyomo/core/tests/examples/test15b.json: -------------------------------------------------------------------------------- 1 | { 2 | "data": { 3 | "files": "pmedian.dat" 4 | }, 5 | "model": { 6 | "filename": "pmedian.py" 7 | }, 8 | "solvers": [ 9 | { "solver name": "glpk", 10 | "options string": "mipgap=0.02 cuts=" } 11 | ] 12 | } 13 | -------------------------------------------------------------------------------- /pyomo/core/tests/examples/test15b.yaml: -------------------------------------------------------------------------------- 1 | data: 2 | files: pmedian.dat 3 | model: 4 | filename: pmedian.py 5 | solvers: 6 | - solver name: glpk 7 | options string: mipgap=0.02 cuts= 8 | -------------------------------------------------------------------------------- /pyomo/core/tests/examples/test15c.json: -------------------------------------------------------------------------------- 1 | { 2 | "data": { 3 | "files": "pmedian.dat" 4 | }, 5 | "model": { 6 | "filename": "pmedian.py" 7 | }, 8 | "solvers": [ 9 | { "solver name": "glpk", 10 | "options": { 11 | "mipgap": 0.02, 12 | "cuts": "" 13 | } 14 | } 15 | ] 16 | } 17 | -------------------------------------------------------------------------------- /pyomo/core/tests/examples/test15c.yaml: -------------------------------------------------------------------------------- 1 | data: 2 | files: pmedian.dat 3 | model: 4 | filename: pmedian.py 5 | solvers: 6 | - solver name: glpk 7 | options: 8 | mipgap: 0.02 9 | cuts: 10 | -------------------------------------------------------------------------------- /pyomo/core/tests/examples/test1b.json: -------------------------------------------------------------------------------- 1 | { 2 | "data": { 3 | "files": "pmedian.dat" 4 | }, 5 | "model": { 6 | "filename": "pmedian.py" 7 | }, 8 | "solvers": [ 9 | { "solver name": "glpk" } 10 | ] 11 | } 12 | -------------------------------------------------------------------------------- /pyomo/core/tests/examples/test2.txt: -------------------------------------------------------------------------------- 1 | [ 0.00] Setting up Pyomo environment 2 | [ 0.00] Applying Pyomo preprocessing actions 3 | [ 0.00] Creating model 4 | [ 0.00] Pyomo Finished 5 | Exiting pyomo solve: Model 'dummy' is not defined in file 'pmedian.py'! 6 | -------------------------------------------------------------------------------- /pyomo/core/tests/examples/test2b.json: -------------------------------------------------------------------------------- 1 | { 2 | "data": { 3 | "files": "pmedian.dat" 4 | }, 5 | "model": { 6 | "filename": "pmedian.py", 7 | "object name": "dummy" 8 | }, 9 | "solvers": [ 10 | { "solver name": "glpk" } 11 | ] 12 | } 13 | -------------------------------------------------------------------------------- /pyomo/core/tests/examples/test3.txt: -------------------------------------------------------------------------------- 1 | [ 0.00] Setting up Pyomo environment 2 | [ 0.00] Applying Pyomo preprocessing actions 3 | [ 0.00] Creating model 4 | [ 0.00] Pyomo Finished 5 | Exiting pyomo solve: A model is not defined and the 'pyomo_create_model' is not provided in module pmedian1.py 6 | -------------------------------------------------------------------------------- /pyomo/core/tests/examples/test4b.json: -------------------------------------------------------------------------------- 1 | { 2 | "data": { 3 | "files": "pmedian.dat" 4 | }, 5 | "model": { 6 | "filename": "pmedian1.py", 7 | "object name": "MODEL" 8 | }, 9 | "solvers": [ 10 | { "solver name": "glpk" } 11 | ] 12 | } 13 | -------------------------------------------------------------------------------- /pyomo/core/tests/examples/test5b.json: -------------------------------------------------------------------------------- 1 | { 2 | "data": { 3 | "files": "pmedian.dat" 4 | }, 5 | "model": { 6 | "filename": "pmedian2.py" 7 | }, 8 | "solvers": [ 9 | { "solver name": "glpk" } 10 | ] 11 | } 12 | -------------------------------------------------------------------------------- /pyomo/core/tests/examples/test8b.json: -------------------------------------------------------------------------------- 1 | { 2 | "data": { 3 | "files": "pmedian.dat" 4 | }, 5 | "model": { 6 | "filename": "pmedian.py" 7 | }, 8 | "solvers": [ 9 | { "solver name": "glpk" } 10 | ], 11 | "runtime": { 12 | "only instance": "true" 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /pyomo/core/tests/examples/test9b.json: -------------------------------------------------------------------------------- 1 | { 2 | "data": { 3 | "files": "pmedian.dat" 4 | }, 5 | "model": { 6 | "filename": "pmedian.py" 7 | }, 8 | "solvers": [ 9 | { "solver name": "glpk" } 10 | ], 11 | "runtime": { 12 | "disable gc": "true" 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /pyomo/core/tests/unit/Book1.xlsm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/pyomo/core/tests/unit/Book1.xlsm -------------------------------------------------------------------------------- /pyomo/core/tests/unit/Book1.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/pyomo/core/tests/unit/Book1.xlsx -------------------------------------------------------------------------------- /pyomo/core/tests/unit/data1.tab: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /pyomo/core/tests/unit/dummy: -------------------------------------------------------------------------------- 1 | A dummy file 2 | -------------------------------------------------------------------------------- /pyomo/core/tests/unit/empty.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/pyomo/core/tests/unit/empty.csv -------------------------------------------------------------------------------- /pyomo/core/tests/unit/empty.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /pyomo/core/tests/unit/empty.tab: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/pyomo/core/tests/unit/empty.tab -------------------------------------------------------------------------------- /pyomo/core/tests/unit/empty.xml: -------------------------------------------------------------------------------- 1 |
2 | -------------------------------------------------------------------------------- /pyomo/core/tests/unit/empty.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/pyomo/core/tests/unit/empty.yaml -------------------------------------------------------------------------------- /pyomo/core/tests/unit/solve1c.txt: -------------------------------------------------------------------------------- 1 | Model unknown 2 | 3 | Variables: 4 | Variable x : Size=4 Domain=Reals 5 | 1 : 0.75 6 | 2 : 0.75 7 | 3 : 0.75 8 | 4 : 0.75 9 | 10 | Objectives: 11 | Objective obj : Size=1 12 | Value=3.0 13 | 14 | Constraints: 15 | Constraint c : Size=1 16 | Value=7.5 17 | -------------------------------------------------------------------------------- /pyomo/core/tests/unit/solve5a.txt: -------------------------------------------------------------------------------- 1 | Model unknown 2 | 3 | Variables: 4 | Variable x : Size=4 Domain=Reals 5 | 1 : -1 6 | 2 : -1 7 | 3 : -1 8 | 4 : -1 9 | 10 | Objectives: 11 | Objective obj1 : Size=1 12 | Value=-4 13 | Objective obj2 : Size=1 14 | Value=-2 15 | 16 | Constraints: 17 | None 18 | -------------------------------------------------------------------------------- /pyomo/core/tests/unit/test_uninstantiated_model.txt: -------------------------------------------------------------------------------- 1 | 2 | ERROR: Unable to find label for variable 'x'. 3 | Possibly uninstantiated model. Do any constraint or objective rules reference the original model object, as opposed to the passed model object? Alternatively, if you are developing code, has the model instance been pre-processed? 4 | -------------------------------------------------------------------------------- /pyomo/core/tests/unit/vars_dat_file.dat: -------------------------------------------------------------------------------- 1 | set s := 1 2 3; 2 | -------------------------------------------------------------------------------- /pyomo/core/tests/unit/vars_dat_file_empty.dat: -------------------------------------------------------------------------------- 1 | set s := ; 2 | -------------------------------------------------------------------------------- /pyomo/core/tests/unit/vars_dat_file_missing.dat: -------------------------------------------------------------------------------- 1 | set s := 1 2 5; 2 | -------------------------------------------------------------------------------- /pyomo/core/tests/unit/vars_dat_file_nonint.dat: -------------------------------------------------------------------------------- 1 | set s := 1.7 2 3; 2 | -------------------------------------------------------------------------------- /pyomo/dataportal/tester: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | import sys 4 | import parse_datacmds 5 | 6 | debug=int(sys.argv[2]) 7 | print(parse_datacmds.parse_data_commands(filename=sys.argv[1], debug=debug)) 8 | 9 | -------------------------------------------------------------------------------- /pyomo/dataportal/tests/Book1.xls: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/pyomo/dataportal/tests/Book1.xls -------------------------------------------------------------------------------- /pyomo/dataportal/tests/data1.dat: -------------------------------------------------------------------------------- 1 | set A := 1 2 3; 2 | -------------------------------------------------------------------------------- /pyomo/dataportal/tests/data11.dat: -------------------------------------------------------------------------------- 1 | include data3.dat; 2 | include data12.dat; 3 | -------------------------------------------------------------------------------- /pyomo/dataportal/tests/data12.dat: -------------------------------------------------------------------------------- 1 | include data13.dat; 2 | -------------------------------------------------------------------------------- /pyomo/dataportal/tests/data13.dat: -------------------------------------------------------------------------------- 1 | set D := 1 3 5; 2 | -------------------------------------------------------------------------------- /pyomo/dataportal/tests/data15.dat: -------------------------------------------------------------------------------- 1 | param p := 24.8*3600.0 ; 2 | -------------------------------------------------------------------------------- /pyomo/dataportal/tests/data17.dat: -------------------------------------------------------------------------------- 1 | param A := 1; 2 | 3 | param B := a 1; 4 | 5 | param C := 6 | a 1 7 | b 2 8 | c 3; 9 | 10 | table D := 1; -------------------------------------------------------------------------------- /pyomo/dataportal/tests/data2.dat: -------------------------------------------------------------------------------- 1 | set A := 1 2 3; 2 | 3 | error 4 | -------------------------------------------------------------------------------- /pyomo/dataportal/tests/data3.dat: -------------------------------------------------------------------------------- 1 | set A := ; 2 | 3 | set B := (1, 2) ; 4 | 5 | set C := (a, b, c) ; 6 | -------------------------------------------------------------------------------- /pyomo/dataportal/tests/data4.dat: -------------------------------------------------------------------------------- 1 | set A := (1, (2 ; 2 | 3 | -------------------------------------------------------------------------------- /pyomo/dataportal/tests/data5.dat: -------------------------------------------------------------------------------- 1 | set A := 4) 4); 2 | 3 | -------------------------------------------------------------------------------- /pyomo/dataportal/tests/data6.dat: -------------------------------------------------------------------------------- 1 | error; 2 | -------------------------------------------------------------------------------- /pyomo/dataportal/tests/data7.dat: -------------------------------------------------------------------------------- 1 | set A := a b c; 2 | 3 | param B default -1.0 := 4 | a 1.0 5 | c 3.0; 6 | -------------------------------------------------------------------------------- /pyomo/dataportal/tests/data8.dat: -------------------------------------------------------------------------------- 1 | param A := False; 2 | param B := True; 3 | set Z := foo[*] bar[ * ] bar[1,*,a,*] foo-bar hello-goodbye ; 4 | set Y[foo-bar] := foo[*] bar[ * ] bar[1,*,a,*] foo-bar hello-goodbye ; 5 | -------------------------------------------------------------------------------- /pyomo/dataportal/tests/param1.baseline.csv: -------------------------------------------------------------------------------- 1 | p 2 | 1 3 | -------------------------------------------------------------------------------- /pyomo/dataportal/tests/param1.baseline.json: -------------------------------------------------------------------------------- 1 | {"p": 1} -------------------------------------------------------------------------------- /pyomo/dataportal/tests/param1.baseline.tab: -------------------------------------------------------------------------------- 1 | p 2 | 1 3 | -------------------------------------------------------------------------------- /pyomo/dataportal/tests/param1.baseline.xml: -------------------------------------------------------------------------------- 1 |

-------------------------------------------------------------------------------- /pyomo/dataportal/tests/param1.baseline.yaml: -------------------------------------------------------------------------------- 1 | {p: 1} 2 | -------------------------------------------------------------------------------- /pyomo/dataportal/tests/param2.baseline.csv: -------------------------------------------------------------------------------- 1 | I0,p 2 | 1,10 3 | 2,20 4 | 3,30 5 | -------------------------------------------------------------------------------- /pyomo/dataportal/tests/param2.baseline.json: -------------------------------------------------------------------------------- 1 | {"p": [{"index": 1, "value": 10}, {"index": 2, "value": 20}, {"index": 3, "value": 30}]} -------------------------------------------------------------------------------- /pyomo/dataportal/tests/param2.baseline.tab: -------------------------------------------------------------------------------- 1 | I0 p 2 | 1 10 3 | 2 20 4 | 3 30 5 | -------------------------------------------------------------------------------- /pyomo/dataportal/tests/param2.baseline.xml: -------------------------------------------------------------------------------- 1 |

-------------------------------------------------------------------------------- /pyomo/dataportal/tests/param2.baseline.yaml: -------------------------------------------------------------------------------- 1 | p: 2 | - {index: 1, value: 10} 3 | - {index: 2, value: 20} 4 | - {index: 3, value: 30} 5 | -------------------------------------------------------------------------------- /pyomo/dataportal/tests/param3.baseline.csv: -------------------------------------------------------------------------------- 1 | I0,I1,p,q 2 | 1,2,10,11 3 | 2,3,20,21 4 | 3,4,30,31 5 | -------------------------------------------------------------------------------- /pyomo/dataportal/tests/param3.baseline.json: -------------------------------------------------------------------------------- 1 | {"q": [{"index": [1, 2], "value": 11}, {"index": [2, 3], "value": 21}, {"index": [3, 4], "value": 31}], "p": [{"index": [1, 2], "value": 10}, {"index": [2, 3], "value": 20}, {"index": [3, 4], "value": 30}]} -------------------------------------------------------------------------------- /pyomo/dataportal/tests/param3.baseline.tab: -------------------------------------------------------------------------------- 1 | I0 I1 p q 2 | 1 2 10 11 3 | 2 3 20 21 4 | 3 4 30 31 5 | -------------------------------------------------------------------------------- /pyomo/dataportal/tests/param3.baseline.xml: -------------------------------------------------------------------------------- 1 |

-------------------------------------------------------------------------------- /pyomo/dataportal/tests/param3.baseline.yaml: -------------------------------------------------------------------------------- 1 | p: 2 | - index: [1, 2] 3 | value: 10 4 | - index: [2, 3] 5 | value: 20 6 | - index: [3, 4] 7 | value: 30 8 | q: 9 | - index: [1, 2] 10 | value: 11 11 | - index: [2, 3] 12 | value: 21 13 | - index: [3, 4] 14 | value: 31 15 | -------------------------------------------------------------------------------- /pyomo/dataportal/tests/param4.baseline.csv: -------------------------------------------------------------------------------- 1 | I0,I1,p,q 2 | 1,2,10,11 3 | 2,3,20,21 4 | 3,4,30,31 5 | -------------------------------------------------------------------------------- /pyomo/dataportal/tests/param4.baseline.json: -------------------------------------------------------------------------------- 1 | {"q": [{"index": [1, 2], "value": 11}, {"index": [2, 3], "value": 21}, {"index": [3, 4], "value": 31}], "p": [{"index": [1, 2], "value": 10}, {"index": [2, 3], "value": 20}, {"index": [3, 4], "value": 30}]} -------------------------------------------------------------------------------- /pyomo/dataportal/tests/param4.baseline.tab: -------------------------------------------------------------------------------- 1 | I0 I1 p q 2 | 1 2 10 11 3 | 2 3 20 21 4 | 3 4 30 31 5 | -------------------------------------------------------------------------------- /pyomo/dataportal/tests/param4.baseline.xml: -------------------------------------------------------------------------------- 1 |

-------------------------------------------------------------------------------- /pyomo/dataportal/tests/param4.baseline.yaml: -------------------------------------------------------------------------------- 1 | p: 2 | - index: [1, 2] 3 | value: 10 4 | - index: [2, 3] 5 | value: 20 6 | - index: [3, 4] 7 | value: 30 8 | q: 9 | - index: [1, 2] 10 | value: 11 11 | - index: [2, 3] 12 | value: 21 13 | - index: [3, 4] 14 | value: 31 15 | -------------------------------------------------------------------------------- /pyomo/dataportal/tests/set1.baseline.csv: -------------------------------------------------------------------------------- 1 | A0 2 | 1 3 | 3 4 | 5 5 | -------------------------------------------------------------------------------- /pyomo/dataportal/tests/set1.baseline.json: -------------------------------------------------------------------------------- 1 | {"A": [1, 3, 5]} -------------------------------------------------------------------------------- /pyomo/dataportal/tests/set1.baseline.tab: -------------------------------------------------------------------------------- 1 | A0 2 | 1 3 | 3 4 | 5 5 | -------------------------------------------------------------------------------- /pyomo/dataportal/tests/set1.baseline.xml: -------------------------------------------------------------------------------- 1 |
-------------------------------------------------------------------------------- /pyomo/dataportal/tests/set1.baseline.yaml: -------------------------------------------------------------------------------- 1 | A: [1, 3, 5] 2 | -------------------------------------------------------------------------------- /pyomo/dataportal/tests/set2.baseline.csv: -------------------------------------------------------------------------------- 1 | A0,A1 2 | 1,2 3 | 3,4 4 | 5,6 5 | -------------------------------------------------------------------------------- /pyomo/dataportal/tests/set2.baseline.json: -------------------------------------------------------------------------------- 1 | {"A": [[1, 2], [3, 4], [5, 6]]} -------------------------------------------------------------------------------- /pyomo/dataportal/tests/set2.baseline.tab: -------------------------------------------------------------------------------- 1 | A0 A1 2 | 1 2 3 | 3 4 4 | 5 6 5 | -------------------------------------------------------------------------------- /pyomo/dataportal/tests/set2.baseline.xml: -------------------------------------------------------------------------------- 1 |
-------------------------------------------------------------------------------- /pyomo/dataportal/tests/set2.baseline.yaml: -------------------------------------------------------------------------------- 1 | A: 2 | - [1, 2] 3 | - [3, 4] 4 | - [5, 6] 5 | -------------------------------------------------------------------------------- /pyomo/mpec/tests/cov1_None.txt: -------------------------------------------------------------------------------- 1 | cc : Size=3, Index=cc_index, Active=True 2 | Key : Arg0 : Arg1 : Active 3 | 0 : y + x3 : x1 + 2*x2 == 0.0 : True 4 | 1 : y + x3 : x1 + 2*x2 == 1.0 : True 5 | 2 : y + x3 : x1 + 2*x2 == 2.0 : True 6 | -------------------------------------------------------------------------------- /pyomo/mpec/tests/cov2_None.txt: -------------------------------------------------------------------------------- 1 | cc : Size=0, Index={0, 1, 2}, Active=True 2 | Key : Arg0 : Arg1 : Active 3 | -------------------------------------------------------------------------------- /pyomo/mpec/tests/cov2_mpec.simple_disjunction.txt: -------------------------------------------------------------------------------- 1 | cc : Size=0, Index={0, 1, 2}, Active=True 2 | Key : Arg0 : Arg1 : Active 3 | -------------------------------------------------------------------------------- /pyomo/mpec/tests/cov2_mpec.simple_nonlinear.txt: -------------------------------------------------------------------------------- 1 | cc : Size=0, Index={0, 1, 2}, Active=True 2 | Key : Arg0 : Arg1 : Active 3 | -------------------------------------------------------------------------------- /pyomo/mpec/tests/cov2_mpec.standard_form.txt: -------------------------------------------------------------------------------- 1 | cc : Size=0, Index={0, 1, 2}, Active=True 2 | Key : Arg0 : Arg1 : Active 3 | -------------------------------------------------------------------------------- /pyomo/mpec/tests/cov3_None.txt: -------------------------------------------------------------------------------- 1 | cc : Size=0, Index=cc_index, Active=True 2 | Key : Arg0 : Arg1 : Active 3 | -------------------------------------------------------------------------------- /pyomo/mpec/tests/cov3_mpec.simple_disjunction.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/pyomo/mpec/tests/cov3_mpec.simple_disjunction.txt -------------------------------------------------------------------------------- /pyomo/mpec/tests/cov3_mpec.simple_nonlinear.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/pyomo/mpec/tests/cov3_mpec.simple_nonlinear.txt -------------------------------------------------------------------------------- /pyomo/mpec/tests/cov3_mpec.standard_form.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/pyomo/mpec/tests/cov3_mpec.standard_form.txt -------------------------------------------------------------------------------- /pyomo/mpec/tests/cov4_None.txt: -------------------------------------------------------------------------------- 1 | cc : Size=1, Index=None, Active=True 2 | Key : Arg0 : Arg1 : Active 3 | None : y + x3 : x1 + 2*x2 == 1 : True 4 | -------------------------------------------------------------------------------- /pyomo/mpec/tests/cov8_None.txt: -------------------------------------------------------------------------------- 1 | cc : Size=1, Index=None, Active=True 2 | Key : Arg0 : Arg1 : Active 3 | None : y + x3 : x1 + 2*x2 == 1 : True 4 | -------------------------------------------------------------------------------- /pyomo/mpec/tests/list1_None.txt: -------------------------------------------------------------------------------- 1 | cc : Size=2, Index={1, 2}, Active=True 2 | Key : Arg0 : Arg1 : Active 3 | 1 : y + x3 : x1 + 2*x2 == 0 : True 4 | 2 : y + x3 : x1 + 2*x2 == 2 : True 5 | -------------------------------------------------------------------------------- /pyomo/mpec/tests/list2_None.txt: -------------------------------------------------------------------------------- 1 | cc : Size=3, Index={1, 2, 3}, Active=True 2 | Key : Arg0 : Arg1 : Active 3 | 1 : y + x3 : x1 + 2*x2 == 0 : True 4 | 2 : y + x3 : x1 + 2*x2 == 1 : False 5 | 3 : y + x3 : x1 + 2*x2 == 2 : True 6 | -------------------------------------------------------------------------------- /pyomo/mpec/tests/list5_None.txt: -------------------------------------------------------------------------------- 1 | cc : Size=3, Index={1, 2, 3}, Active=True 2 | Key : Arg0 : Arg1 : Active 3 | 1 : y + x3 : x1 + 2*x2 == 0 : True 4 | 2 : y + x3 : x1 + 2*x2 == 1 : True 5 | 3 : y + x3 : x1 + 2*x2 == 2 : True 6 | -------------------------------------------------------------------------------- /pyomo/mpec/tests/t10_None.txt: -------------------------------------------------------------------------------- 1 | cc : Size=3, Index={0, 1, 2}, Active=True 2 | Key : Arg0 : Arg1 : Active 3 | 0 : y + x3 : x1 + 2*x2 == 0 : True 4 | 1 : y + x3 : x1 + 2*x2 == 1 : False 5 | 2 : y + x3 : x1 + 2*x2 == 2 : True 6 | -------------------------------------------------------------------------------- /pyomo/mpec/tests/t11_None.txt: -------------------------------------------------------------------------------- 1 | cc : Size=1, Index=None, Active=True 2 | Key : Arg0 : Arg1 : Active 3 | None : 2 <= y + x1 <= 3 : x1 : True 4 | -------------------------------------------------------------------------------- /pyomo/mpec/tests/t12_None.txt: -------------------------------------------------------------------------------- 1 | cc : Size=1, Index=None, Active=True 2 | Key : Arg0 : Arg1 : Active 3 | None : x1 : 2 <= y + x1 <= 3 : True 4 | -------------------------------------------------------------------------------- /pyomo/mpec/tests/t13_None.txt: -------------------------------------------------------------------------------- 1 | cc : Size=2, Index={0, 1, 2}, Active=True 2 | Key : Arg0 : Arg1 : Active 3 | 0 : y + x3 : x1 + 2*x2 == 0 : True 4 | 2 : y + x3 : x1 + 2*x2 == 2 : True 5 | -------------------------------------------------------------------------------- /pyomo/mpec/tests/t1a_None.txt: -------------------------------------------------------------------------------- 1 | cc : Size=1, Index=None, Active=True 2 | Key : Arg0 : Arg1 : Active 3 | None : 0 <= y + x1 : 1 <= x1 + 2*x2 + 3*x3 : True 4 | -------------------------------------------------------------------------------- /pyomo/mpec/tests/t1b_None.txt: -------------------------------------------------------------------------------- 1 | cc : Size=1, Index=None, Active=True 2 | Key : Arg0 : Arg1 : Active 3 | None : 1 <= x1 + 2*x2 + 3*x3 : 0 <= y + x1 : True 4 | -------------------------------------------------------------------------------- /pyomo/mpec/tests/t1c_None.txt: -------------------------------------------------------------------------------- 1 | cc : Size=1, Index=None, Active=True 2 | Key : Arg0 : Arg1 : Active 3 | None : - x1 <= y : 1 - 3*x3 <= x1 + 2*x2 : True 4 | -------------------------------------------------------------------------------- /pyomo/mpec/tests/t2a_None.txt: -------------------------------------------------------------------------------- 1 | cc : Size=1, Index=None, Active=True 2 | Key : Arg0 : Arg1 : Active 3 | None : 0 <= y + x2 : x2 - x3 <= -1 : True 4 | -------------------------------------------------------------------------------- /pyomo/mpec/tests/t2b_None.txt: -------------------------------------------------------------------------------- 1 | cc : Size=1, Index=None, Active=True 2 | Key : Arg0 : Arg1 : Active 3 | None : x2 - x3 <= -1 : 0 <= y + x2 : True 4 | -------------------------------------------------------------------------------- /pyomo/mpec/tests/t3a_None.txt: -------------------------------------------------------------------------------- 1 | cc : Size=1, Index=None, Active=True 2 | Key : Arg0 : Arg1 : Active 3 | None : 0 <= y + x3 : -1 <= x1 + x2 : True 4 | -------------------------------------------------------------------------------- /pyomo/mpec/tests/t3b_None.txt: -------------------------------------------------------------------------------- 1 | cc : Size=1, Index=None, Active=True 2 | Key : Arg0 : Arg1 : Active 3 | None : -1 <= x1 + x2 : 0 <= y + x3 : True 4 | -------------------------------------------------------------------------------- /pyomo/mpec/tests/t4a_None.txt: -------------------------------------------------------------------------------- 1 | cc : Size=1, Index=None, Active=True 2 | Key : Arg0 : Arg1 : Active 3 | None : x1 + 2*x2 + 3*x3 == 1 : y + x3 : True 4 | -------------------------------------------------------------------------------- /pyomo/mpec/tests/t4b_None.txt: -------------------------------------------------------------------------------- 1 | cc : Size=1, Index=None, Active=True 2 | Key : Arg0 : Arg1 : Active 3 | None : y + x3 : x1 + 2*x2 + 3*x3 == 1 : True 4 | -------------------------------------------------------------------------------- /pyomo/mpec/tests/t4c_None.txt: -------------------------------------------------------------------------------- 1 | cc : Size=1, Index=None, Active=True 2 | Key : Arg0 : Arg1 : Active 3 | None : x1 + 2*x2 + 3*x3 == 1 : y + x3 : True 4 | -------------------------------------------------------------------------------- /pyomo/mpec/tests/t4d_None.txt: -------------------------------------------------------------------------------- 1 | cc : Size=1, Index=None, Active=True 2 | Key : Arg0 : Arg1 : Active 3 | None : x1 + 2*x2 == 1 - 3*x3 : y + x3 : True 4 | -------------------------------------------------------------------------------- /pyomo/mpec/tests/t9_None.txt: -------------------------------------------------------------------------------- 1 | cc : Size=1, Index=None, Active=False 2 | Key : Arg0 : Arg1 : Active 3 | None : y + x3 : x1 + 2*x2 == 1 : False 4 | -------------------------------------------------------------------------------- /pyomo/mpec/tests/t9_mpec.simple_disjunction.txt: -------------------------------------------------------------------------------- 1 | cc : Size=1, Index=None, Active=False 2 | Key : Arg0 : Arg1 : Active 3 | None : y + x3 : x1 + 2*x2 == 1 : False 4 | -------------------------------------------------------------------------------- /pyomo/mpec/tests/t9_mpec.simple_nonlinear.txt: -------------------------------------------------------------------------------- 1 | cc : Size=1, Index=None, Active=False 2 | Key : Arg0 : Arg1 : Active 3 | None : y + x3 : x1 + 2*x2 == 1 : False 4 | -------------------------------------------------------------------------------- /pyomo/mpec/tests/t9_mpec.standard_form.txt: -------------------------------------------------------------------------------- 1 | cc : Size=1, Index=None, Active=False 2 | Key : Arg0 : Arg1 : Active 3 | None : y + x3 : x1 + 2*x2 == 1 : False 4 | -------------------------------------------------------------------------------- /pyomo/opt/tests/base/bad_objno.sol: -------------------------------------------------------------------------------- 1 | CONOPT 3.17A: Optimal; objective 1 2 | 4 iterations; evals: nf = 2, ng = 0, nc = 2, nJ = 0, nH = 0, nHv = 0 3 | 4 | Options 5 | 3 6 | 1 7 | 1 8 | 0 9 | 1 10 | 1 11 | 1 12 | 1 13 | 1 14 | 1 15 | Xobjno 0 0 16 | suffix 0 1 8 0 0 17 | sstatus 18 | 0 1 19 | suffix 1 1 8 0 0 20 | sstatus 21 | 0 3 22 | 23 | -------------------------------------------------------------------------------- /pyomo/opt/tests/base/bad_objnoline.sol: -------------------------------------------------------------------------------- 1 | CONOPT 3.17A: Optimal; objective 1 2 | 4 iterations; evals: nf = 2, ng = 0, nc = 2, nJ = 0, nH = 0, nHv = 0 3 | 4 | Options 5 | 3 6 | 1 7 | 1 8 | 0 9 | 1 10 | 1 11 | 1 12 | 1 13 | 1 14 | 1 15 | objno 0 0 1 16 | suffix 0 1 8 0 0 17 | sstatus 18 | 0 1 19 | suffix 1 1 8 0 0 20 | sstatus 21 | 0 3 22 | 23 | -------------------------------------------------------------------------------- /pyomo/opt/tests/base/bad_options.sol: -------------------------------------------------------------------------------- 1 | CONOPT 3.17A: Optimal; objective 1 2 | 4 iterations; evals: nf = 2, ng = 0, nc = 2, nJ = 0, nH = 0, nHv = 0 3 | 4 | OXptions 5 | 3 6 | 1 7 | 1 8 | 0 9 | 1 10 | 1 11 | 1 12 | 1 13 | 1 14 | 1 15 | objno 0 0 16 | suffix 0 1 8 0 0 17 | sstatus 18 | 0 1 19 | suffix 1 1 8 0 0 20 | sstatus 21 | 0 3 22 | 23 | -------------------------------------------------------------------------------- /pyomo/opt/tests/base/conopt_optimal.sol: -------------------------------------------------------------------------------- 1 | CONOPT 3.17A: Optimal; objective 1 2 | 4 iterations; evals: nf = 2, ng = 0, nc = 2, nJ = 0, nH = 0, nHv = 0 3 | 4 | Options 5 | 3 6 | 1 7 | 1 8 | 0 9 | 1 10 | 1 11 | 1 12 | 1 13 | 1 14 | 1 15 | objno 0 0 16 | suffix 0 1 8 0 0 17 | sstatus 18 | 0 1 19 | suffix 1 1 8 0 0 20 | sstatus 21 | 0 3 22 | 23 | -------------------------------------------------------------------------------- /pyomo/opt/tests/base/infeasible2.sol: -------------------------------------------------------------------------------- 1 | 2 | Couenne (C:\Users\SASCHA~1\AppData\Local\Temp\tmpvcmknhw0.pyomo.nl May 18 2015): Infeasible 3 | 4 | Options 5 | 3 6 | 0 7 | 1 8 | 0 9 | 242 10 | 0 11 | 86 12 | 0 13 | objno 0 220 14 | -------------------------------------------------------------------------------- /pyomo/opt/tests/base/read_solution1.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/pyomo/opt/tests/base/read_solution1.txt -------------------------------------------------------------------------------- /pyomo/opt/tests/base/soln_pprint2.txt: -------------------------------------------------------------------------------- 1 | Status: unknown 2 | Objective: No values 3 | Variable: No nonzero values 4 | Constraint: No values 5 | 6 | -------------------------------------------------------------------------------- /pyomo/opt/tests/base/test2.lp: -------------------------------------------------------------------------------- 1 | max 2 | obj: - x1 + 2 x2 3 | s.t. 4 | C1: 2 x1 + x2 < 5 5 | c2: -4 x1 + 4 x2 < 5 6 | binary 7 | x2 x1 8 | end 9 | -------------------------------------------------------------------------------- /pyomo/opt/tests/solver/exe_dir/file_is_executable: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/pyomo/opt/tests/solver/exe_dir/file_is_executable -------------------------------------------------------------------------------- /pyomo/opt/tests/solver/exe_dir/file_not_executable: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/pyomo/opt/tests/solver/exe_dir/file_not_executable -------------------------------------------------------------------------------- /pyomo/repn/tests/ampl/small1.ampl.col: -------------------------------------------------------------------------------- 1 | y 2 | x 3 | -------------------------------------------------------------------------------- /pyomo/repn/tests/ampl/small1.ampl.row: -------------------------------------------------------------------------------- 1 | CON1 2 | OBJ 3 | -------------------------------------------------------------------------------- /pyomo/repn/tests/ampl/small10.ampl.col: -------------------------------------------------------------------------------- 1 | y 2 | -------------------------------------------------------------------------------- /pyomo/repn/tests/ampl/small10.ampl.row: -------------------------------------------------------------------------------- 1 | con1 2 | con2 3 | con3 4 | con4 5 | con5 6 | con6 7 | con7 8 | con8 9 | con9 10 | con12 11 | con13 12 | con14 13 | con15 14 | con17 15 | obj 16 | -------------------------------------------------------------------------------- /pyomo/repn/tests/ampl/small11.ampl.col: -------------------------------------------------------------------------------- 1 | x[1,2] 2 | x[1,3] 3 | x[3,3] 4 | -------------------------------------------------------------------------------- /pyomo/repn/tests/ampl/small11.ampl.row: -------------------------------------------------------------------------------- 1 | var_bnd[1] 2 | var_bnd[2] 3 | var_bnd[3] 4 | obj 5 | -------------------------------------------------------------------------------- /pyomo/repn/tests/ampl/small12.ampl.col: -------------------------------------------------------------------------------- 1 | vTrue 2 | vFalse 3 | v0 4 | vN1 5 | vP1 6 | vN2 7 | vP2 8 | -------------------------------------------------------------------------------- /pyomo/repn/tests/ampl/small12.ampl.row: -------------------------------------------------------------------------------- 1 | c3 2 | c4 3 | c5 4 | c6 5 | c7 6 | c8 7 | c9 8 | c10 9 | c11 10 | c12 11 | c13 12 | c14 13 | c15 14 | c16 15 | c17 16 | c18 17 | c19 18 | c20 19 | c21 20 | c22 21 | c23 22 | c24 23 | c1 24 | c2 25 | obj 26 | -------------------------------------------------------------------------------- /pyomo/repn/tests/ampl/small13.ampl.col: -------------------------------------------------------------------------------- 1 | x 2 | -------------------------------------------------------------------------------- /pyomo/repn/tests/ampl/small13.ampl.row: -------------------------------------------------------------------------------- 1 | c1 2 | c2 3 | c3 4 | obj 5 | -------------------------------------------------------------------------------- /pyomo/repn/tests/ampl/small14.ampl.col: -------------------------------------------------------------------------------- 1 | ONE 2 | ZERO 3 | -------------------------------------------------------------------------------- /pyomo/repn/tests/ampl/small14.ampl.row: -------------------------------------------------------------------------------- 1 | c_log 2 | c_log10 3 | c_sin 4 | c_cos 5 | c_tan 6 | c_sinh 7 | c_cosh 8 | c_tanh 9 | c_asin 10 | c_acos 11 | c_atan 12 | c_asinh 13 | c_acosh 14 | c_atanh 15 | c_exp 16 | c_sqrt 17 | c_ceil 18 | c_floor 19 | c_abs 20 | obj 21 | -------------------------------------------------------------------------------- /pyomo/repn/tests/ampl/small15.ampl.col: -------------------------------------------------------------------------------- 1 | b.y 2 | x 3 | -------------------------------------------------------------------------------- /pyomo/repn/tests/ampl/small15.ampl.row: -------------------------------------------------------------------------------- 1 | CON1 2 | OBJ 3 | -------------------------------------------------------------------------------- /pyomo/repn/tests/ampl/small2.ampl.col: -------------------------------------------------------------------------------- 1 | y 2 | x 3 | -------------------------------------------------------------------------------- /pyomo/repn/tests/ampl/small2.ampl.row: -------------------------------------------------------------------------------- 1 | CON1 2 | OBJ 3 | -------------------------------------------------------------------------------- /pyomo/repn/tests/ampl/small3.ampl.col: -------------------------------------------------------------------------------- 1 | y 2 | x 3 | -------------------------------------------------------------------------------- /pyomo/repn/tests/ampl/small3.ampl.row: -------------------------------------------------------------------------------- 1 | CON1 2 | OBJ 3 | -------------------------------------------------------------------------------- /pyomo/repn/tests/ampl/small4.ampl.col: -------------------------------------------------------------------------------- 1 | y 2 | x 3 | -------------------------------------------------------------------------------- /pyomo/repn/tests/ampl/small4.ampl.row: -------------------------------------------------------------------------------- 1 | CON1 2 | OBJ 3 | -------------------------------------------------------------------------------- /pyomo/repn/tests/ampl/small5.ampl.col: -------------------------------------------------------------------------------- 1 | x 2 | y 3 | v 4 | -------------------------------------------------------------------------------- /pyomo/repn/tests/ampl/small5.ampl.row: -------------------------------------------------------------------------------- 1 | CON1 2 | CON2 3 | CON3 4 | CON4 5 | CON5 6 | CON6 7 | CON7 8 | CON8 9 | CON9 10 | CON10 11 | CON11 12 | CON12 13 | OBJ 14 | -------------------------------------------------------------------------------- /pyomo/repn/tests/ampl/small6.ampl.col: -------------------------------------------------------------------------------- 1 | x 2 | y 3 | v 4 | -------------------------------------------------------------------------------- /pyomo/repn/tests/ampl/small6.ampl.row: -------------------------------------------------------------------------------- 1 | CON1 2 | CON2 3 | CON3 4 | CON4 5 | CON5 6 | CON6 7 | OBJ 8 | -------------------------------------------------------------------------------- /pyomo/repn/tests/ampl/small7.ampl.col: -------------------------------------------------------------------------------- 1 | x 2 | y 3 | v 4 | -------------------------------------------------------------------------------- /pyomo/repn/tests/ampl/small7.ampl.row: -------------------------------------------------------------------------------- 1 | CON1a 2 | CON2a 3 | CON3a 4 | CON4a 5 | CON5a 6 | CON6a 7 | CON1b 8 | CON2b 9 | CON3b 10 | CON4b 11 | CON5b 12 | CON6b 13 | CON1c 14 | CON2c 15 | CON3c 16 | CON4c 17 | CON5c 18 | CON6c 19 | CON1d 20 | CON2d 21 | CON3d 22 | CON4d 23 | CON5d 24 | CON6d 25 | OBJ 26 | -------------------------------------------------------------------------------- /pyomo/repn/tests/ampl/small8.ampl.col: -------------------------------------------------------------------------------- 1 | y 2 | x 3 | z 4 | -------------------------------------------------------------------------------- /pyomo/repn/tests/ampl/small8.ampl.row: -------------------------------------------------------------------------------- 1 | constr 2 | constr2 3 | constr3 4 | obj 5 | -------------------------------------------------------------------------------- /pyomo/repn/tests/ampl/small9.ampl.col: -------------------------------------------------------------------------------- 1 | x 2 | -------------------------------------------------------------------------------- /pyomo/repn/tests/ampl/small9.ampl.row: -------------------------------------------------------------------------------- 1 | con1 2 | con2 3 | con3 4 | con4 5 | con5 6 | obj 7 | -------------------------------------------------------------------------------- /pyomo/repn/tests/baron/exponential_NPV.bar.baseline: -------------------------------------------------------------------------------- 1 | OPTIONS { 2 | Summary: 0; 3 | } 4 | 5 | POSITIVE_VARIABLES ONE_VAR_CONST__; 6 | 7 | VARIABLES x; 8 | 9 | EQUATIONS c_e_FIX_ONE_VAR_CONST__, c; 10 | 11 | c_e_FIX_ONE_VAR_CONST__: ONE_VAR_CONST__ == 1; 12 | c: x == 0; 13 | 14 | OBJ: minimize x ^ 2; 15 | 16 | STARTING_POINT{ 17 | ONE_VAR_CONST__: 1; 18 | } 19 | 20 | -------------------------------------------------------------------------------- /pyomo/repn/tests/baron/var_on_other_model.bar.baseline: -------------------------------------------------------------------------------- 1 | OPTIONS { 2 | Summary: 0; 3 | } 4 | 5 | POSITIVE_VARIABLES ONE_VAR_CONST__; 6 | 7 | VARIABLES a, x; 8 | 9 | EQUATIONS c_e_FIX_ONE_VAR_CONST__, c; 10 | 11 | c_e_FIX_ONE_VAR_CONST__: ONE_VAR_CONST__ == 1; 12 | c: a + 2*x <= 0; 13 | 14 | OBJ: minimize x; 15 | 16 | STARTING_POINT{ 17 | ONE_VAR_CONST__: 1; 18 | } 19 | 20 | -------------------------------------------------------------------------------- /pyomo/repn/tests/cpxlp/column_ordering_linear.lp_v2.baseline: -------------------------------------------------------------------------------- 1 | \* Source Pyomo model name=unknown *\ 2 | 3 | min 4 | obj: 5 | +1 c 6 | +1 b 7 | +1 a 8 | 9 | s.t. 10 | 11 | c_u_con_: 12 | +1 c 13 | +1 b 14 | +1 a 15 | <= 1 16 | 17 | bounds 18 | -inf <= c <= +inf 19 | -inf <= b <= +inf 20 | -inf <= a <= +inf 21 | end 22 | -------------------------------------------------------------------------------- /pyomo/repn/tests/cpxlp/linear_var_on_other_model.lp_v2.baseline: -------------------------------------------------------------------------------- 1 | \* Source Pyomo model name=unknown *\ 2 | 3 | min 4 | x1: 5 | +1 x2 6 | 7 | s.t. 8 | 9 | c_u_x3_: 10 | +2 x2 11 | +1 x4 12 | <= 0 13 | 14 | bounds 15 | -inf <= x2 <= +inf 16 | -inf <= x4 <= +inf 17 | end 18 | -------------------------------------------------------------------------------- /pyomo/repn/tests/cpxlp/no_column_ordering_linear.lp_v2.baseline: -------------------------------------------------------------------------------- 1 | \* Source Pyomo model name=unknown *\ 2 | 3 | min 4 | obj: 5 | +1 a 6 | +1 b 7 | +1 c 8 | 9 | s.t. 10 | 11 | c_u_con_: 12 | +1 a 13 | +1 b 14 | +1 c 15 | <= 1 16 | 17 | bounds 18 | -inf <= a <= +inf 19 | -inf <= b <= +inf 20 | -inf <= c <= +inf 21 | end 22 | -------------------------------------------------------------------------------- /pyomo/repn/tests/cpxlp/quadratic_var_on_other_model.lp_v2.baseline: -------------------------------------------------------------------------------- 1 | \* Source Pyomo model name=unknown *\ 2 | 3 | min 4 | x1: 5 | +1 x2 6 | 7 | s.t. 8 | 9 | c_u_x3_: 10 | + [ 11 | +1 x2 * x4 12 | ] 13 | <= 0 14 | 15 | bounds 16 | -inf <= x2 <= +inf 17 | -inf <= x4 <= +inf 18 | end 19 | -------------------------------------------------------------------------------- /pyomo/repn/tests/cpxlp/var_on_deactivated_block.lp.baseline: -------------------------------------------------------------------------------- 1 | \* Source Pyomo model name=unknown *\ 2 | 3 | min 4 | x3: 5 | +1 x1 6 | 7 | s.t. 8 | 9 | c_u_x4_: 10 | +2 x1 11 | +1 x2 12 | <= 0 13 | 14 | c_e_ONE_VAR_CONSTANT: 15 | ONE_VAR_CONSTANT = 1.0 16 | 17 | bounds 18 | -inf <= x1 <= +inf 19 | -inf <= x2 <= +inf 20 | end 21 | -------------------------------------------------------------------------------- /pyomo/repn/tests/cpxlp/var_on_deactivated_block.lp_v2.baseline: -------------------------------------------------------------------------------- 1 | \* Source Pyomo model name=unknown *\ 2 | 3 | min 4 | x1: 5 | +1 x2 6 | 7 | s.t. 8 | 9 | c_u_x3_: 10 | +2 x2 11 | +1 x4 12 | <= 0 13 | 14 | bounds 15 | -inf <= x2 <= +inf 16 | -inf <= x4 <= +inf 17 | end 18 | -------------------------------------------------------------------------------- /pyomo/repn/tests/cpxlp/var_on_nonblock.lp_v2.baseline: -------------------------------------------------------------------------------- 1 | \* Source Pyomo model name=unknown *\ 2 | 3 | min 4 | x1: 5 | +1 x2 6 | 7 | s.t. 8 | 9 | c_u_x3_: 10 | +2 x2 11 | +1 x4 12 | <= 0 13 | 14 | bounds 15 | -inf <= x2 <= +inf 16 | -inf <= x4 <= +inf 17 | end 18 | -------------------------------------------------------------------------------- /pyomo/solvers/tests/README.txt: -------------------------------------------------------------------------------- 1 | solvers.py 2 | Defines solver/io test cases 3 | testcases.py 4 | Defines test_scenarios(), which filters model/solver/io test cases 5 | 6 | models/ 7 | Directory where each *.py file represents a test model 8 | checks/ 9 | Directory of test scripts 10 | 11 | THESE NEED TO BE REVIEWED 12 | core/ 13 | mip/ 14 | piecewise_linear/ 15 | -------------------------------------------------------------------------------- /pyomo/solvers/tests/checks/data/fix_parsing_bug.out.lp: -------------------------------------------------------------------------------- 1 | left empty on purpose -------------------------------------------------------------------------------- /pyomo/solvers/tests/mip/asl/test4.soln: -------------------------------------------------------------------------------- 1 | MILP solution: 2 | Objective value = 2 3 | x2 = 1 4 | -------------------------------------------------------------------------------- /pyomo/solvers/tests/mip/cbc/test2.soln: -------------------------------------------------------------------------------- 1 | Optimal - objective value -2 2 | 0 C1 1 0 3 | 1 c2 4 0 4 | 0 x1 0 1 5 | 1 x2 1 -2 6 | -------------------------------------------------------------------------------- /pyomo/solvers/tests/mip/test2.lp: -------------------------------------------------------------------------------- 1 | maximize 2 | obj: - x1 + 2 x2 3 | s.t. 4 | C1: 2 x1 + x2 <= 5 5 | c2: -4 x1 + 4 x2 <= 5 6 | binary 7 | x2 x1 8 | end 9 | -------------------------------------------------------------------------------- /pyomo/solvers/tests/mip/test_mod_nl1.nl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pyomo/pyomo/a8d0bfaad87b7514e45653593d6e36babfb72638/pyomo/solvers/tests/mip/test_mod_nl1.nl -------------------------------------------------------------------------------- /pyomo/solvers/tests/piecewise_linear/baselines/concave_var_baseline_results.yml: -------------------------------------------------------------------------------- 1 | {Fx1: -25.0, Fx2: -9.0, Fx3: -6.5, Fx4: -2.5, Fx5: -4.0, Fx6: -12.5, Fx7: -16.0, x1: -5.0, 2 | x2: -3.0, x3: -2.5, x4: -1.5, x5: 2.0, x6: 3.5, x7: 4.0} 3 | -------------------------------------------------------------------------------- /pyomo/solvers/tests/piecewise_linear/baselines/concave_vararray_baseline_results.yml: -------------------------------------------------------------------------------- 1 | {'Fx[1]': -25.0, 'Fx[2]': -9.0, 'Fx[3]': -6.5, 'Fx[4]': -2.5, 'Fx[5]': -4.0, 'Fx[6]': -12.5, 2 | 'Fx[7]': -16.0, 'x[1]': -5.0, 'x[2]': -3.0, 'x[3]': -2.5, 'x[4]': -1.5, 'x[5]': 2.0, 3 | 'x[6]': 3.5, 'x[7]': 4.0} 4 | -------------------------------------------------------------------------------- /pyomo/solvers/tests/piecewise_linear/baselines/convex_var_baseline_results.yml: -------------------------------------------------------------------------------- 1 | {Fx1: 25.0, Fx2: 9.0, Fx3: 6.5, Fx4: 2.5, Fx5: 4.0, Fx6: 12.5, Fx7: 16.0, x1: -5.0, 2 | x2: -3.0, x3: -2.5, x4: -1.5, x5: 2.0, x6: 3.5, x7: 4.0} 3 | -------------------------------------------------------------------------------- /pyomo/solvers/tests/piecewise_linear/baselines/convex_vararray_baseline_results.yml: -------------------------------------------------------------------------------- 1 | {'Fx[1]': 25.0, 'Fx[2]': 9.0, 'Fx[3]': 6.5, 'Fx[4]': 2.5, 'Fx[5]': 4.0, 'Fx[6]': 12.5, 2 | 'Fx[7]': 16.0, 'x[1]': -5.0, 'x[2]': -3.0, 'x[3]': -2.5, 'x[4]': -1.5, 'x[5]': 2.0, 3 | 'x[6]': 3.5, 'x[7]': 4.0} 4 | -------------------------------------------------------------------------------- /pyomo/solvers/tests/piecewise_linear/baselines/piecewise_var_baseline_results.yml: -------------------------------------------------------------------------------- 1 | {Fx1: 0.0, Fx2: 3.0, Fx3: -2.0, Fx4: -1.0, x1: 0.0, x2: 3.0, x3: 5.5, x4: 6.0} 2 | -------------------------------------------------------------------------------- /pyomo/solvers/tests/piecewise_linear/baselines/piecewise_vararray_baseline_results.yml: -------------------------------------------------------------------------------- 1 | {'Fx[1]': 0.0, 'Fx[2]': 3.0, 'Fx[3]': -2.0, 'Fx[4]': -1.0, 'x[1]': 0.0, 'x[2]': 3.0, 2 | 'x[3]': 5.5, 'x[4]': 6.0} 3 | -------------------------------------------------------------------------------- /pyomo/solvers/tests/piecewise_linear/baselines/step_var_baseline_results.yml: -------------------------------------------------------------------------------- 1 | {Fx1: 0.0, Fx2: 0.5, Fx3: 1.0, Fx4: 1.5, x1: 0.5, x2: 1.0, x3: 1.5, x4: 2.5} 2 | -------------------------------------------------------------------------------- /pyomo/solvers/tests/piecewise_linear/baselines/step_vararray_baseline_results.yml: -------------------------------------------------------------------------------- 1 | {'Fx[1]': 0.0, 'Fx[2]': 0.5, 'Fx[3]': 1.0, 'Fx[4]': 1.5, 'x[1]': 0.5, 'x[2]': 1.0, 2 | 'x[3]': 1.5, 'x[4]': 2.5} 3 | -------------------------------------------------------------------------------- /pyomo/solvers/tests/piecewise_linear/convex.lp: -------------------------------------------------------------------------------- 1 | \* Source Pyomo model name=unknown *\ 2 | 3 | min 4 | obj: 5 | +1 Z 6 | 7 | s.t. 8 | 9 | c_u_con_simplified_piecewise_constraint(1)_: 10 | -1 Z 11 | -1.0 X 12 | <= -2.0 13 | 14 | c_u_con_simplified_piecewise_constraint(2)_: 15 | -1 Z 16 | +1 X 17 | <= 0.0 18 | 19 | bounds 20 | -inf <= Z <= +inf 21 | -5 <= X <= 5 22 | end 23 | -------------------------------------------------------------------------------- /pyomo/solvers/tests/piecewise_linear/kernel_baselines/concave_var_baseline_results.json: -------------------------------------------------------------------------------- 1 | {"Fx[0]": -25.0, "Fx[1]": -9.0, "Fx[2]": -6.5, "Fx[3]": -2.5, "Fx[4]": -4.0, "Fx[5]": -12.5, "Fx[6]": -16.0, "x[0]": -5.0, 2 | "x[1]": -3.0, "x[2]": -2.5, "x[3]": -1.5, "x[4]": 2.0, "x[5]": 3.5, "x[6]": 4.0} 3 | -------------------------------------------------------------------------------- /pyomo/solvers/tests/piecewise_linear/kernel_baselines/convex_var_baseline_results.json: -------------------------------------------------------------------------------- 1 | {"Fx[0]": 25.0, "Fx[1]": 9.0, "Fx[2]": 6.5, "Fx[3]": 2.5, "Fx[4]": 4.0, "Fx[5]": 12.5, "Fx[6]": 16.0, "x[0]": -5.0, 2 | "x[1]": -3.0, "x[2]": -2.5, "x[3]": -1.5, "x[4]": 2.0, "x[5]": 3.5, "x[6]": 4.0} 3 | -------------------------------------------------------------------------------- /pyomo/solvers/tests/piecewise_linear/kernel_baselines/piecewise_var_baseline_results.json: -------------------------------------------------------------------------------- 1 | {"Fx[0]": 0.0, "Fx[1]": 3.0, "Fx[2]": -2.0, "Fx[3]": -1.0, "x[0]": 0.0, "x[1]": 3.0, "x[2]": 5.5, "x[3]": 6.0} 2 | -------------------------------------------------------------------------------- /pyomo/solvers/tests/piecewise_linear/kernel_baselines/step_var_baseline_results.json: -------------------------------------------------------------------------------- 1 | {"Fx[0]": 0.0, "Fx[1]": 0.5, "Fx[2]": 1.0, "Fx[3]": 1.5, "x[0]": 0.5, "x[1]": 1.0, "x[2]": 1.5, "x[3]": 2.5} 2 | -------------------------------------------------------------------------------- /pyomo/util/README.md: -------------------------------------------------------------------------------- 1 | ## Pyomo Modeling utilities 2 | 3 | This module is host to user-focused modeling utilities. These utilities will not 4 | be imported by core Pyomo modules, and therefore can freely import from core. 5 | Developer-oriented programming utilities may be found in pyomo.common. 6 | --------------------------------------------------------------------------------