eDymos Setup

Dymos solves optimal control problems. It is an open-source Python package and it was created by the National Aeronautics and Space Administration (NASA).

The following instructions provides Ubuntu and Windows instructions. The instructions enumerated with “a.” are for Ubuntu and “b.” are for Windows. The Windows instruction in the Windows Setup section should be completed before completing these following setup instructions.

  1. Install OpenMDAO.

    1. On Ubuntu, OpenMDAO can be installed with pip

      pip install openmdao[all]
      
    2. Whereas on Windows, OpenMDAO can be installed with pacman

      pacman -S mingw-w64-x86_64-python-openmdao
      
  2. Install Dymos. For both Ubuntu and Windows, Dymos can be installed with pip

    pip install git+https://github.com/OpenMDAO/dymos.git
    
  3. Since Dymos is a Python package and ETOL is a C++ library, eDymos uses Pybind11 to seamlessly integrate Python and C++ code.

    1. On Ubuntu, Pybind11 is installed with pip

      pip install pybind11
      
    2. Whereas on Windows, pacman is used to install Pybind11

      pacman -S mingw-w64-x86_64-pybind11
      
  4. Install pyOptSparse by following the instructions in the pyOptSparse documentation. These instructions also explain how to use pyOptSparse with proprietary optimizers such as SNOPT.