control-toolbox / control-toolbox/CTBenchmarks.jl

New instance of Space Shuttle ( Task #4)

Open
#22 8 comments 1 reaction 0 assignees View on GitHub
Dominant language
Julia
Stars
14
Forks
4
PR merge metrics
No merged PRs in 30d

Description

@frapac
As discussed, I added the model of space shuttle inspired from [Constructive Methods for Initialization and Handling Mixed State-Input Constraints in Optimal Control](https://cas.mines-paristech.fr/~petit/papers/jgnc08/main.pdf).
I created the 2 model files : with `JuMP` [space_Shuttle_JMP_V2](https://github.com/0Yassine0/COTS.jl/blob/main/Problems/JuMP/space_Shuttle_JMP_V2.jl) and `OptimalControl` [space_Shuttle_OC_V2](https://github.com/0Yassine0/COTS.jl/blob/main/Problems/OptimalControl/space_Shuttle_OC_V2.jl) and a notebook [testSpaceShuttleV2](https://github.com/0Yassine0/COTS.jl/blob/main/TestProblems/testSpaceShuttleV2.ipynb).
With `OptimalControl`, I don't have a valid results yet. I can't run it on the notebook.
The execution is done in a separate terminal with
```julia
using OptimalControl
using NLPModelsIpopt
include("./Problems/OptimalControl/space_Shuttle_OC_V2.jl")
SpaceSV2OC = space_Shuttle_OC_V2();
import HSL_jll
nh = 502
init = space_Shuttle_init(;nh=nh)
sol = OptimalControl.solve(SpaceSV2OC, grid_size=nh, init =init,
tol=1e-8, constr_viol_tol=1e-6, max_iter=1000,
linear_solver="ma57",hsllib=HSL_jll.libhsl_path, print_timing_statistics="yes")
```

![image](https://github.com/user-attachments/assets/d79e99e1-7a46-4e8e-ab6d-a36c456cad6d)
![image](https://github.com/user-attachments/assets/f5b98244-b5de-41e6-8367-b9dcdffd8aba)

Contributor guide

Open the contributing guide

Research direction

Start with Problems/JuMP/space_Shuttle_JMP_V2.jl, Problems/OptimalControl/space_Shuttle_OC_V2.jl, and TestProblems/testSpaceShuttleV2.ipynb. Run the Julia OptimalControl command shown in the issue and compare it with the JuMP model. Done means the OptimalControl model produces valid results and the notebook runs successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia, jupyter-notebook
Domain
testing-qa
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.