-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added phase attributes, MultiPhaseIntegral, and changed Derivative
- Loading branch information
Showing
16 changed files
with
222 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
name = "DynOptInterface" | ||
uuid = "6c38235a-427b-4736-80fa-cf75909744ec" | ||
authors = ["Eduardo M. G. Vila <[email protected]> and contributors"] | ||
version = "0.1.0" | ||
version = "0.2.0" | ||
|
||
[deps] | ||
MathOptInterface = "b8f27783-ece8-5eb3-8dc8-9495eed66fee" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
```@meta | ||
CurrentModule = DynOptInterface | ||
``` | ||
|
||
# Dynamic Optimization | ||
|
||
## Phases and Dynamic Variables | ||
|
||
Phases represent intervals $t \in [t_0, t_f]$ on which dynamic variables $t \mapsto \boldsymbol y(t)$ are defined. | ||
|
||
![dynamic variable](assets/dynamic_variable.png) | ||
|
||
## Problem Formulation | ||
|
||
MOI's [Function-in-Set form problem](@extref Standard-form-problem) is extended as follows. | ||
Dynamic Optimization Problems deal with finding variables $x \in \mathbb R^{n_x}$, phase boundaries $t_0^{(i)} \in \mathbb R$, $t_f^{(i)} \in \mathbb R$, and dynamic variables $\boldsymbol y^{(i)} : [t_0^{(i)}, t_f^{(i)}] \rightarrow \mathbb R^{n_y^{(i)}}$ that | ||
|
||
```math | ||
\begin{align*} | ||
\begin{array}{rl} | ||
\text{minimize} \quad & | ||
m \big( \boldsymbol y(t_0), \boldsymbol y(t_f), t_0, t_f, x \big) + | ||
\displaystyle{\sum_{i=1}^{n_p} \bigg[ | ||
\int_{t_0^{(i)}}^{t_f^{(i)}} \ell^{(i)} \big( \boldsymbol y^{(i)}(t), t, x \big) \textrm{d}t \bigg],}\\ | ||
% | ||
\text{subject to} \quad & | ||
\begin{aligned} | ||
f(x) & \in \mathcal S,\\ | ||
% | ||
d^{(i)}\big(\dot{\boldsymbol y}^{(i)}(t), \boldsymbol y^{(i)}(t), t, x) & \in \mathcal D^{(i)}, | ||
\quad \forall t \in [t_0^{(i)}, t_f^{(i)}], | ||
\quad \forall i \in \{1, 2, ..., n_p\},\\ | ||
b(\boldsymbol y(t_0), \boldsymbol y(t_f), t_0, t_f, x) &\in \mathcal B, | ||
\end{aligned} | ||
\end{array} | ||
\end{align*} | ||
``` | ||
|
||
where: | ||
* ``f`` are [`MOI.AbstractScalarFunction`](@extref MathOptInterface.AbstractScalarFunction)s | ||
* ``\ell`` and ``d`` are [`AbstractDynamicFunction`](@ref)s | ||
* ``m`` and ``b`` are [`AbstractBoundaryFunction`](@ref)s | ||
|
||
|
||
## Dynamic Functions | ||
|
||
* [`PhaseIndex`](@ref) | ||
* [`DynamicVariableIndex`](@ref) | ||
* [`LinearDynamicFunction`](@ref) | ||
* [`PureQuadraticDynamicFunction`](@ref) | ||
* [`NonlinearDynamicFunction`](@ref) | ||
* [`Derivative`](@ref) | ||
* [`ExplicitDifferentialFunction`](@ref) | ||
|
||
## Boundary Functions | ||
|
||
* [`Initial`](@ref) | ||
* [`Final`](@ref) | ||
* [`Linkage`](@ref) | ||
* [`NonlinearBoundaryFunction`](@ref) | ||
* [`Integral`](@ref) | ||
* [`MultiPhaseIntegral`](@ref) | ||
* [`Bolza`](@ref) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,5 +32,6 @@ NonlinearBoundaryFunction | |
## Integrals | ||
```@docs | ||
Integral | ||
MultiPhaseIntegral | ||
Bolza | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
ddd4b31
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JuliaRegistrator register
ddd4b31
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Registration pull request created: JuliaRegistries/General/114256
Tip: Release Notes
Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.
To add them here just re-invoke and the PR will be updated.
Tagging
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via: