Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tanuki update, require heyoka 5 #34

Merged
merged 10 commits into from
Jun 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ if(${fmt_VERSION_MAJOR} LESS 10)
endif()

# heyoka.
find_package(heyoka 3.0.0 REQUIRED CONFIG)
find_package(heyoka 5.0.0 REQUIRED CONFIG)
target_link_libraries(kep3 PUBLIC heyoka::heyoka)

# spdlog.
Expand Down
1 change: 1 addition & 0 deletions doc/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ pykep API is designed to maximize its usability. Let us know what you think abou
plot
propagation
udpla
trajopt
4 changes: 3 additions & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@

nb_execution_mode = "force"

nb_execution_excludepatterns = []
nb_execution_excludepatterns = [
"udp_point2point*",
]

latex_engine = "xelatex"

Expand Down
3 changes: 2 additions & 1 deletion doc/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,6 @@ bibliography
:maxdepth: 2
:caption: Tutorials
tutorials
tut_basic
tut_trajopt
```
8 changes: 4 additions & 4 deletions doc/notebooks/interface_to_spice.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"/home/dario/miniconda3/envs/kep3_devel/lib/python3.11/site-packages/pykep/data/de440s.bsp\n"
"/Users/dario.izzo/miniconda3/envs/kep3_devel/lib/python3.12/site-packages/pykep/data/de440s.bsp\n"
]
}
],
Expand Down Expand Up @@ -126,7 +126,7 @@
"output_type": "stream",
"text": [
"Position (m): [722180808588.1804, 157535374702.5074, -16810696007.16372]\n",
"Velocity (m/s): [-2933.2858571285688, 13378.581606366935, 10.115066760074676]\n"
"Velocity (m/s): [-2933.2858571285688, 13378.581606366935, 10.115066760074638]\n"
]
}
],
Expand Down Expand Up @@ -223,7 +223,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Position (m): [156005590351.0843, 743270596831.1477, -6573233296.777874]\n",
"Position (m): [156005590351.0843, 743270596831.1477, -6573233296.777884]\n",
"Velocity (m/s): [-12935.993235030832, 3306.5234815642566, 275.73217606979927]\n"
]
}
Expand Down Expand Up @@ -322,7 +322,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.6"
"version": "3.12.3"
}
},
"nbformat": 4,
Expand Down
564 changes: 564 additions & 0 deletions doc/notebooks/udp_pl2pl.ipynb

Large diffs are not rendered by default.

307 changes: 307 additions & 0 deletions doc/notebooks/udp_point2point.ipynb

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions doc/refs.bib
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,14 @@ @article{equinoctialelems
pages={409--419},
year={1985},
publisher={Springer}
}

@article{pagmo,
title={A parallel global multiobjective framework for optimization: pagmo},
author={Biscani, Francesco and Izzo, Dario},
journal={Journal of Open Source Software},
volume={5},
number={53},
pages={2338},
year={2020}
}
22 changes: 22 additions & 0 deletions doc/trajopt.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
.. _trajopt:

Trajectory Optimization
=======================

In `pykep` both direct and indirect optimization techniques are provided
to perform spacecraft trajectory optimization. Most direct techniques provided are
based on the "Sims" transcription :cite:p:`sims`, while indirect techniques are based on some
version of Pontryagin Maximum Principle.

Most of the classes in this Trajectory Optimization module are provided as
optimization problems (NLP) compatible to the pagmo software suite.

.. currentmodule:: pykep.trajopt

Direct
------
.. autoclass:: direct_point2point
:members: pretty, plot



4 changes: 1 addition & 3 deletions doc/tutorials.rst → doc/tut_basic.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.. _tutorials:
.. _tut_basic:

.. only:: html

Expand Down Expand Up @@ -36,5 +36,3 @@ astrodynamical notation and computations.
notebooks/sims_flanagan_leg
notebooks/plotting



32 changes: 32 additions & 0 deletions doc/tut_trajopt.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
.. _tut_trajopt:

.. only:: html

.. important::

.. raw:: html

<p>
Most of these tutorials can be launched as online interactive notebooks
thanks to the infrastructure provided by <a href="https://mybinder.org/">binder</a>.
Look for the rocket icon <i class="fas fa-rocket"></i> on top of each page!
</p>

.. important::

Some tutorials may use features not available yet in the latest stable release
of pykep, and thus might fail to execute correctly in the online interactive
notebooks.

-------------------------------

Trajectory Optimization
========================

.. toctree::
:maxdepth: 1

notebooks/udp_point2point



Loading
Loading