⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fg_names.m

📁 关于电力系统的计算程序!最新的改进法计算潮流程序!用matlab实现的! 适用于电力行业的相关从业人员!
💻 M
字号:
function [fun, grad] = fg_names(alg)
%OTFUNGRA Returns names of functions which evaluate objective, constraints & grad.
%   [fun, grad] = fg_names(alg) returns the names of two functions. The first
%   evaluates the objective function and constraints for the opf algorithm
%   specified by alg, the numerical ID of the opf algorithm. The second
%   evaluates the gradient of the first. These are in the form expected by
%   'constr' in the Opt Toolbox.

%   MATPOWER Version 2.0
%   by Ray Zimmerman, PSERC Cornell    12/23/97
%   Copyright (c) 1997 by Power System Engineering Research Center (PSERC)
%   See http://www.pserc.cornell.edu/ for more info.

if opf_form(alg) == 1		%% standard
	fun		= 'fun_std';
	grad	= 'grad_std';
else	%% 2				%% CCV
	fun		= 'fun_ccv';
	grad	= 'grad_ccv';
end

return;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -