Skip to content

Commit

Permalink
trajopt mga
Browse files Browse the repository at this point in the history
  • Loading branch information
darioizzo committed Sep 27, 2024
1 parent c6bba2f commit 0c7cdf5
Show file tree
Hide file tree
Showing 7 changed files with 648 additions and 7 deletions.
154 changes: 154 additions & 0 deletions doc/notebooks/udp_mga.ipynb

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions kep3_devel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ dependencies:
- cmake >=3.18
- boost-cpp >=1.73
- fmt
- heyoka = 5*
- heyoka.py = 5*
- heyoka >= 5*
- heyoka.py >= 5*
- spdlog
- xtensor
- xtensor-blas
Expand Down
2 changes: 1 addition & 1 deletion pykep/docstrings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1012,7 +1012,7 @@ std::string planet_elements_docstring()
{
return R"(elements(when = 0., el_type = KEP_F)
The period of the planet in seconds.
The elements of the planet at epoch.
If the UDPLA provides a ``elements(float, pk.el_type)`` method, then ``planet.elements`` will call it.
Otherwise, if the UDPLA provides a ``get_mu_self()`` method ``planet.elements`` will return the elements as computed by the
Expand Down
2 changes: 1 addition & 1 deletion pykep/trajopt/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
set(PYKEP_TRAJOPT_PYTHON_FILES __init__.py _direct_point2point.py _direct_pl2pl.py)
set(PYKEP_TRAJOPT_PYTHON_FILES __init__.py _direct_point2point.py _direct_pl2pl.py _mga.py)
install(FILES ${PYKEP_TRAJOPT_PYTHON_FILES} DESTINATION ${_PYKEP_INSTALL_DIR}/trajopt)
7 changes: 5 additions & 2 deletions pykep/trajopt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
User defined problems (compatible to pagmo) that represent interplanetary optimization problems
"""

# Direct methods
# Direct methods for low-thrust problems
from ._direct_point2point import direct_point2point
from ._direct_pl2pl import direct_pl2pl
from ._direct_pl2pl import direct_pl2pl

# Evolutionary encodings for high energy transfers (chemical propulsion)
from ._mga import mga
Loading

0 comments on commit 0c7cdf5

Please sign in to comment.