Skip to content

Commit 106bc89

Browse files
committed
Pooling: brackets around if-then
1 parent a6a819f commit 106bc89

15 files changed

Lines changed: 988 additions & 4644 deletions

File tree

authors/glebbelov/nonlinear/pooling/pooling.ipynb

Lines changed: 974 additions & 4596 deletions
Large diffs are not rendered by default.

docs/source/authors/gleb_at_ampl.com.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ Pooling Problem with Nonlinear and Setup Costs
280280
| `Notebooks <../notebooks/index.html>`_ > `Pooling Problem with Nonlinear and Setup Costs <../notebooks/pooling-problem-with-nonlinear-and-setup-costs.html>`_
281281
| |github-pooling-problem-with-nonlinear-and-setup-costs| |colab-pooling-problem-with-nonlinear-and-setup-costs| |deepnote-pooling-problem-with-nonlinear-and-setup-costs| |kaggle-pooling-problem-with-nonlinear-and-setup-costs| |gradient-pooling-problem-with-nonlinear-and-setup-costs| |sagemaker-pooling-problem-with-nonlinear-and-setup-costs|
282282
| Description: pooling problem with extra nonlinear and setup costs, solved by Knitro with MP2NL
283-
| Tags: :ref:`tag-amplpy`, :ref:`tag-pooling`, :ref:`tag-minimum-cost-flow`, :ref:`tag-blending`, :ref:`tag-knitro`, :ref:`tag-mp2nl`, :ref:`tag-nonlinear`, :ref:`tag-setup-costs`, :ref:`tag-semi-continuous`
283+
| Tags: :ref:`tag-pooling`, :ref:`tag-minimum-cost-flow`, :ref:`tag-blending`, :ref:`tag-nonlinear`, :ref:`tag-setup-costs`, :ref:`tag-semi-continuous`, :ref:`tag-amplpy`, :ref:`tag-knitro`, :ref:`tag-mp2nl`
284284
| Author: :ref:`email-gleb_at_ampl.com` <gleb@ampl.com>
285285
286286
.. |github-pooling-problem-with-nonlinear-and-setup-costs| image:: https://img.shields.io/badge/github-%23121011.svg?logo=github

docs/source/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2854,7 +2854,7 @@ Pooling Problem with Nonlinear and Setup Costs
28542854
| `Notebooks <notebooks/index.html>`_ > `Pooling Problem with Nonlinear and Setup Costs <notebooks/pooling-problem-with-nonlinear-and-setup-costs.html>`_
28552855
| |github-pooling-problem-with-nonlinear-and-setup-costs| |colab-pooling-problem-with-nonlinear-and-setup-costs| |deepnote-pooling-problem-with-nonlinear-and-setup-costs| |kaggle-pooling-problem-with-nonlinear-and-setup-costs| |gradient-pooling-problem-with-nonlinear-and-setup-costs| |sagemaker-pooling-problem-with-nonlinear-and-setup-costs|
28562856
| Description: pooling problem with extra nonlinear and setup costs, solved by Knitro with MP2NL
2857-
| Tags: :ref:`tag-amplpy`, :ref:`tag-pooling`, :ref:`tag-minimum-cost-flow`, :ref:`tag-blending`, :ref:`tag-knitro`, :ref:`tag-mp2nl`, :ref:`tag-nonlinear`, :ref:`tag-setup-costs`, :ref:`tag-semi-continuous`
2857+
| Tags: :ref:`tag-pooling`, :ref:`tag-minimum-cost-flow`, :ref:`tag-blending`, :ref:`tag-nonlinear`, :ref:`tag-setup-costs`, :ref:`tag-semi-continuous`, :ref:`tag-amplpy`, :ref:`tag-knitro`, :ref:`tag-mp2nl`
28582858
| Author: :ref:`email-gleb_at_ampl.com` <gleb@ampl.com>
28592859
28602860
.. |github-pooling-problem-with-nonlinear-and-setup-costs| image:: https://img.shields.io/badge/github-%23121011.svg?logo=github

docs/source/modules/gurobi.rst

Lines changed: 1 addition & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.. _module-gurobi:
22

3-
gurobi (51 notebooks)
3+
gurobi (50 notebooks)
44
=====================
55

66
AMPL Bin Packing Problem with GCG
@@ -1053,40 +1053,6 @@ Pattern Generation
10531053

10541054

10551055

