资源简介
安装过程详见博客。该程序主要用来进行电力系统潮流计算,我在这里分享给有需要的同学,我们一起学习,一起进步
代码片段和文件信息
function mpc = add_userfcn(mpc stage fcn args allow_multiple)
%ADD_USERFCN Appends a userfcn to the list to be called for a case.
%
% MPC = ADD_USERFCN(MPC STAGE FCN)
% MPC = ADD_USERFCN(MPC STAGE FCN ARGS)
% MPC = ADD_USERFCN(MPC STAGE FCN ARGS ALLOW_MULTIPLE)
%
% A userfcn is a callback function that can be called automatically by
% MATPOWER at one of various stages in a simulation.
%
% MPC : the case struct
% STAGE : the name of the stage at which this function should be
% called: ext2int formulation int2ext printpf
% FCN : the name of the userfcn
% ARGS : (optional) the value to be passed as an argument to the
% userfcn (typically a struct)
% ALLOW_MULTIPLE : (optional) if TRUE allows the same function to
% be added more than once.
%
% Currently there are 5 different callback stages defined. Each stage has
% a name and by convention the name of a user-defined callback function
% ends with the name of the stage. The following is a description of each
% stage when it is called and the input and output arguments which vary
% depending on the stage. The reserves example (see RUNOPF_W_RES) is used
% to illustrate how these callback userfcns might be used.
%
% 1. ext2int
%
% Called from EXT2INT immediately after the case is converted from
% external to internal indexing. Inputs are a MATPOWER case struct (MPC)
% freshly converted to internal indexing and any (optional) ARGS value
% supplied via ADD_USERFCN. Output is the (presumably updated) MPC. This is
% typically used to reorder any input arguments that may be needed in
% internal ordering by the formulation stage.
%
% E.g. mpc = userfcn_reserves_ext2int(mpc args)
%
% 2. formulation
%
% Called from OPF after the OPF Model (OM) object has been initialized
% with the standard OPF formulation but before calling the solver. Inputs
% are the OM object and any (optional) ARGS supplied via ADD_USERFCN.
% Output is the OM object. This is the ideal place to add any additional
% vars constraints or costs to the OPF formulation.
%
% E.g. om = userfcn_reserves_formulation(om args)
%
% 3. int2ext
%
% Called from INT2EXT immediately before the resulting case is converted
% from internal back to external indexing. Inputs are the RESULTS struct
% and any (optional) ARGS supplied via ADD_USERFCN. Output is the RESULTS
% struct. This is typically used to convert any results to external
% indexing and populate any corresponding fields in the RESULTS struct.
%
% E.g. results = userfcn_reserves_int2ext(results args)
%
% 4. printpf
%
% Called from PRINTPF after the pretty-printing of the standard OPF
% output. Inputs are the RESULTS struct the file descriptor to write to
% a MATPOWER options struct and any (optional) ARGS supplied via
% ADD_USERFCN. Output is the RESULTS struct. This is typically used for
% any additional pretty-printing of results.
%
% E.g. result
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2017-10-12 15:51 matpower5.0b1\
目录 0 2017-10-12 15:51 matpower5.0b1\@opf_model\
文件 1723 2016-09-05 11:18 matpower5.0b1\@opf_model\display.m
文件 1446 2016-09-05 11:18 matpower5.0b1\@opf_model\get_mpc.m
文件 3223 2016-09-05 11:18 matpower5.0b1\@opf_model\opf_model.m
目录 0 2017-10-12 15:51 matpower5.0b1\@opt_model\
文件 8574 2016-09-05 11:18 matpower5.0b1\@opt_model\add_constraints.m
文件 9870 2016-09-05 11:18 matpower5.0b1\@opt_model\add_costs.m
文件 6008 2016-09-05 11:18 matpower5.0b1\@opt_model\add_vars.m
文件 7229 2016-09-05 11:18 matpower5.0b1\@opt_model\build_cost_params.m
文件 4162 2016-09-05 11:18 matpower5.0b1\@opt_model\compute_cost.m
文件 3051 2016-09-05 11:18 matpower5.0b1\@opt_model\describe_idx.m
文件 6189 2016-09-05 11:18 matpower5.0b1\@opt_model\display.m
文件 1653 2016-09-05 11:18 matpower5.0b1\@opt_model\get.m
文件 2634 2016-09-05 11:18 matpower5.0b1\@opt_model\getN.m
文件 2882 2016-09-05 11:18 matpower5.0b1\@opt_model\getv.m
文件 3216 2016-09-05 11:18 matpower5.0b1\@opt_model\get_cost_params.m
文件 3180 2016-09-05 11:18 matpower5.0b1\@opt_model\get_idx.m
文件 4507 2016-09-05 11:18 matpower5.0b1\@opt_model\linear_constraints.m
文件 8712 2016-09-05 11:18 matpower5.0b1\@opt_model\opt_model.m
文件 2145 2016-09-05 11:18 matpower5.0b1\@opt_model\userdata.m
文件 6171 2016-09-05 11:18 matpower5.0b1\add_userfcn.m
文件 2403 2016-10-13 20:04 matpower5.0b1\branches.m
文件 2993 2016-09-05 11:18 matpower5.0b1\bustypes.m
文件 32628 2016-09-05 11:18 matpower5.0b1\case118.m
文件 4516 2016-09-05 11:18 matpower5.0b1\case14.m
文件 340790 2016-09-05 11:18 matpower5.0b1\case2383wp.m
文件 8704 2016-09-05 11:18 matpower5.0b1\case24_ieee_rts.m
文件 717632 2016-09-05 11:18 matpower5.0b1\case2736sp.m
文件 715216 2016-09-05 11:18 matpower5.0b1\case2737sop.m
文件 732894 2016-09-05 11:18 matpower5.0b1\case2746wop.m
............此处省略315个文件信息
- 上一篇:GP全面规范
- 下一篇:sim7600原理图pcb.zip
相关资源
- 带佳点集理论的灰狼算法GWO,求解带
- 汽车四自由度模型(横摆、车身侧倾
- 汽车三自由度模型(横摆、车身侧倾
- ERT电阻层析成像
- 计算两幅图像的相关性
- 压缩感知 莱斯大学的一些代码
- 在线字典学习代码
- 阵列信号处理的理论与应用 第2版
- 基于互信息图像配准
- 基于级联H桥的多电平逆变器的研究
- 基于电网无功优化分区的研究
- moire条纹图像处理
- Optilux光通信仿真资源包
- 模式识别工具箱stprtool最新版
- 模式识别stprtool工具箱
- 时域和频域多种信道估计
- 偶极子,天线阵列等天线模型仿真
- edf文件读取
- 智能优化算法蚁群算法、狼群算法、
- PLS—偏最小二乘工具箱工具箱
- 室内IMU+PDR资料
- pure control.zip
- 数值分析第二版 Numerical Analysis 2nd T
- 数字图像处理大作业.zip
- 模型预测控制学习实用教材
- 火力发电厂含有SVG无功补偿装置的并
- MPPT控制的可运行程序合辑
- psychtoolbox教程
- tucker分解工具包
- 电力仿真软件 psat 说明书
评论
共有 条评论