资源简介
东南大学短学期matlab大作业,基于Simulink的直流配电网大作业,评分98分
代码片段和文件信息
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 vector 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
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 3424951 2018-09-13 08:54 matlab160161&160162_第五题\160161&160162_第五题.pptx
文件 4221784 2018-09-13 09:47 matlab160161&160162_第五题\16016119_石晨_5.docx
文件 4376344 2018-09-13 09:48 matlab160161&160162_第五题\16016129_余任奇_5.docx
文件 4318140 2018-09-13 09:48 matlab160161&160162_第五题\16016202_陈雨菡_5.docx
文件 3348104 2018-09-12 22:26 matlab160161&160162_第五题\16016207-揭宇飞_5.docx
文件 28001 2018-09-12 21:01 matlab160161&160162_第五题\case_5.slx
文件 50034 2018-09-12 17:31 matlab160161&160162_第五题\duanlu.slx
文件 50374 2018-09-12 17:32 matlab160161&160162_第五题\gudaoxiaoying.slx
文件 4745 2010-06-09 10:56 matlab160161&160162_第五题\matpower\@opf_model\add_constraints.m
文件 5694 2010-04-26 15:45 matlab160161&160162_第五题\matpower\@opf_model\add_costs.m
文件 3076 2010-04-26 15:45 matlab160161&160162_第五题\matpower\@opf_model\add_vars.m
文件 4365 2010-04-26 15:45 matlab160161&160162_第五题\matpower\@opf_model\build_cost_params.m
文件 4060 2010-04-26 15:45 matlab160161&160162_第五题\matpower\@opf_model\compute_cost.m
文件 3959 2010-04-26 15:45 matlab160161&160162_第五题\matpower\@opf_model\display.m
文件 1657 2010-04-26 15:45 matlab160161&160162_第五题\matpower\@opf_model\get.m
文件 2405 2010-06-09 10:56 matlab160161&160162_第五题\matpower\@opf_model\getN.m
文件 2221 2010-04-26 15:45 matlab160161&160162_第五题\matpower\@opf_model\getv.m
文件 2737 2010-04-26 15:45 matlab160161&160162_第五题\matpower\@opf_model\get_cost_params.m
文件 3012 2010-06-09 10:56 matlab160161&160162_第五题\matpower\@opf_model\get_idx.m
文件 1771 2010-04-26 15:45 matlab160161&160162_第五题\matpower\@opf_model\get_lin_N.m
文件 1450 2010-04-26 15:45 matlab160161&160162_第五题\matpower\@opf_model\get_mpc.m
文件 1781 2010-06-09 10:56 matlab160161&160162_第五题\matpower\@opf_model\get_nln_N.m
文件 1729 2010-04-26 15:45 matlab160161&160162_第五题\matpower\@opf_model\get_var_N.m
文件 2945 2010-04-26 15:45 matlab160161&160162_第五题\matpower\@opf_model\linear_constraints.m
文件 8294 2010-06-09 10:56 matlab160161&160162_第五题\matpower\@opf_model\opf_model.m
文件 2149 2010-05-04 14:44 matlab160161&160162_第五题\matpower\@opf_model\userdata.m
文件 6175 2010-04-26 15:45 matlab160161&160162_第五题\matpower\add_userfcn.m
文件 2998 2010-04-26 15:45 matlab160161&160162_第五题\matpower\bustypes.m
文件 32633 2010-03-10 13:08 matlab160161&160162_第五题\matpower\case118.m
文件 4521 2010-03-10 13:08 matlab160161&160162_第五题\matpower\case14.m
............此处省略253个文件信息
相关资源
-
MATLAB_Simuli
nk电力系统建模与仿真 于 -
simuli
nk全方位教程 - 数字调制的参考资料,MATLAB的数字调
- simmechanics学习教程——matlab2015a
-
PCA SPE T2 Contribution Simuli
nk matlab -
simuli
nk基础入门教程 -
simuli
nk powersystem -
Simuli
nk+4建模及动态仿真 -
MATLAB Simuli
nk与控制系统仿真 第三版 -
MATLAB_Simuli
nk机电系统建模与仿真_宋 -
matlab7.0simuli
nk6.0的建模仿真开发与高 -
MATLAB_SIMUli
nk与液压控制系统仿真_宋 -
simuli
nk模块介绍 -
BLDCsimuli
nk模型 - MATLAB仿真应用详解-目前发现的Simuli
- PID and Predictive Control of Electrical Drive
-
Simuli
nk教程大全 -
微网运行控制simuli
nk仿真,包含逆变 - Matlab课程设计:对作业文档格式化批
-
微电网运行控制,包含simuli
nk仿真代 - 智能电网微网运行控制仿真文件simu
-
王正林《Matlab Simuli
nk与控制系统仿 -
MATLAB Simuli
nk与控制系统仿真 (第三 -
Simuli
nk建模与仿真 -
Kvaser_USBCAN与simuli
nk实现数据共享所 - MATLAB R2015a crack win 64 破解
-
MATLAB/Simuli
nk系统仿真李献 -
Simuli
nk动态系统建模与仿真李颖 第 -
永磁同步电机文献及配套Simuli
nk.r - MATLAB基于模型设计入门到精通TMS320F
评论
共有 条评论