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

WIP - docs #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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 src/finiteTimeHorizonOptimalConrolProblem.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## Packages
using OptimalControl
using NLPModelsIpopt
using Plots

### Initial conditions
Expand Down
1 change: 1 addition & 0 deletions src/rank_test.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# batch.jl
using OptimalControl
using NLPModelsIpopt

const kᵣ = 1.1
const kₘ = 1.2
Expand Down
3 changes: 2 additions & 1 deletion src/resOptimal.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using OptimalControl
using NLPModelsIpopt

t0 = 0 # initial time
tf = 300 # final time
Expand Down Expand Up @@ -61,4 +62,4 @@ direct_sol2 = solve(ocp, grid_size=1000)

plt1 = plot(direct_sol1, size=(600, 600))
plt2 = plot(direct_sol2, size=(600, 600))
plot(plt1, plt2, layout=(1, 2))
plot(plt1, plt2, layout=(1, 2))
Loading