Skip to content

Commit fee00ec

Browse files
authored
added missing Num in constraints (#31)
* added missing Num in constraints * added plot as png * added information on contributions
1 parent bfebca6 commit fee00ec

File tree

7 files changed

+6
-5
lines changed

7 files changed

+6
-5
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
[![Latest Docs](https://img.shields.io/badge/docs-dev-blue.svg)](https://mathopt.github.io/DynamicOED.jl/dev/)
44
[![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)
55
[![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)
6+
[![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)
67

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

docs/src/examples/1D.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ constraint_equations = [
6969
]
7070
7171
@named constraint_system = ConstraintsSystem(
72-
constraint_equations, collect(optimization_variables), []
72+
constraint_equations, collect(optimization_variables), Num[]
7373
)
7474
nothing # hide
7575
```

docs/src/examples/lotka.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ constraint_equations = [
6565
]
6666
6767
@named constraint_system = ConstraintsSystem(
68-
constraint_equations, collect(optimization_variables), []
68+
constraint_equations, collect(optimization_variables), Num[]
6969
)
7070
nothing # hide
7171
```

docs/src/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ constraint_equations = [
6464
sum(optimization_variables.measurements.w₁) 3,
6565
]
6666

67-
@named constraint_set = ConstraintsSystem(constraint_equations, optimization_variables,[])
67+
@named constraint_set = ConstraintsSystem(constraint_equations, optimization_variables, Num[])
6868

6969
# Initialize the optimization problem
7070
optimization_problem = OptimizationProblem(oed_problem, AutoForwardDiff(),

paper/figures/lotka.pdf

-39.5 KB
Binary file not shown.

paper/figures/lotka.png

344 KB
Loading

paper/paper.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ constraint_equations = [
108108
]
109109

110110
@named constraint_system = ConstraintsSystem(
111-
constraint_equations, optimization_variables, []
111+
constraint_equations, optimization_variables, Num[]
112112
)
113113

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

125125
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$.
126126

127-
![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)
127+
![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)
128128

129129

130130
# Acknowledgements

0 commit comments

Comments
 (0)