.. _example_python_two_bar: .. note:: Go to the `bottom of this page`_ to download the ZIP file for the two-bar truss example. Two-bar truss ============= This example shows how to create an HPS project solving a two-bar truss problem with Python. For the original problem description, see R.L. Fox, *Optimization Methods in Engineering Design*, Addison Wesley, 1971. Also see `Optimization Methods for Engineering Design `_. Here is the ``project_setup.py`` script for this example: .. literalinclude:: ../../../examples/python_two_bar_truss_problem/project_setup.py :language: python :lines: 23- :caption: project_setup.py Download the ZIP file for the two-bar truss example and use a tool such as 7-Zip to extract the files. .. _bottom of this page: .. button-link:: ../_downloads/python_two_bar_truss_problem.zip :color: black :expand: Download ZIP file