1056-
Pooling Problem with Nonlinear and Setup Costs
1057-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1058-
| `Notebooks <../notebooks/index.html>`_ > `Pooling Problem with Nonlinear and Setup Costs <../notebooks/pooling-problem-with-nonlinear-and-setup-costs.html>`_
1059-
| |github-pooling-problem-with-nonlinear-and-setup-costs| |colab-pooling-problem-with-nonlinear-and-setup-costs| |deepnote-pooling-problem-with-nonlinear-and-setup-costs| |kaggle-pooling-problem-with-nonlinear-and-setup-costs| |gradient-pooling-problem-with-nonlinear-and-setup-costs| |sagemaker-pooling-problem-with-nonlinear-and-setup-costs|
1060-
| Description: pooling problem with extra nonlinear and setup costs, solved by Knitro with MP2NL
1061-
| Tags: :ref:`tag-amplpy`, :ref:`tag-pooling`, :ref:`tag-minimum-cost-flow`, :ref:`tag-blending`, :ref:`tag-knitro`, :ref:`tag-mp2nl`, :ref:`tag-nonlinear`, :ref:`tag-setup-costs`, :ref:`tag-semi-continuous`
1062-
| Author: :ref:`email-gleb_at_ampl.com` <gleb@ampl.com>
1063-
1064-
.. |github-pooling-problem-with-nonlinear-and-setup-costs| image:: https://img.shields.io/badge/github-%23121011.svg?logo=github
1065-
:target: https://github.com/ampl/colab.ampl.com/blob/master/authors/glebbelov/nonlinear/pooling/pooling.ipynb
1066-
:alt: pooling.ipynb
1067-
1068-
.. |colab-pooling-problem-with-nonlinear-and-setup-costs| image:: https://colab.research.google.com/assets/colab-badge.svg
1069-
:target: https://colab.research.google.com/github/ampl/colab.ampl.com/blob/master/authors/glebbelov/nonlinear/pooling/pooling.ipynb
1070-
:alt: Open In Colab
1071-
1072-
.. |deepnote-pooling-problem-with-nonlinear-and-setup-costs| image:: https://deepnote.com/buttons/launch-in-deepnote-small.svg
1073-
:target: https://deepnote.com/launch?url=https://github.com/ampl/colab.ampl.com/blob/master/authors/glebbelov/nonlinear/pooling/pooling.ipynb
1074-
:alt: Open In Deepnote
1075-
1076-
.. |kaggle-pooling-problem-with-nonlinear-and-setup-costs| image:: https://kaggle.com/static/images/open-in-kaggle.svg
1077-
:target: https://kaggle.com/kernels/welcome?src=https://github.com/ampl/colab.ampl.com/blob/master/authors/glebbelov/nonlinear/pooling/pooling.ipynb
1078-
:alt: Open In Kaggle
1079-
1080-
.. |gradient-pooling-problem-with-nonlinear-and-setup-costs| image:: https://assets.paperspace.io/img/gradient-badge.svg
1081-
:target: https://console.paperspace.com/github/ampl/colab.ampl.com/blob/master/authors/glebbelov/nonlinear/pooling/pooling.ipynb
1082-
:alt: Open In Gradient
1083-
1084-
.. |sagemaker-pooling-problem-with-nonlinear-and-setup-costs| image:: https://studiolab.sagemaker.aws/studiolab.svg
1085-
:target: https://studiolab.sagemaker.aws/import/github/ampl/colab.ampl.com/blob/master/authors/glebbelov/nonlinear/pooling/pooling.ipynb
1086-
:alt: Open In SageMaker Studio Lab
1087-
1088-
1089-
10901056
Porfolio Optimization with Multiple Risk Strategies in Python with AMPL
10911057
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
10921058
| `Notebooks <../notebooks/index.html>`_ > `Porfolio Optimization with Multiple Risk Strategies in Python with AMPL <../notebooks/porfolio-optimization-with-multiple-risk-strategies-in-python-with-ampl.html>`_

docs/source/modules/knitro.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ Pooling Problem with Nonlinear and Setup Costs
144144
| `Notebooks <../notebooks/index.html>`_ > `Pooling Problem with Nonlinear and Setup Costs <../notebooks/pooling-problem-with-nonlinear-and-setup-costs.html>`_
145145
| |github-pooling-problem-with-nonlinear-and-setup-costs| |colab-pooling-problem-with-nonlinear-and-setup-costs| |deepnote-pooling-problem-with-nonlinear-and-setup-costs| |kaggle-pooling-problem-with-nonlinear-and-setup-costs| |gradient-pooling-problem-with-nonlinear-and-setup-costs| |sagemaker-pooling-problem-with-nonlinear-and-setup-costs|
146146
| Description: pooling problem with extra nonlinear and setup costs, solved by Knitro with MP2NL
147-
| Tags: :ref:`tag-amplpy`, :ref:`tag-pooling`, :ref:`tag-minimum-cost-flow`, :ref:`tag-blending`, :ref:`tag-knitro`, :ref:`tag-mp2nl`, :ref:`tag-nonlinear`, :ref:`tag-setup-costs`, :ref:`tag-semi-continuous`
147+
| Tags: :ref:`tag-pooling`, :ref:`tag-minimum-cost-flow`, :ref:`tag-blending`, :ref:`tag-nonlinear`, :ref:`tag-setup-costs`, :ref:`tag-semi-continuous`, :ref:`tag-amplpy`, :ref:`tag-knitro`, :ref:`tag-mp2nl`
148148
| Author: :ref:`email-gleb_at_ampl.com` <gleb@ampl.com>
149149
150150
.. |github-pooling-problem-with-nonlinear-and-setup-costs| image:: https://img.shields.io/badge/github-%23121011.svg?logo=github

