Skip to content

Commit

Permalink
re-structuring
Browse files Browse the repository at this point in the history
  • Loading branch information
e-duar-do committed Jul 16, 2024
1 parent 438300c commit 6c58408
Show file tree
Hide file tree
Showing 28 changed files with 1,061 additions and 821 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ MathOptInterface = "b8f27783-ece8-5eb3-8dc8-9495eed66fee"

[compat]
julia = "1.6"
MathOptInterface = "1.30"
MathOptInterface = "1.31"

[extras]
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
Expand Down
17 changes: 11 additions & 6 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,24 @@ using DocumenterMermaid
DocMeta.setdocmeta!(DynOptInterface, :DocTestSetup, :(import DynOptInterface as DOI); recursive=true)

const _PAGES = [
"Home" => "index.md",
#"Home" => "index.md",
"API Reference" => [
"reference/phases.md",
"reference/dynamic_variables.md",
"reference/dynamic_functions.md",
"Dynamic Functions" => [
"reference/dynamic_functions/abstraction.md",
"reference/dynamic_functions/phases.md",
"reference/dynamic_functions/dynamic_variables.md",
"reference/dynamic_functions/expressions.md",
"reference/dynamic_functions/derivatives.md",
],
"reference/boundary_functions.md",
"reference/integral_functions.md",
"reference/nonlinear_support.md",
"reference/attributes.md",
"reference/solutions.md",
],
]

links = InterLinks(
"MathOptInterface" => "https://jump.dev/MathOptInterface.jl/v1.30/objects.inv"
"MathOptInterface" => "https://jump.dev/MathOptInterface.jl/v1.31/objects.inv"
)

makedocs(;
Expand Down
22 changes: 22 additions & 0 deletions docs/src/reference/attributes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
```@meta
CurrentModule = DynOptInterface
```

# Attributes

# Variable Attributes

The following table defines which `DynOptInterface` objects are compatible with sub-types of
[`MOI.AbstractVariableAttribute`](@extref MathOptInterface.AbstractVariableAttribute)s.

| Attribute | ``t`` | ``t^0`` | ``t^f`` | ``y(\cdot)`` | ``y(t^0)`` | ``y(t^f)`` |
|:-:|:-:|:-:|:-:|:-:|:-:|:-:|
| [`MOI.VariableName`](@extref MathOptInterface.VariableName) |||||||
| [`MOI.VariablePrimal`](@extref MathOptInterface.VariablePrimal) |||||||
| [`MOI.VariablePrimalStart`](@extref MathOptInterface.VariablePrimalStart) |||||||

```@docs
MOI.supports
MOI.set
MOI.get
```
24 changes: 24 additions & 0 deletions docs/src/reference/boundary_functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,33 @@ CurrentModule = DynOptInterface

# Boundary Functions

## Abstraction

```@docs
AbstractBoundaryFunction
```

## Initial & Final

```@docs
Initial
Final
```

## Linkage

```@docs
Linkage
```

## Nonlinear

```@docs
NonlinearBoundaryFunction
```

## Integrals
```@docs
Integral
Bolza
```
11 changes: 11 additions & 0 deletions docs/src/reference/dynamic_functions/abstraction.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
```@meta
CurrentModule = DynOptInterface
```

# Abstraction

```@docs
AbstractDynamicFunction
phase_index
MixedPhases
```
10 changes: 10 additions & 0 deletions docs/src/reference/dynamic_functions/derivatives.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
```@meta
CurrentModule = DynOptInterface
```

# Derivatives

```@docs
DynamicVariableDerivative
ExplicitDifferentialFunction
```
13 changes: 13 additions & 0 deletions docs/src/reference/dynamic_functions/dynamic_variables.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
```@meta
CurrentModule = DynOptInterface
```

# Dynamic Variables

```@docs
DynamicVariableIndex
supports_dynamic_variable
UnsupportedDynamicVariable
add_dynamic_variable
AddDynamicVariableNotAllowed
```
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,22 @@
CurrentModule = DynOptInterface
```

# Dynamic Functions
# Expressions

## Linear

```@docs
LinearDynamicTerm
LinearDynamicFunction
```

## Squared
```@docs
SquaredDynamicTerm
SquaredDynamicFunction
```

## Nonlinear
```@docs
NonlinearDynamicFunction
ExplicitDifferentialFunction
```
13 changes: 13 additions & 0 deletions docs/src/reference/dynamic_functions/phases.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
```@meta
CurrentModule = DynOptInterface
```

# Phases

```@docs
PhaseIndex
supports_phase
UnsupportedPhase
AddPhaseNotAllowed
add_phase
```
38 changes: 0 additions & 38 deletions docs/src/reference/dynamic_variables.md

This file was deleted.

10 changes: 0 additions & 10 deletions docs/src/reference/integral_functions.md

This file was deleted.

10 changes: 2 additions & 8 deletions docs/src/reference/nonlinear_support.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,9 @@ CurrentModule = DynOptInterface

# Nonlinear Support

## Errors
```@docs
UnsupportedObjectiveArgument
UnsupportedConstraintArgument
```

## Functions

```@docs
supports_objective_argument
UnsupportedObjectiveArgument
supports_constraint_argument
UnsupportedConstraintArgument
```
40 changes: 0 additions & 40 deletions docs/src/reference/phases.md

This file was deleted.

10 changes: 10 additions & 0 deletions docs/src/reference/solutions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
```@meta
CurrentModule = DynOptInterface
```

# Solutions

```@docs
AbstractDynamicSolution
AbstractDynamicSolution(::Real)
```
16 changes: 11 additions & 5 deletions src/DynOptInterface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,18 @@ module DynOptInterface

import MathOptInterface as MOI

include("phases.jl")
include("dynamic_variables.jl")
include("nonlinear_support.jl")
include("dynamic_functions.jl")
include("dynamic_functions/abstraction.jl")
include("dynamic_functions/phases.jl")
include("dynamic_functions/dynamic_variables.jl")
include("dynamic_functions/expressions.jl")
include("dynamic_functions/derivatives.jl")

include("boundary_functions.jl")
include("integral_functions.jl")

include("nonlinear_support.jl")

include("attributes.jl")

include("solutions.jl")

end
Loading

0 comments on commit 6c58408

Please sign in to comment.