Skip to content

feat: strengthen Octopus Intelligent earlier-charge skew#4237

Draft
springfall2008 wants to merge 1 commit into
mainfrom
feat/iog_charge_skew
Draft

feat: strengthen Octopus Intelligent earlier-charge skew#4237
springfall2008 wants to merge 1 commit into
mainfrom
feat/iog_charge_skew

Conversation

@springfall2008

Copy link
Copy Markdown
Owner

Replace the flat io_adjusted penalty in sort_window_by_price_combined with a signed per-run gradient: the earliest slots of a contiguous IOG (planned-dispatch) run are discounted so they rank below equally-priced firm slots and are filled first, while the latest slots keep the penalty so distant, more-likely-to-vanish IOG slots are not relied upon. Firm slots sit neutrally at the pivot. The discount only applies to imminent slots (within a horizon of now); distant future dispatch periods keep only the penalty side until they draw closer, re-evaluated each cycle.

Adds _io_run_starts and _io_rate_adjustment helpers plus tunable constants, and a new test module covering the helpers, the sort wiring, and the plan-level skew.

Replace the flat io_adjusted penalty in sort_window_by_price_combined with a
signed per-run gradient: the earliest slots of a contiguous IOG (planned-dispatch)
run are discounted so they rank below equally-priced firm slots and are filled
first, while the latest slots keep the penalty so distant, more-likely-to-vanish
IOG slots are not relied upon. Firm slots sit neutrally at the pivot. The discount
only applies to imminent slots (within a horizon of now); distant future dispatch
periods keep only the penalty side until they draw closer, re-evaluated each cycle.

Adds _io_run_starts and _io_rate_adjustment helpers plus tunable constants, and a
new test module covering the helpers, the sort wiring, and the plan-level skew.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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