Skip to content

Commit

Permalink
Merge pull request #21 from SciML/interface
Browse files Browse the repository at this point in the history
Added support for ODEs with control inputs $f(x, u, p, t)$. Doing so required some restructuring of how $f$ is called/how to specify that, so there are some breaking changes here. Additionally, when dynamics are represented with an `ODESystem`, the training domain is now specified with a `Dict` mapping states to domains, rather than `lb` and `ub` (so that users don't need to consider the order of arguments in the constructed dynamics function).
  • Loading branch information
nicholaskl97 authored Mar 26, 2024
2 parents 2130100 + b5f9226 commit 4b72b50
Show file tree
Hide file tree
Showing 14 changed files with 795 additions and 186 deletions.
3 changes: 2 additions & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ SciMLBase = "2"
julia = "1.10"

[extras]
DifferentialEquations = "0c46a032-eb83-5123-abaf-570d42b7fbaa"
Lux = "b2108857-7c20-44ae-9111-449ecde12c47"
NLopt = "76087f3c-5699-56af-9a33-bf431cd00edd"
NeuralPDE = "315f7962-48a3-4962-8226-d0f33b1235f0"
Expand All @@ -35,4 +36,4 @@ SafeTestsets = "1bc83da4-3b8d-516f-aca4-4fe02f6d838f"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["SafeTestsets", "Test", "Lux", "Optimization", "OptimizationOptimJL", "OptimizationOptimisers", "NLopt", "Random", "NeuralPDE"]
test = ["SafeTestsets", "Test", "Lux", "Optimization", "OptimizationOptimJL", "OptimizationOptimisers", "NLopt", "Random", "NeuralPDE", "DifferentialEquations"]
4 changes: 3 additions & 1 deletion src/NeuralLyapunov.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,15 @@ include("decrease_conditions.jl")
include("decrease_conditions_RoA_aware.jl")
include("NeuralLyapunovPDESystem.jl")
include("local_Lyapunov.jl")
include("policy_search.jl")

export NeuralLyapunovPDESystem, NumericalNeuralLyapunovFunctions
export local_Lyapunov
export NeuralLyapunovSpecification, NeuralLyapunovStructure, UnstructuredNeuralLyapunov,
NonnegativeNeuralLyapunov, PositiveSemiDefiniteStructure,
LyapunovMinimizationCondition, StrictlyPositiveDefinite, PositiveSemiDefinite,
DontCheckNonnegativity, LyapunovDecreaseCondition, AsymptoticDecrease,
ExponentialDecrease, DontCheckDecrease, RoAAwareDecreaseCondition, make_RoA_aware
ExponentialDecrease, DontCheckDecrease, RoAAwareDecreaseCondition, make_RoA_aware,
add_policy_search, get_policy

end
Loading

0 comments on commit 4b72b50

Please sign in to comment.