Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added missing Num in constraints #31

Merged
merged 3 commits into from
May 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading