Skip to content
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
3 changes: 2 additions & 1 deletion docs/pages.jl
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ pages = [
"systems/JumpSystem.md",
"systems/NonlinearSystem.md",
"systems/OptimizationSystem.md",
"systems/PDESystem.md"],
"systems/PDESystem.md",
"systems/DiscreteSystem.md"],
"comparison.md",
"internals.md"
]
28 changes: 28 additions & 0 deletions docs/src/systems/DiscreteSystem.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# DiscreteSystem

## System Constructors

```@docs
DiscreteSystem
```

## Composition and Accessor Functions

- `get_eqs(sys)` or `equations(sys)`: The equations that define the discrete system.
- `get_unknowns(sys)` or `unknowns(sys)`: The set of unknowns in the discrete system.
- `get_ps(sys)` or `parameters(sys)`: The parameters of the discrete system.
- `get_iv(sys)`: The independent variable of the discrete system
- `discrete_events(sys)`: The set of discrete events in the discrete system.

## Transformations

```@docs; canonical=false
structural_simplify
```

## Problem Constructors

```@docs; canonical=false
DiscreteProblem(sys::DiscreteSystem, u0map, tspan)
DiscreteFunction(sys::DiscreteSystem, args...)
```
13 changes: 13 additions & 0 deletions src/systems/discrete_system/discrete_system.jl
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,19 @@ end
function SciMLBase.DiscreteFunction{false}(sys::DiscreteSystem, args...; kwargs...)
DiscreteFunction{false, SciMLBase.FullSpecialize}(sys, args...; kwargs...)
end

"""
```julia
SciMLBase.DiscreteFunction{iip}(sys::DiscreteSystem,
dvs = unknowns(sys),
ps = parameters(sys);
kwargs...) where {iip}
```

Create an `DiscreteFunction` from the [`DiscreteSystem`](@ref). The arguments `dvs` and `ps`
are used to set the order of the dependent variable and parameter vectors,
respectively.
"""
function SciMLBase.DiscreteFunction{iip, specialize}(
sys::DiscreteSystem,
dvs = unknowns(sys),
Expand Down
Loading