docs/source/modules/mp2nl.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Pooling Problem with Nonlinear and Setup Costs
88
| `Notebooks <../notebooks/index.html>`_ > `Pooling Problem with Nonlinear and Setup Costs <../notebooks/pooling-problem-with-nonlinear-and-setup-costs.html>`_
99
| |github-pooling-problem-with-nonlinear-and-setup-costs| |colab-pooling-problem-with-nonlinear-and-setup-costs| |deepnote-pooling-problem-with-nonlinear-and-setup-costs| |kaggle-pooling-problem-with-nonlinear-and-setup-costs| |gradient-pooling-problem-with-nonlinear-and-setup-costs| |sagemaker-pooling-problem-with-nonlinear-and-setup-costs|
1010
| Description: pooling problem with extra nonlinear and setup costs, solved by Knitro with MP2NL
11-
| Tags: :ref:`tag-amplpy`, :ref:`tag-pooling`, :ref:`tag-minimum-cost-flow`, :ref:`tag-blending`, :ref:`tag-knitro`, :ref:`tag-mp2nl`, :ref:`tag-nonlinear`, :ref:`tag-setup-costs`, :ref:`tag-semi-continuous`
11+
| Tags: :ref:`tag-pooling`, :ref:`tag-minimum-cost-flow`, :ref:`tag-blending`, :ref:`tag-nonlinear`, :ref:`tag-setup-costs`, :ref:`tag-semi-continuous`, :ref:`tag-amplpy`, :ref:`tag-knitro`, :ref:`tag-mp2nl`
1212
| Author: :ref:`email-gleb_at_ampl.com` <gleb@ampl.com>
1313
1414
.. |github-pooling-problem-with-nonlinear-and-setup-costs| image:: https://img.shields.io/badge/github-%23121011.svg?logo=github

docs/source/tags/amplpy.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1775,7 +1775,7 @@ Pooling Problem with Nonlinear and Setup Costs
17751775
| `Notebooks <../notebooks/index.html>`_ > `Pooling Problem with Nonlinear and Setup Costs <../notebooks/pooling-problem-with-nonlinear-and-setup-costs.html>`_
17761776
| |github-pooling-problem-with-nonlinear-and-setup-costs| |colab-pooling-problem-with-nonlinear-and-setup-costs| |deepnote-pooling-problem-with-nonlinear-and-setup-costs| |kaggle-pooling-problem-with-nonlinear-and-setup-costs| |gradient-pooling-problem-with-nonlinear-and-setup-costs| |sagemaker-pooling-problem-with-nonlinear-and-setup-costs|
17771777
| Description: pooling problem with extra nonlinear and setup costs, solved by Knitro with MP2NL
1778-
| Tags: :ref:`tag-amplpy`, :ref:`tag-pooling`, :ref:`tag-minimum-cost-flow`, :ref:`tag-blending`, :ref:`tag-knitro`, :ref:`tag-mp2nl`, :ref:`tag-nonlinear`, :ref:`tag-setup-costs`, :ref:`tag-semi-continuous`
1778+
| Tags: :ref:`tag-pooling`, :ref:`tag-minimum-cost-flow`, :ref:`tag-blending`, :ref:`tag-nonlinear`, :ref:`tag-setup-costs`, :ref:`tag-semi-continuous`, :ref:`tag-amplpy`, :ref:`tag-knitro`, :ref:`tag-mp2nl`
17791779
| Author: :ref:`email-gleb_at_ampl.com` <gleb@ampl.com>
17801780
17811781
.. |github-pooling-problem-with-nonlinear-and-setup-costs| image:: https://img.shields.io/badge/github-%23121011.svg?logo=github

