unit-commitment-operating-rules
БесплатноБез исполняемых скриптовНе проверенUse for day-ahead or multi-period unit commitment problems, including thermal on/off schedules, dispatch, startup/shutdown logic, minimum up/down time…
от benchflow-ai★ 1 941 звезда на GitHubОб этом скилле
Unit Commitment Operating Rules
Use this skill when a task asks for a day-ahead or multi-period unit commitment schedule with generators, load, reserves, operating constraints, and cost tradeoffs.
This is a reusable UC operating guide. It gives formulation and validation patterns, not a complete task-specific mathematical model.
UC In One Paragraph
Unit commitment decides which generators are online over time, when they start or stop, how much they produce, and how much reserve they can physically provide. It is harder than hourly economic dispatch because startup/shutdown decisions, ramping, minimum up/down time, reserve deliverability, initial conditions, and cost curves couple one period to the next.
Keep These Concepts Separate
For each thermal unit g and period t:
u[g, t] # commitment/on status, binary
start[g, t] # startup transition, binary
stop[g, t] # shutdown transition, binary
p[g, t] # production variable: know whether actual MW or above-minimum MW
r[g, t] # scheduled reserve
Reports often require actual MW output. Many UC models internally use output above minimum:
actual_output = pmin[g] * u[g, t] + p_above_min[g, t]
p_above_min = actual_output - pmin[g] * u[g, t]
Do not mix these conventions in ramping, reserve, cost, or reporting.
Core Feasibility Checks
Before reporting a schedule, independently verify:
- every resource appears exactly once and all time-series have length
T; - commitment, startup, and shutdown are binary;
- offline thermal units have zero production and zero reserve;
- online thermal units respect min/max output;
- must-run units are online when required;
- startup/shutdown indicators match commitment transitions;
- demand balance holds in every period;
- renewable output stays within period-specific bounds;
- scheduled reserve meets the system requirement;
- reserve is deliverable under headroom, startup/shutdown capability, and ramp limits;
- minimum up/down time and initial conditions are respected;
- cost and summary fields are recomputed from arrays.
Transition Logic
Link startup/shutdown to commitment and the initial state:
prev_u = initial_on[g] if t == 0 else u[g, t - 1]
u[g, t] - prev_u == start[g, t] - stop[g, t]
start[g, t] + stop[g, t] <= 1
Equivalent validation pattern:
prev_on = initial_on[g]
for t in range(T):
assert start[g, t] == int(u[g, t] == 1 and prev_on == 0)
assert stop[g, t] == int(u[g, t] == 0 and prev_on == 1)
prev_on = u[g, t]
Capacity And Offline Zeroes
For actual-MW production:
pmin[g] * u[g, t] <= production[g, t] <= pmax[g] * u[g, t]
0 <= reserve[g, t]
For above-minimum production:
cap = pmax[g] - pmin[g]
0 <= p_above_min[g, t] <= cap * u[g, t]
0 <= reserve[g, t]
If u[g, t] == 0, both production and reserve must be zero.
Demand, Renewables, And System Reserve
Use the task's system/zone/network convention. For a single-zone system:
thermal_gen = sum(actual_thermal[g, t] for g in thermal_units)
renew_gen = sum(renewable_output[r, t] for r in renewable_units)
assert abs(thermal_gen + renew_gen - demand[t]) <= tol
assert sum(reserve[g, t] for g in thermal_units) >= reserve_requirement[t] - tol
Renewables:
renewable_min[r, t] <= renewable_output[r, t] <= renewable_max[r, t]
If min equals max, output is fixed. If curtailment is allowed, output may be below max. Do not count renewable headroom as spinning reserve unless the prompt explicitly allows it.
Reserve Deliverability
Reserve is not just unused nameplate capacity. Production and reserve compete for the same physical capability, and reserve must be deployable.
Headroom-only checks are too weak:
# Not enough by itself:
reserve[g, t] <= pmax[g] - production[g, t]
reserve[g, t] <= ramp_up[g]
Use joint production-plus-reserve checks. With actual-MW production:
production[g, t] + reserve[g, t] <= pmax[g] * u[g, t]
With above-minimum production:
p_above_min[g, t] + reserve[g, t] <= (pmax[g] - pmin[g]) * u[g, t]
Startup capability can tighten the startup period. If startup_limit is maximum total output during startup:
if start[g, t] == 1:
production[g, t] + reserve[g, t] <= startup_limit[g]
A linear above-minimum pattern is:
startup_reduction = max(pmax[g] - startup_limit[g], 0.0)
p_above_min[g, t] + reserve[g, t] <= (
(pmax[g] - pmin[g]) * u[g, t]
- startup_reduction * start[g, t]
)
Apply analogous shutdown-period or pre-shutdown capability rules when the data and prompt require them.
Ramping
Use initial output/status for the first period. When reserve must be deliverable, ramp-up usually applies to production plus reserve:
previous = initial_above_min[g] if t == 0 else p_above_min[g, t - 1]
p_above_min[g, t] + reserve[g, t] - previous <= ramp_up[g]
previous - p_above_min[g, t] <= ramp_down
Установить unit-commitment-operating-rules в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл unit-commitment-operating-rules?
Use for day-ahead or multi-period unit commitment problems, including thermal on/off schedules, dispatch, startup/shutdown logic, minimum up/down time, ramping, spinning reserve deliverability, renewable curtailment, operating-cost accounting, and independent feasibility checks for power-system operations schedules.
Как установить скилл unit-commitment-operating-rules?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл unit-commitment-operating-rules запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic