Skip to content

Fix biological warm start for cell ax bx#911

Open
acsevillam wants to merge 1 commit into
e0404:devfrom
acsevillam:pr/biological-warm-start-cell-axbx
Open

Fix biological warm start for cell ax bx#911
acsevillam wants to merge 1 commit into
e0404:devfrom
acsevillam:pr/biological-warm-start-cell-axbx

Conversation

@acsevillam
Copy link
Copy Markdown

Bug description

Biological optimization warm-start handling does not consistently support dij.ax and dij.bx stored as cell arrays per CT scenario.

This can affect initialization paths where wInit is provided directly, because ixDose and gamma were computed assuming non-cell biological parameter arrays. The same biological metadata preparation was also partly duplicated across matRad_fluenceOptimization.

Approach

This PR adds matRad_prepareBiologicalOptimizationDij to centralize biological dij preparation before initial fluence weights are estimated.

The helper:

  • normalizes dij.ax and dij.bx to one cell entry per CT scenario
  • reconstructs missing ax/bx values from cst
  • validates biological parameters against cst
  • computes dij.ixDose
  • computes dij.gamma for variable RBE projection

matRad_fluenceOptimization now calls this helper once after selecting the back-projection model, so provided wInit and internally estimated warm starts use the same prepared biological metadata.

No new user-facing parameters, external dependencies are introduced.

Validation

  • matRad_runTests('test/optimization/test_biologicalOptimizationDij.m')
  • matRad_runTests('test/optimization')
  • MISS_HIT style/lint on the changed files

@read-the-docs-community
Copy link
Copy Markdown

Documentation build overview

📚 matRad | 🛠️ Build #32762873 | 📁 Comparing 141ffb3 against latest (c014dc8)

  🔍 Preview build  

36 files changed · + 1 added · ± 35 modified

+ Added

± Modified

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