docs/source/tags/blending.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Pooling Problem with Nonlinear and Setup Costs
88
| `Notebooks <../notebooks/index.html>`_ > `Pooling Problem with Nonlinear and Setup Costs <../notebooks/pooling-problem-with-nonlinear-and-setup-costs.html>`_
99
| |github-pooling-problem-with-nonlinear-and-setup-costs| |colab-pooling-problem-with-nonlinear-and-setup-costs| |deepnote-pooling-problem-with-nonlinear-and-setup-costs| |kaggle-pooling-problem-with-nonlinear-and-setup-costs| |gradient-pooling-problem-with-nonlinear-and-setup-costs| |sagemaker-pooling-problem-with-nonlinear-and-setup-costs|
1010
| Description: pooling problem with extra nonlinear and setup costs, solved by Knitro with MP2NL
11-
| Tags: :ref:`tag-amplpy`, :ref:`tag-pooling`, :ref:`tag-minimum-cost-flow`, :ref:`tag-blending`, :ref:`tag-knitro`, :ref:`tag-mp2nl`, :ref:`tag-nonlinear`, :ref:`tag-setup-costs`, :ref:`tag-semi-continuous`
11+
| Tags: :ref:`tag-pooling`, :ref:`tag-minimum-cost-flow`, :ref:`tag-blending`, :ref:`tag-nonlinear`, :ref:`tag-setup-costs`, :ref:`tag-semi-continuous`, :ref:`tag-amplpy`, :ref:`tag-knitro`, :ref:`tag-mp2nl`
1212
| Author: :ref:`email-gleb_at_ampl.com` <gleb@ampl.com>
1313
1414
.. |github-pooling-problem-with-nonlinear-and-setup-costs| image:: https://img.shields.io/badge/github-%23121011.svg?logo=github

docs/source/tags/knitro.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ Pooling Problem with Nonlinear and Setup Costs
7676
| `Notebooks <../notebooks/index.html>`_ > `Pooling Problem with Nonlinear and Setup Costs <../notebooks/pooling-problem-with-nonlinear-and-setup-costs.html>`_
7777
| |github-pooling-problem-with-nonlinear-and-setup-costs| |colab-pooling-problem-with-nonlinear-and-setup-costs| |deepnote-pooling-problem-with-nonlinear-and-setup-costs| |kaggle-pooling-problem-with-nonlinear-and-setup-costs| |gradient-pooling-problem-with-nonlinear-and-setup-costs| |sagemaker-pooling-problem-with-nonlinear-and-setup-costs|
7878
| Description: pooling problem with extra nonlinear and setup costs, solved by Knitro with MP2NL
79-
| Tags: :ref:`tag-amplpy`, :ref:`tag-pooling`, :ref:`tag-minimum-cost-flow`, :ref:`tag-blending`, :ref:`tag-knitro`, :ref:`tag-mp2nl`, :ref:`tag-nonlinear`, :ref:`tag-setup-costs`, :ref:`tag-semi-continuous`
79+
| Tags: :ref:`tag-pooling`, :ref:`tag-minimum-cost-flow`, :ref:`tag-blending`, :ref:`tag-nonlinear`, :ref:`tag-setup-costs`, :ref:`tag-semi-continuous`, :ref:`tag-amplpy`, :ref:`tag-knitro`, :ref:`tag-mp2nl`
8080
| Author: :ref:`email-gleb_at_ampl.com` <gleb@ampl.com>
8181
8282
.. |github-pooling-problem-with-nonlinear-and-setup-costs| image:: https://img.shields.io/badge/github-%23121011.svg?logo=github

docs/source/tags/minimum-cost-flow.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Pooling Problem with Nonlinear and Setup Costs
88
| `Notebooks <../notebooks/index.html>`_ > `Pooling Problem with Nonlinear and Setup Costs <../notebooks/pooling-problem-with-nonlinear-and-setup-costs.html>`_
99
| |github-pooling-problem-with-nonlinear-and-setup-costs| |colab-pooling-problem-with-nonlinear-and-setup-costs| |deepnote-pooling-problem-with-nonlinear-and-setup-costs| |kaggle-pooling-problem-with-nonlinear-and-setup-costs| |gradient-pooling-problem-with-nonlinear-and-setup-costs| |sagemaker-pooling-problem-with-nonlinear-and-setup-costs|
1010
| Description: pooling problem with extra nonlinear and setup costs, solved by Knitro with MP2NL
11-
| Tags: :ref:`tag-amplpy`, :ref:`tag-pooling`, :ref:`tag-minimum-cost-flow`, :ref:`tag-blending`, :ref:`tag-knitro`, :ref:`tag-mp2nl`, :ref:`tag-nonlinear`, :ref:`tag-setup-costs`, :ref:`tag-semi-continuous`
11+
| Tags: :ref:`tag-pooling`, :ref:`tag-minimum-cost-flow`, :ref:`tag-blending`, :ref:`tag-nonlinear`, :ref:`tag-setup-costs`, :ref:`tag-semi-continuous`, :ref:`tag-amplpy`, :ref:`tag-knitro`, :ref:`tag-mp2nl`
1212
| Author: :ref:`email-gleb_at_ampl.com` <gleb@ampl.com>
1313
1414
.. |github-pooling-problem-with-nonlinear-and-setup-costs| image:: https://img.shields.io/badge/github-%23121011.svg?logo=github

0 commit comments

Comments
 (0)