Skip to content

Commit 6c58408

Browse files
committed
re-structuring
1 parent 438300c commit 6c58408

28 files changed

+1061
-821
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ MathOptInterface = "b8f27783-ece8-5eb3-8dc8-9495eed66fee"
88

99
[compat]
1010
julia = "1.6"
11-
MathOptInterface = "1.30"
11+
MathOptInterface = "1.31"
1212

1313
[extras]
1414
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

docs/make.jl

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,24 @@ using DocumenterMermaid
66
DocMeta.setdocmeta!(DynOptInterface, :DocTestSetup, :(import DynOptInterface as DOI); recursive=true)
77

88
const _PAGES = [
9-
"Home" => "index.md",
9+
#"Home" => "index.md",
1010
"API Reference" => [
11-
"reference/phases.md",
12-
"reference/dynamic_variables.md",
13-
"reference/dynamic_functions.md",
11+
"Dynamic Functions" => [
12+
"reference/dynamic_functions/abstraction.md",
13+
"reference/dynamic_functions/phases.md",
14+
"reference/dynamic_functions/dynamic_variables.md",
15+
"reference/dynamic_functions/expressions.md",
16+
"reference/dynamic_functions/derivatives.md",
17+
],
1418
"reference/boundary_functions.md",
15-
"reference/integral_functions.md",
1619
"reference/nonlinear_support.md",
20+
"reference/attributes.md",
21+
"reference/solutions.md",
1722
],
1823
]
1924

2025
links = InterLinks(
21-
"MathOptInterface" => "https://jump.dev/MathOptInterface.jl/v1.30/objects.inv"
26+
"MathOptInterface" => "https://jump.dev/MathOptInterface.jl/v1.31/objects.inv"
2227
)
2328

2429
makedocs(;

docs/src/reference/attributes.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
```@meta
2+
CurrentModule = DynOptInterface
3+
```
4+
5+
# Attributes
6+
7+
# Variable Attributes
8+
9+
The following table defines which `DynOptInterface` objects are compatible with sub-types of
10+
[`MOI.AbstractVariableAttribute`](@extref MathOptInterface.AbstractVariableAttribute)s.
11+
12+
| Attribute | ``t`` | ``t^0`` | ``t^f`` | ``y(\cdot)`` | ``y(t^0)`` | ``y(t^f)`` |
13+
|:-:|:-:|:-:|:-:|:-:|:-:|:-:|
14+
| [`MOI.VariableName`](@extref MathOptInterface.VariableName) |||||||
15+
| [`MOI.VariablePrimal`](@extref MathOptInterface.VariablePrimal) |||||||
16+
| [`MOI.VariablePrimalStart`](@extref MathOptInterface.VariablePrimalStart) |||||||
17+
18+
```@docs
19+
MOI.supports
20+
MOI.set
21+
MOI.get
22+
```

docs/src/reference/boundary_functions.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,33 @@ CurrentModule = DynOptInterface
44

55
# Boundary Functions
66

7+
## Abstraction
8+
79
```@docs
810
AbstractBoundaryFunction
11+
```
12+
13+
## Initial & Final
14+
15+
```@docs
916
Initial
1017
Final
18+
```
19+
20+
## Linkage
21+
22+
```@docs
23+
Linkage
24+
```
25+
26+
## Nonlinear
27+
28+
```@docs
1129
NonlinearBoundaryFunction
30+
```
31+
32+
## Integrals
33+
```@docs
34+
Integral
35+
Bolza
1236
```
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
```@meta
2+
CurrentModule = DynOptInterface
3+
```
4+
5+
# Abstraction
6+
7+
```@docs
8+
AbstractDynamicFunction
9+
phase_index
10+
MixedPhases
11+
```
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
```@meta
2+
CurrentModule = DynOptInterface
3+
```
4+
5+
# Derivatives
6+
7+
```@docs
8+
DynamicVariableDerivative
9+
ExplicitDifferentialFunction
10+
```
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
```@meta
2+
CurrentModule = DynOptInterface
3+
```
4+
5+
# Dynamic Variables
6+
7+
```@docs
8+
DynamicVariableIndex
9+
supports_dynamic_variable
10+
UnsupportedDynamicVariable
11+
add_dynamic_variable
12+
AddDynamicVariableNotAllowed
13+
```

docs/src/reference/dynamic_functions.md renamed to docs/src/reference/dynamic_functions/expressions.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,22 @@
22
CurrentModule = DynOptInterface
33
```
44

5-
# Dynamic Functions
5+
# Expressions
6+
7+
## Linear
68

79
```@docs
810
LinearDynamicTerm
911
LinearDynamicFunction
12+
```
13+
14+
## Squared
15+
```@docs
1016
SquaredDynamicTerm
1117
SquaredDynamicFunction
18+
```
19+
20+
## Nonlinear
21+
```@docs
1222
NonlinearDynamicFunction
13-
ExplicitDifferentialFunction
1423
```
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
```@meta
2+
CurrentModule = DynOptInterface
3+
```
4+
5+
# Phases
6+
7+
```@docs
8+
PhaseIndex
9+
supports_phase
10+
UnsupportedPhase
11+
AddPhaseNotAllowed
12+
add_phase
13+
```

docs/src/reference/dynamic_variables.md

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)