Skip to content

Commit a575616

Browse files
Add nonlinear equation system solver
- Add solver for determined and underdetermined nonlinear equation systems - Add tests - Add documentation - Add package dependencies
1 parent c702461 commit a575616

File tree

7 files changed

+1756
-7
lines changed

7 files changed

+1756
-7
lines changed

Project.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,12 @@ version = "0.11.0"
66
[deps]
77
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
88
DiffRules = "b552c78f-8df3-52c6-915a-8e097449b14b"
9+
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
10+
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
911
Measurements = "eff96d63-e80a-5855-80a2-b1b0885c5ab7"
1012
MonteCarloMeasurements = "0987c9cc-fe09-11e8-30f0-b96dd679fdca"
1113
OrderedCollections = "bac558e1-5e72-5ebc-8fee-abe8a469f55d"
14+
Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"
1215
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
1316
Unitful = "1986cc42-f94f-5a68-af5c-568840ba703d"
1417

docs/make.jl

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@ makedocs(
66
authors = "Hilding Elmqvist (Mogram) and Martin Otter (DLR-SR)",
77
format = Documenter.HTML(prettyurls = false),
88
pages = [
9-
"Home" => "index.md",
10-
"Tutorial" => "Tutorial.md",
11-
"Data Structures" => "DataStructures.md",
12-
"Equation Sorting" => "EquationSorting.md",
13-
"Equation Reduction" => "EquationReduction.md",
9+
"Home" => "index.md",
10+
"Tutorial" => "Tutorial.md",
11+
"Data Structures" => "DataStructures.md",
12+
"Equation Sorting" => "EquationSorting.md",
13+
"Equation Reduction" => "EquationReduction.md",
1414
"Transformation to ODE System" => "TransformationToODEs.md",
15+
"Nonlinear Equations" => "NonlinearEquations.md",
1516
]
1617
)

docs/src/NonlinearEquations.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Nonlinear Equations
2+
3+
This section provides functions to **solve nonlinear equations systems**.
4+
5+
6+
## Main Functions
7+
8+
```@meta
9+
CurrentModule = ModiaBase.NonlinearEquations
10+
```
11+
12+
```@docs
13+
solveNonlinearEquations!
14+
```

src/ModiaBase.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
22
Main module of ModiaBase.
33
4-
* Developers: Hilding Elmqvist, Mogram AB, Martin Otter, DLR
4+
* Developers: Hilding Elmqvist, Mogram AB, Martin Otter, DLR
55
* First version: December 2020
66
* License: MIT (expat)
77
@@ -36,4 +36,7 @@ using .Simplify
3636
include("Symbolic.jl")
3737
using .Symbolic
3838

39+
include("NonlinearEquations.jl")
40+
using .NonlinearEquations
41+
3942
end

0 commit comments

Comments
 (0)