Skip to content

Commit

Permalink
added missing Num in constraints (#31)
Browse files Browse the repository at this point in the history
* added missing Num in constraints

* added plot as png

* added information on contributions
  • Loading branch information
chplate authored May 21, 2024
1 parent bfebca6 commit fee00ec
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
[![Latest Docs](https://img.shields.io/badge/docs-dev-blue.svg)](https://mathopt.github.io/DynamicOED.jl/dev/)
[![Aqua QA](https://raw.githubusercontent.com/JuliaTesting/Aqua.jl/master/badge.svg)](https://github.com/JuliaTesting/Aqua.jl) [![SciML Code Style](https://img.shields.io/static/v1?label=code%20style&message=SciML&color=9558b2&labelColor=389826)](https://github.com/SciML/SciMLStyle) ![Lifecycle:Experimental](https://img.shields.io/badge/Lifecycle-Experimental-339999)
[![Build Status](https://github.com/mathopt/DynamicOED.jl/actions/workflows/CI.yml/badge.svg?branch=main)](https://github.com/mathopt/DynamicOED.jl/actions/workflows/CI.yml?query=branch%3Amain)
[![ColPrac: Contributor's Guide on Collaborative Practices for Community Packages](https://img.shields.io/badge/ColPrac-Contributor's%20Guide-blueviolet)](https://github.com/SciML/ColPrac)

Repository for optimal experimental design for differential equations using optimal control.

Expand Down
2 changes: 1 addition & 1 deletion docs/src/examples/1D.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ constraint_equations = [
]
@named constraint_system = ConstraintsSystem(
constraint_equations, collect(optimization_variables), []
constraint_equations, collect(optimization_variables), Num[]
)
nothing # hide
```
Expand Down
2 changes: 1 addition & 1 deletion docs/src/examples/lotka.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ constraint_equations = [
]
@named constraint_system = ConstraintsSystem(
constraint_equations, collect(optimization_variables), []
constraint_equations, collect(optimization_variables), Num[]
)
nothing # hide
```
Expand Down
2 changes: 1 addition & 1 deletion docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ constraint_equations = [
sum(optimization_variables.measurements.w₁) 3,
]

@named constraint_set = ConstraintsSystem(constraint_equations, optimization_variables,[])
@named constraint_set = ConstraintsSystem(constraint_equations, optimization_variables, Num[])

# Initialize the optimization problem
optimization_problem = OptimizationProblem(oed_problem, AutoForwardDiff(),
Expand Down
Binary file removed paper/figures/lotka.pdf
Binary file not shown.
Binary file added paper/figures/lotka.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions paper/paper.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ constraint_equations = [
]

@named constraint_system = ConstraintsSystem(
constraint_equations, optimization_variables, []
constraint_equations, optimization_variables, Num[]
)

optimization_problem = OptimizationProblem(
Expand All @@ -124,7 +124,7 @@ optimal_design = solve(optimization_problem, Ipopt.Optimizer();

Several extensions are planned for the future. First, a multiple shooting approach is planned. Also, other steps to increase the efficiency of our implementation may be considered. For example, in the case of fixed initial values and controls, the integration of $x$ and $G$ need to be done only once and can be decoupled from the numerical integration of $F$ and the subsequent optimization over $w$.

![Differential states, sensitivities of the states with respect to the parameters and the optimal sampling design for Lotka-Volterra system. \label{fig:lotka}](figures/lotka.pdf)
![Differential states, sensitivities of the states with respect to the parameters and the optimal sampling design for Lotka-Volterra system. \label{fig:lotka}](figures/lotka.png)


# Acknowledgements
Expand Down

0 comments on commit fee00ec

Please sign in to comment.