Skip to content

[HOLD] Adapt solutions to new initial-guess grids#1073

Draft
mickaelbegon wants to merge 1 commit into
pyomeca:masterfrom
mickaelbegon:codex/pr-solution-grid-warm-start
Draft

[HOLD] Adapt solutions to new initial-guess grids#1073
mickaelbegon wants to merge 1 commit into
pyomeca:masterfrom
mickaelbegon:codex/pr-solution-grid-warm-start

Conversation

@mickaelbegon

@mickaelbegon mickaelbegon commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

What changed

  • add Solution.to_initial_guesses(...)
  • add public adapt_solution_to_initial_guesses(...)
  • resample states, controls and algebraic variables onto target shooting or collocation grids
  • transfer parameters without relying on InitialGuessList.values() or private attributes
  • preserve constant, linear, each-frame and all-points interpolation semantics

Why

Warm starts between windows or solvers need a supported way to adapt solutions when node counts and transcription grids differ.

Validation

  • pytest -q tests/shard4/test_solution_grid_adaptation.py
  • 2 passed

This change is Reviewable

@mickaelbegon mickaelbegon changed the title Adapt solutions to new initial-guess grids [HOLD] Adapt solutions to new initial-guess grids Jul 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant