:orphan:

JuMPy tutorials
===============

Every tutorial in this gallery is an ordinary Python program. The documentation
build executes each file and captures its output. You can also run a tutorial
directly with Python.

Assertions and other validation code enclosed by Sphinx-Gallery's ignore
markers execute normally but are omitted from the rendered tutorial.


.. raw:: html

  <div id='sg-tag-list' class='sphx-glr-tag-list'></div>


.. raw:: html

    <div class="sphx-glr-thumbnails">

.. thumbnail-parent-div-open

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This tutorial demonstrates how to formulate and solve a binary integer linear program with JuMPy. Given a collection of items and a capacity, we choose the items with the greatest combined profit whose combined weight fits within the capacity.">

.. only:: html

  .. image:: /generated/tutorials/images/thumb/sphx_glr_knapsack_thumb.png
    :alt:

  :doc:`/generated/tutorials/knapsack`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">The knapsack problem</div>
    </div>


.. thumbnail-parent-div-close

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /generated/tutorials/knapsack


.. only:: html

  .. container:: sphx-glr-footer sphx-glr-footer-gallery

    .. container:: sphx-glr-download sphx-glr-download-python

      :download:`Download all examples in Python source code: tutorials_python.zip </generated/tutorials/tutorials_python.zip>`

    .. container:: sphx-glr-download sphx-glr-download-jupyter

      :download:`Download all examples in Jupyter notebooks: tutorials_jupyter.zip </generated/tutorials/tutorials_jupyter.zip>`


.. only:: html

 .. rst-class:: sphx-glr-signature

    `Gallery generated by Sphinx-Gallery <https://sphinx-gallery.github.io>`_
