Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
processes
LabProcesses.jl
Commits
2c4ca44c
Commit
2c4ca44c
authored
Aug 23, 2017
by
Fredrik Bagge Carlson
Browse files
Add docs for nonlinear simulator
parent
526736d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
2c4ca44c
...
...
@@ -106,7 +106,7 @@ end
```
hence, it just performs one iteration of
```
math
x' = Ax + Bu
x' = Ax + Bu
\\
y = Cx + Du
```
...
...
@@ -134,3 +134,13 @@ the system state by calling `init_sysfilter`. The variable `beam_system` is alre
defined outside the type specification.
One of the constructors provides a default value for the sample time, in case
the user is unsure about a reasonable value.
## Non-linear process
Your first option is to linearize the process and proceed like above.
Other options include
1.
Make
`control`
perform forward Euler, i.e.,
`x' = f(x,u)*h`
for a general
system model
``x' = f(x,u); y = g(x,u)``
and sample time
``h``
.
2.
Integrate the system model using some fancy method like Runge-Kutta. See
[
DifferentialEquations.jl
](
http://docs.juliadiffeq.org/stable/types/discrete_types.html
)
for discrete-time solving of ODEs (don't be discuraged, this is almost as simple as
forward Euler above).
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment