[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7BZPVSFK9PD2CQ5K8NYC3MF":3,"skill-same:01M7BZPVSFK9PD2CQ5K8NYC3MF":55},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M7BZPVSFK9PD2CQ5K8NYC3MF","economic-dispatch",null,"Economic dispatch and reserve co-optimization using consistent units, generator limits, and cost functions.","linyouxue\u002Fskill-repair-benchmark","linyouxue","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F216151464?v=4","01M7BJEVCXKD74KH6FG9CBVSQB","林宥学","01M7BJEVE02NP217V93BKZFC0J",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fevaluation\u002Fresults\u002FSkillGrad\u002Fmain31_local_recovery_four_20261019_v1\u002Ftasks\u002Fenergy-market-pricing\u002Frepaired_skill\u002Feconomic-dispatch\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: economic-dispatch\ndescription: \"Economic dispatch and reserve co-optimization using consistent units, generator limits, and cost functions.\"\n---\n\n# Economic Dispatch\n\nEconomic dispatch minimizes total generation cost while meeting load demand and respecting generator and (optionally) reserve requirements.\n\n## Artifact capture audit (workflow)\n\nBefore finalizing, ensure required deliverables are written to a grader-captured location and are externally visible.\n\n1. Write artifacts to the task workspace (avoid virtualenv\u002Fsystem directories).\n2. Confirm location and presence (`pwd`, `ls -la`).\n3. Print a small preview and checksum to prove the file is real.\n\n```python\nfrom pathlib import Path\nimport hashlib\n\np = Path(\"output.json\")\nassert p.exists() and p.is_file()\nblob = p.read_bytes()\nprint(blob[:200])\nprint(hashlib.sha256(blob).hexdigest())\n```\n\nDecision rule: if the required file is missing from the visible output inventory, rewrite it into the workspace root and re-run the audit.\n\n## Unit consistency (MW vs per-unit)\n\nIf you model `Pg` in per-unit but other quantities (limits, reserves) in MW, explicitly convert and keep each constraint internally consistent.\n\n```python\nimport cvxpy as cp\n\nPg = cp.Variable(n_gen)      # per-unit\nRg = cp.Variable(n_gen)      # MW (example)\n\nPg_MW = Pg * baseMVA\n\nconstraints = [Rg >= 0]\nconstraints += [Pg_MW >= pmin_MW, Pg_MW \u003C= pmax_MW]\n```\n\nDecision rule: if any constraint mixes MW and per-unit on the same side, fix units before solving.\n\n## Reserve co-optimization (priced vs free)\n\nReserve requirements alone do not define a priced reserve market. Before you compute a reserve MCP from duals, determine whether the input provides **reserve offers\u002Fcosts** and whether the task expects priced reserves.\n\n```python\nimport cvxpy as cp\n\n# Rg in MW after unit audit\u002Fconversion.\nRg = cp.Variable(n_gen)\n\nreserve_con = cp.sum(Rg) >= reserve_requirement\nconstraints.append(reserve_con)\n\n# Template: add reserve procurement cost only when you have reserve offers.\nreserve_offer = reserve_offer_dollars_per_MWh  # vector, from input\nreserve_cost = cp.sum(cp.multiply(reserve_offer, Rg))\n\nobjective = cp.Minimize(energy_cost + reserve_cost)\n```\n\nDecision rule:\n- If reserve offer\u002Fcost data exists (or a shortfall penalty defines scarcity cost), include the reserve cost term in the objective and include it in `total_cost_dollars_per_hour`; then a binding reserve constraint should yield a reserve MCP consistent with the marginal awarded reserve offer (or penalty).\n- If no reserve offer\u002Fcost data exists, explicitly treat reserve as free (objective excludes reserve cost) and do not claim a benchmark-matching “market-clearing reserve MCP”; at most, report it as a shadow price under a free-reserve assumption.\n\nRead references\u002Freserve-offers.md when the task expects a nonzero reserve MCP or the reserve offer format is unclear.\nSkip when reserves are not modeled.\n\n## Cost function format\n\nMATPOWER gencost polynomial (model=2) uses coefficients on **MW**.\n\n```python\ncost = 0\nfor i in range(n_gen):\n    Pg_MW_i = Pg_MW[i]\n    ncost = int(gencost[i, 3])\n    coeffs = gencost[i, 4:4+ncost]\n\n    if ncost == 3:\n        c2, c1, c0 = coeffs\n        cost += c2 * cp.square(Pg_MW_i) + c1 * Pg_MW_i + c0\n    elif ncost == 2:\n        c1, c0 = coeffs\n        cost += c1 * Pg_MW_i + c0\n```\n\nRead references\u002Fcost-functions.md when gencost includes piecewise-linear type-1 or variable NCOST.\nSkip when all costs are quadratic with NCOST=3.\n\n## Common pitfalls\n\n- Building reserve constraints without first confirming whether reserve fields are MW vs per-unit (can yield feasible but semantically wrong prices\u002Fdispatch).\n- Mixing MW and per-unit within the same constraint, then “fixing” results by rescaling duals instead of fixing the model units.\n- Adding a reserve requirement constraint but omitting reserve procurement cost (or a defined shortfall penalty) while still attempting to report a market-clearing reserve MCP from duals.","# Economic Dispatch\n\nEconomic dispatch minimizes total generation cost while meeting load demand and respecting generator and (optionally) reserve requirements.\n\n## Artifact capture audit (workflow)\n\nBefore finalizing, ensure required deliverables are written to a grader-captured location and are externally visible.\n\n1. Write artifacts to the task workspace (avoid virtualenv\u002Fsystem directories).\n2. Confirm location and presence (`pwd`, `ls -la`).\n3. Print a small preview and checksum to prove the file is real.\n\n```python\nfrom pathlib import Path\nimport hashlib\n\np = Path(\"output.json\")\nassert p.exists() and p.is_file()\nblob = p.read_bytes()\nprint(blob[:200])\nprint(hashlib.sha256(blob).hexdigest())\n```\n\nDecision rule: if the required file is missing from the visible output inventory, rewrite it into the workspace root and re-run the audit.\n\n## Unit consistency (MW vs per-unit)\n\nIf you model `Pg` in per-unit but other quantities (limits, reserves) in MW, explicitly convert and keep each constraint internally consistent.\n\n```python\nimport cvxpy as cp\n\nPg = cp.Variable(n_gen)      # per-unit\nRg = cp.Variable(n_gen)      # MW (example)\n\nPg_MW = Pg * baseMVA\n\nconstraints = [Rg >= 0]\nconstraints += [Pg_MW >= pmin_MW, Pg_MW \u003C= pmax_MW]\n```\n\nDecision rule: if any constraint mixes MW and per-unit on the same side, fix units before solving.\n\n## Reserve co-optimization (priced vs free)\n\nReserve requirements alone do not define a priced reserve market. Before you compute a reserve MCP from duals, determine whether the input provides **reserve offers\u002Fcosts** and whether the task expects priced reserves.\n\n```python\nimport cvxpy as cp\n\n# Rg in MW after unit audit\u002Fconversion.\nRg = cp.Variable(n_gen)\n\nreserve_con = cp.sum(Rg) >= reserve_requirement\nconstraints.append(reserve_con)\n\n# Template: add reserve procurement cost only when you have reserve offers.\nreserve_offer = reserve_offer_dollars_per_MWh  # vector, from input\nreserve_cost = cp.sum(cp.multiply(reserve_offer, Rg))\n\nobjective = cp.Minimize(energy_cost + reserve_cost)\n```\n\nDecision rule:\n- If reserve offer\u002Fcost data exists (or a shortfall penalty defines scarcity cost), include the reserve cost term in the objective and include it in `total_cost_dollars_per_hour`; then a binding reserve constraint should yield a reserve MCP consistent with the marginal awarded reserve offer (or penalty).\n- If no reserve offer\u002Fcost data exists, explicitly treat reserve as free (objective excludes reserve cost) and do not claim a benchmark-matching “market-clearing reserve MCP”; at most, report it as a shadow price under a free-reserve assumption.\n\nRead references\u002Freserve-offers.md when the task expects a nonzero reserve MCP or the reserve offer format is unclear.\nSkip when reserves are not modeled.\n\n## Cost function format\n\nMATPOWER gencost polynomial (model=2) uses coefficients on **MW**.\n\n```python\ncost = 0\nfor i in range(n_gen):\n    Pg_MW_i = Pg_MW[i]\n    ncost = int(gencost[i, 3])\n    coeffs = gencost[i, 4:4+ncost]\n\n    if ncost == 3:\n        c2, c1, c0 = coeffs\n        cost += c2 * cp.square(Pg_MW_i) + c1 * Pg_MW_i + c0\n    elif ncost == 2:\n        c1, c0 = coeffs\n        cost += c1 * Pg_MW_i + c0\n```\n\nRead references\u002Fcost-functions.md when gencost includes piecewise-linear type-1 or variable NCOST.\nSkip when all costs are quadratic with NCOST=3.\n\n## Common pitfalls\n\n- Building reserve constraints without first confirming whether reserve fields are MW vs per-unit (can yield feasible but semantically wrong prices\u002Fdispatch).\n- Mixing MW and per-unit within the same constraint, then “fixing” results by rescaling duals instead of fixing the model units.\n- Adding a reserve requirement constraint but omitting reserve procurement cost (or a defined shortfall penalty) while still attempting to report a market-clearing reserve MCP from duals.",{"name":5,"description":7},"main","cdcb6d230f3b15c3c33f8a2bdd16439f43602cbe","evaluation\u002Fresults\u002FSkillGrad\u002Fmain31_local_recovery_four_20261019_v1\u002Ftasks\u002Fenergy-market-pricing\u002Frepaired_skill\u002Feconomic-dispatch",1,"https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark","https:\u002F\u002Fgithub.com\u002Flinyouxue","2026-11-14 20:28:35",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add linyouxue\u002Fskill-repair-benchmark --skill economic-dispatch",{"tool":37,"command":38},"bunx","bunx skills add linyouxue\u002Fskill-repair-benchmark --skill economic-dispatch",{"tool":40,"command":41},"pnpm","pnpm dlx skills add linyouxue\u002Fskill-repair-benchmark --skill economic-dispatch","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fevaluation\u002Fresults\u002FSkillGrad\u002Fmain31_local_recovery_four_20261019_v1\u002Ftasks\u002Fenergy-market-pricing\u002Frepaired_skill\u002Feconomic-dispatch\u002FSKILL.md",true,[45,51],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"references\u002Fcost-functions.md","REFERENCE","参考文档",1597,"https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fevaluation\u002Fresults\u002FSkillGrad\u002Fmain31_local_recovery_four_20261019_v1\u002Ftasks\u002Fenergy-market-pricing\u002Frepaired_skill\u002Feconomic-dispatch\u002Freferences\u002Fcost-functions.md",{"path":52,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":53,"sourceHtmlUrl":54},"references\u002Freserve-offers.md",2580,"https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fevaluation\u002Fresults\u002FSkillGrad\u002Fmain31_local_recovery_four_20261019_v1\u002Ftasks\u002Fenergy-market-pricing\u002Frepaired_skill\u002Feconomic-dispatch\u002Freferences\u002Freserve-offers.md",[56,63,70,77,82,87],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":19},"01M7E1HGVRY73NBJ022CJG13X6","video-frame-extraction","Extract frames from video files and save them as images using OpenCV","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_03\u002Finputs\u002Fskills\u002Fvideo-frame-extraction\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M7E1HAG5R7CJ9C8NYJS771MB","openai-vision","Analyze images and multi-frame sequences using OpenAI GPT vision models","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_03\u002Finputs\u002Fskills\u002Fopenai-vision\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M7E1H7DADKB6QBWKC2KQ63SZ","image-ocr","Extract text content from images using Tesseract OCR via Python, including structured field extraction from receipts and forms","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_03\u002Finputs\u002Fskills\u002Fimage-ocr\u002FSKILL.md",[],[],{"skillNo":78,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M7E1H0WBNT43TENGQY7AVZHD","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_02\u002Finputs\u002Fskills\u002Fvideo-frame-extraction\u002FSKILL.md",[],[],{"skillNo":83,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M7E1GTC7D4N4Q2EF03875J9E","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_02\u002Finputs\u002Fskills\u002Fopenai-vision\u002FSKILL.md",[],[],{"skillNo":88,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M7E1GQ92CWFMGH53KSSE4WER","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_02\u002Finputs\u002Fskills\u002Fimage-ocr\u002FSKILL.md",[],[]]