资源简介

电力系统潮流计算工具,需要安装到matlab中,手册请百度搜索matpower使用手册。

资源截图

代码片段和文件信息

function succ = install_matpower(modify save_it verbose)
%INSTALL_MATPOWER  Assist the user in setting their path.
%   INSTALL_MATPOWER
%   INSTALL_MATPOWER(MODIFY)
%   INSTALL_MATPOWER(MODIFY SAVE_IT)
%   INSTALL_MATPOWER(MODIFY SAVE_IT VERBOSE)
%   SUCCESS = INSTALL_MATPOWER(...)
%
%   Assists the user in setting up the proper MATLAB/Octave path to
%   be able to use MATPOWER and run its tests. With no input arguments
%   it prompts interactively to determine how to handle the paths.
%
%   Inputs (all are optional):
%       MODIFY : select how to set path
%           0 (default) - generate relevant ADDPATH() commands but
%               don‘t execute them
%           1 - modify the path directly executing the relevant
%               ADDPATH() commands
%       SAVE_IT : indicates whether or not to save the results
%           0 or [] (default) - don‘t save any results
%           if MODIFY is 0
%               SAVE_IT =  : the relevant ADDPATH() commands
%                   are saved to a file whose name is provided in SAVE_IT
%               SAVE_IT =  : the relevant ADDPATH() commands
%                   are saved to a file named ‘startup.m‘ in the current
%                   directory
%               otherwise : the commands are displayed but not saved
%           if MODIFY is 1
%               SAVE_IT =  : the path will be modified
%                   and saved with SAVEPATH
%               otherwise : the path will be modified but not saved
%       VERBOSE : prints the relevant ADDPATH commands if true (default)
%               silent otherwise
%
%   Outputs (all are optional):
%       SUCCESS : 1 if all commands succeeded 0 otherwise
%
%   Examples:
%       install_matpower;           %% print the required ADDPATH() commands
%       install_matpower(0 1);     %% save the commands to startup.m
%       install_matpower(1 1);     %% modify my path and save
%       install_matpower(1 0 0);  %% modify my path temporarily and silently
%       install_matpower(0 ‘matpower6‘);   %% save the commands to matpower6.m
%
%   See also ADDPATH SAVEPATH.

%   MATPOWER
%   Copyright (c) 2017 Power Systems Engineering Research Center (PSERC)
%   by Ray Zimmerman PSERC Cornell
%
%   This file is part of MATPOWER.
%   Covered by the 3-clause BSD License (see LICENSE file for details).
%   See http://www.pserc.cornell.edu/matpower/ for more info.

%% installation data for each component
min_ver.Octave = ‘4.0.0‘;
min_ver.MATLAB = ‘7.3.0‘;
install = struct( ...
    ‘name‘ { ...
        ‘matpower‘ ...
        ‘mips‘ ...
        ‘most‘ ...
        ‘mptest‘ ...
        ‘maxloadlim‘ ...
        ‘misc‘ ...
        ‘reduction‘ ...
        ‘sdp_pf‘ ...
        ‘se‘ ...
        ‘smartmarket‘ ...
        ‘state_estimator‘ } ...
    ‘dirs‘ { ...
        {{‘lib‘} {‘lib‘ ‘t‘} {‘data‘}} ...
        {{‘mips‘ ‘lib‘} {‘mips‘ ‘lib‘ ‘t‘}} ...
        {{‘most‘ ‘lib‘} {‘most‘ ‘lib‘ ‘t‘}} ...
    

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-10-31 22:45  matpower7.0b1\
     目录           0  2018-10-31 22:45  matpower7.0b1\most\
     文件        2580  2018-10-31 22:45  matpower7.0b1\most\LICENSE
     文件         123  2018-10-31 22:45  matpower7.0b1\most\AUTHORS
     目录           0  2018-10-31 22:45  matpower7.0b1\most\docs\
     文件     1568421  2018-10-31 22:45  matpower7.0b1\most\docs\MOST-manual.pdf
     目录           0  2018-10-31 22:45  matpower7.0b1\most\docs\relnotes\
     文件        1099  2018-10-31 22:45  matpower7.0b1\most\docs\relnotes\MOST-Release-Notes-1.0.1.md
     目录           0  2018-10-31 22:45  matpower7.0b1\most\docs\src\
     目录           0  2018-10-31 22:45  matpower7.0b1\most\docs\src\MOST-manual\
     文件      211805  2018-10-31 22:45  matpower7.0b1\most\docs\src\MOST-manual\MOST-manual.tex
     目录           0  2018-10-31 22:45  matpower7.0b1\most\docs\src\MOST-manual\figures\
     文件        4367  2018-10-31 22:45  matpower7.0b1\most\docs\src\MOST-manual\figures\wind_profile_1.pdf
     文件      574530  2018-10-31 22:45  matpower7.0b1\most\docs\src\MOST-manual\figures\reserves.pdf
     文件        4892  2018-10-31 22:45  matpower7.0b1\most\docs\src\MOST-manual\figures\wind_profile_2.pdf
     文件        5895  2018-10-31 22:45  matpower7.0b1\most\docs\src\MOST-manual\figures\load_wind_profiles.pdf
     文件        7424  2018-10-31 22:45  matpower7.0b1\most\docs\src\MOST-manual\figures\suc-ex-4.pdf
     文件        7949  2018-10-31 22:45  matpower7.0b1\most\docs\src\MOST-manual\figures\suc-ex-5.pdf
     文件      367612  2018-10-31 22:45  matpower7.0b1\most\docs\src\MOST-manual\figures\storage-18.pdf
     文件        6856  2018-10-31 22:45  matpower7.0b1\most\docs\src\MOST-manual\figures\suc-ex-2.pdf
     文件        7143  2018-10-31 22:45  matpower7.0b1\most\docs\src\MOST-manual\figures\suc-ex-3.pdf
     文件      111733  2018-10-31 22:45  matpower7.0b1\most\docs\src\MOST-manual\figures\structure.pdf
     文件       16424  2018-10-31 22:45  matpower7.0b1\most\docs\src\MOST-manual\figures\3-bus-ex.pdf
     文件        6867  2018-10-31 22:45  matpower7.0b1\most\docs\src\MOST-manual\figures\uc-ex-6.pdf
     文件        6165  2018-10-31 22:45  matpower7.0b1\most\docs\src\MOST-manual\figures\uc-ex-4.pdf
     文件       73468  2018-10-31 22:45  matpower7.0b1\most\docs\src\MOST-manual\figures\loadmd.pdf
     文件        6374  2018-10-31 22:45  matpower7.0b1\most\docs\src\MOST-manual\figures\uc-ex-5.pdf
     文件        5022  2018-10-31 22:45  matpower7.0b1\most\docs\src\MOST-manual\figures\uc-ex-1.pdf
     文件        5584  2018-10-31 22:45  matpower7.0b1\most\docs\src\MOST-manual\figures\uc-ex-2.pdf
     文件        5894  2018-10-31 22:45  matpower7.0b1\most\docs\src\MOST-manual\figures\uc-ex-3.pdf
     文件       93821  2018-10-31 22:45  matpower7.0b1\most\docs\src\MOST-manual\figures\structure-multi-period-17.pdf
............此处省略887个文件信息

评论

共有 条评论