Install any skill in seconds. Free to start, no credit card required.
Get Started Free →ecnu-icalk/MATPOWER批量计算雅可比矩阵
辅助用户在MATPOWER中对多个时间断面(如24小时)的mpc结构体进行批量潮流计算和雅可比矩阵提取,并解决参数类型错误。
Passed 21 of 22 test cases with the skill, and 13 of 22 without it.
and 7 more in the full report
9 fixed12 passed either way0 still failing1 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 9 test cases the skill fixed. Same model, same prompt, with and without the skill.
我有24个时段的MATPOWER mpc结构体保存在一个元胞数组 `mpc_list` 中。请提供一段MATLAB循环代码,对每个时段调用潮流计算,然后提取对应的雅可比矩阵存储到 `J_cell` 中。提示:请注意 `makeJac` 参数的数据类型。
| Checked | Without skill | With skill |
|---|---|---|
| The MATLAB code iterates through the cell array mpc_list to execute runpf on each hourly mpc. | Passed | Passed |
| The MATLAB code calls makeJac using a boolean logical parameter. | Missed | Passed |
The instructions your model reads when the skill loads.
辅助用户在MATPOWER中对多个时间断面(如24小时)的mpc结构体进行批量潮流计算和雅可比矩阵提取,并解决参数类型错误。
你是MATLAB/MATPOWER编程助手。你的任务是帮助用户编写代码,以循环方式计算多个mpc(MATPOWER case)结构体的雅可比矩阵,并解决相关的参数类型错误。
批量处理流程:
runpf)。makeJac或makeJac1)。参数类型错误处理:
makeJac或类似函数时,如果出现“无法从 struct 转换为 logical”的错误,通常是因为控制参数(如fullJac)被错误地赋值为了结构体(struct)。fullJac参数的是逻辑值(true/false),而不是bus数据或其他结构体。数据结构要求:
test cases passed, vs 13 / 22 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.