Skip to content

Commit e979acd

Browse files
ThummeToTobias Thummerer
andauthored
support for FMIBase 1.2 (#27)
* support for FMIBase 1.2 * minor adaptions * fdtype fix, renaming * fixing snapshot system * reenabled sampling * fixing snapshots * updated compat * fixed dx / y order * fixing snaphsots * julia ver inc * ver inc * test CI * updated readme --------- Co-authored-by: Tobias Thummerer <[email protected]>
1 parent 37b5b81 commit e979acd

File tree

8 files changed

+531
-198
lines changed

8 files changed

+531
-198
lines changed

.github/workflows/TestLTS.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Test v1.10 (LTS)
1+
name: Test 'lts'
22

33
on:
44
workflow_dispatch:

.github/workflows/TestLatest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Test v1 (latest)
1+
name: Test '1'
22

33
on:
44
workflow_dispatch:

Project.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
name = "FMISensitivity"
22
uuid = "3e748fe5-cd7f-4615-8419-3159287187d2"
33
authors = ["TT <[email protected]>", "LM <[email protected]>"]
4-
version = "0.2.4"
4+
version = "0.3.0"
55

66
[deps]
77
FMIBase = "900ee838-d029-460e-b485-d98a826ceef2"
88
ForwardDiffChainRules = "c9556dd2-1aed-4cfe-8560-1557cf593001"
99
SciMLSensitivity = "1ed8b502-d754-442c-8d5d-10ac956f44a1"
1010

1111
[compat]
12-
FMIBase = "1.0.0"
13-
ForwardDiffChainRules = "0.2.0"
14-
SciMLSensitivity = "7.0" # 7.67
15-
julia = "1.6"
12+
FMIBase = "1.2.0"
13+
ForwardDiffChainRules = "0.2, 0.3"
14+
SciMLSensitivity = "7.0"
15+
julia = "1.10"

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
## What is FMISensitivity.jl?
1010
Unfortunately, FMUs ([fmi-standard.org](http://fmi-standard.org/)) are not differentiable by design.
11-
To enable their full potential inside Julia, [*FMISensitivity.jl*](https://github.com/ThummeTo/FMISensitivity.jl) makes FMUs fully differentiable, regarding to:
11+
To enable their full potential inside Julia, [*FMISensitivity.jl*](https://github.com/ThummeTo/FMISensitivity.jl) makes FMUs fully differentiable, regarding:
1212
- states and derivatives
1313
- inputs, outputs and other observable variables
1414
- parameters
@@ -17,7 +17,7 @@ To enable their full potential inside Julia, [*FMISensitivity.jl*](https://githu
1717
- state change sensitivity by event $\partial x^{+} / \partial x^{-}$ (if paired with *FMIFlux.jl*)
1818

1919
This opens up to many applications like:
20-
- FMUs in Scientific Machine Learning, for example as part of Neural(O)DEs or PINNs with [*FMIFlux.jl*](https://github.com/ThummeTo/FMIFlux.jl)
20+
- FMUs in Scientific Machine Learning, for example as part of Neural (O)DEs or PINNs with [*FMIFlux.jl*](https://github.com/ThummeTo/FMIFlux.jl)
2121
- gradient-based optimization of FMUs (typically parameters) with [*FMI.jl*](https://github.com/ThummeTo/FMIFlux.jl) (also *dynamic* optimization)
2222
- linearization, linear analysis and controller design
2323
- adding directional derivatives for existing FMUs with the power of Julia AD and [*FMIExport.jl*](https://github.com/ThummeTo/FMIExport.jl) [Tutorial is WIP]
@@ -34,7 +34,7 @@ Here, *FMISensitivity.jl* uses everything the FMI-standard and Julia currently o
3434
- Finite Differences (by *FiniteDiff.jl*) for FMUs that don't offer sensitivity information, as well as for special derivatives that are not part of the FMI-standard (like e.g. event-indicators or explicit time)
3535
- coloring based on sparsity information shipped with the FMU [WIP]
3636
- coloring based on sparsity detection for FMUs without sparsity information [WIP]
37-
- implicite differentation
37+
- implicit differentiation
3838
- ...
3939

4040
## How can I use FMISensitivity.jl?
@@ -63,12 +63,12 @@ To keep dependencies nice and clean, the original package [*FMI.jl*](https://git
6363
- [*FMIBase.jl*](https://github.com/ThummeTo/FMIBase.jl): Common concepts for import and export of FMUs
6464
- [*FMICore.jl*](https://github.com/ThummeTo/FMICore.jl): C-code wrapper for the FMI-standard
6565
- [*FMISensitivity.jl*](https://github.com/ThummeTo/FMISensitivity.jl): Static and dynamic sensitivities over FMUs
66-
- [*FMIBuild.jl*](https://github.com/ThummeTo/FMIBuild.jl): Compiler/Compilation dependencies for FMIExport.jl
66+
- [*FMIBuild.jl*](https://github.com/ThummeTo/FMIBuild.jl): Compiler/Compilation dependencies for *FMIExport.jl*
6767
- [*FMIFlux.jl*](https://github.com/ThummeTo/FMIFlux.jl): Machine Learning with FMUs
6868
- [*FMIZoo.jl*](https://github.com/ThummeTo/FMIZoo.jl): A collection of testing and example FMUs
6969

7070
## What Platforms are supported?
71-
[FMISensitivity.jl](https://github.com/ThummeTo/FMISensitivity.jl) is tested (and testing) under Julia Versions *1.6 LTS* and *latest* on Windows *latest* and Ubuntu *latest*. `x64` architectures are tested. Mac and x86-architectures might work, but are not tested.
71+
[FMISensitivity.jl](https://github.com/ThummeTo/FMISensitivity.jl) is tested (and testing) under Julia Versions *1.10 LTS* and *latest* on Windows *latest* and Ubuntu *latest*. `x64` architectures are tested. Mac and x86-architectures might work, but are not tested.
7272

7373
## How to cite?
7474
Coming soon ...

src/FMISensitivity.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ using ForwardDiffChainRules: @ForwardDiff_frule
2020
using SciMLSensitivity.ReverseDiff: @grad_from_chainrules
2121

2222
using SciMLSensitivity.LinearAlgebra
23-
import SciMLSensitivity.SparseDiffTools
2423

2524
using FMIBase
2625
using FMIBase.FMICore

0 commit comments

Comments
 (0)