Skip to content

Add control function and improve serialization#90

Merged
1-Bart-1 merged 9 commits intomainfrom
control_function
Aug 9, 2025
Merged

Add control function and improve serialization#90
1-Bart-1 merged 9 commits intomainfrom
control_function

Conversation

@1-Bart-1
Copy link
Member

@1-Bart-1 1-Bart-1 commented Aug 9, 2025

closes #87, closes #88 and closes #86

  • Add kwargs create_prob::Bool=true, create_lin_prob::Bool=true, create_control_func::Bool=false to init!
  • Only deserialize if sam.full_sys is nothing
  • Only create the prob, lin_prob or control functions if they don't exist yet in the deserialized model and the corresponding kwarg is true
  • Only serialize the model if prob, lin_prob or control functions were added

@codecov-commenter
Copy link

Codecov Report

❌ Patch coverage is 83.24607% with 32 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/symbolic_awe_model.jl 82.68% 31 Missing ⚠️
src/simulate.jl 0.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@1-Bart-1 1-Bart-1 merged commit fef80b8 into main Aug 9, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants