资源简介
matpower最新版安装包(2016.9)
代码片段和文件信息
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 2016-05-31 18:36 matpower6.0b1\
目录 0 2016-05-31 18:35 matpower6.0b1\@opf_model\
文件 712 2016-05-31 18:35 matpower6.0b1\@opf_model\display.m
文件 435 2016-05-31 18:35 matpower6.0b1\@opf_model\get_mpc.m
文件 2227 2016-05-31 18:35 matpower6.0b1\@opf_model\opf_model.m
目录 0 2016-05-31 18:35 matpower6.0b1\@opt_model\
文件 8043 2016-05-31 18:35 matpower6.0b1\@opt_model\add_constraints.m
文件 9359 2016-05-31 18:35 matpower6.0b1\@opt_model\add_costs.m
文件 5952 2016-05-31 18:35 matpower6.0b1\@opt_model\add_vars.m
文件 6994 2016-05-31 18:35 matpower6.0b1\@opt_model\build_cost_params.m
文件 3146 2016-05-31 18:35 matpower6.0b1\@opt_model\compute_cost.m
文件 2294 2016-05-31 18:35 matpower6.0b1\@opt_model\describe_idx.m
文件 5178 2016-05-31 18:35 matpower6.0b1\@opt_model\display.m
文件 646 2016-05-31 18:35 matpower6.0b1\@opt_model\get.m
文件 2197 2016-05-31 18:35 matpower6.0b1\@opt_model\get_cost_params.m
文件 2169 2016-05-31 18:35 matpower6.0b1\@opt_model\get_idx.m
文件 1626 2016-05-31 18:35 matpower6.0b1\@opt_model\getN.m
文件 4466 2016-05-31 18:35 matpower6.0b1\@opt_model\getv.m
文件 4192 2016-05-31 18:35 matpower6.0b1\@opt_model\linear_constraints.m
文件 7902 2016-05-31 18:35 matpower6.0b1\@opt_model\opt_model.m
文件 1133 2016-05-31 18:35 matpower6.0b1\@opt_model\userdata.m
文件 5192 2016-05-31 18:35 matpower6.0b1\add_userfcn.m
文件 17386 2016-05-31 18:35 matpower6.0b1\apply_changes.m
文件 297 2016-05-31 18:36 matpower6.0b1\AUTHORS
文件 1981 2016-05-31 18:35 matpower6.0b1\bustypes.m
文件 33539 2016-05-31 18:35 matpower6.0b1\case118.m
文件 214629 2016-05-31 18:35 matpower6.0b1\case1354pegase.m
文件 2258871 2016-05-31 18:35 matpower6.0b1\case13659pegase.m
文件 4611 2016-05-31 18:35 matpower6.0b1\case14.m
文件 60070 2016-05-31 18:35 matpower6.0b1\case145.m
文件 290087 2016-05-31 18:35 matpower6.0b1\case1888rte.m
............此处省略477个文件信息
相关资源
- 简单二阶互联系统的非线性动力学分
- 手写数字识别-模板匹配法
- Stock_Watson_动态因子分析模型
- 果蝇优化算法优化支持向量回归程序
- 自己做的一个简单GUI扑克纸牌识别-
- multi output SVR
- AR过程的线性建模过程与各种功率谱估
- PCNN TOOLBOX
- plstoolbox.zip
- 中国国家基础地理信息系统GIS数据
- 粒子群微电网优化调度
- 矩阵分析-经典教材-中文版-Roger.A.Ho
- 压缩感知TwIST
- 基于最小错误率的贝叶斯手写数字分
- 最全系统辨识源代码,包括多种最小
- 导弹制导实验
- 画跟踪精确度图的程序.zip
- 重力场大地水准面及重力异常阶次误
- prtools5.2.3工具包
- 脉冲耦合神经网络工具箱PCNN-toolbox
- SVM算法-回归拟合程序.zip
- 电力系统潮流计算(高斯-赛德尔法)
- Kriging代理模型EGO算法.zip
- Matalb实现停车场完整系统
- 总体经验模态分解
- 在一张图上画多个跟踪框.zip
- 大量的有限元法求解偏微分方程的程
- 电力系统稳态潮流计算程序PQ和NR法
- 夜间车牌识别
- emd分解成多个imf分量,通过判断以后
评论
共有 条评论