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

📄 fm_cpffig.m

📁 一个较好的MATLAB潮流程序
💻 M
📖 第 1 页 / 共 2 页
字号:
% Pushbuttonsh1 = uicontrol('Parent',h0, ...               'Units', nr, ...               'BackgroundColor',c3, ...               'Callback','fm_cpf(''main'');', ...               'FontWeight','bold', ...               'ForegroundColor',Theme.color09, ...               'Position',[0.608  0.33  0.16  0.0882], ...               'String','Run CPF', ...               'Tag','Pushbutton1');h1 = uicontrol('Parent',h0, ...               'Units', nr, ...               'BackgroundColor',c2, ...               'Callback','close(gcf)', ...               'Position',[0.794  0.33  0.16  0.0882], ...               'String','Close', ...               'Tag','Pushbutton2');% Check Buttonsh1 = uicontrol('Parent',h0, ...               'Units', nr, ...               'BackgroundColor',c2, ...               'Callback', 'CPF.sbus = get(gcbo,''Value'');', ...               'HorizontalAlignment','left',  ...               'Position',[0.075 0.80 0.18 0.06], ...               'Style','checkbox', ...               'String', 'Single Slack Bus', ...               'Tag','EditText1', ...               'Value',CPF.sbus);h1 = uicontrol('Parent',h0, ...               'Units', nr, ...               'BackgroundColor',c2, ...               'Callback', 'CPF.vlim = get(gcbo,''Value'');', ...               'HorizontalAlignment','left',  ...               'Position',[0.075 0.70 0.18 0.06], ...               'Style','checkbox', ...               'String', 'V limit control', ...               'Tag','EditText2', ...               'Value',CPF.vlim);h1 = uicontrol('Parent',h0, ...               'Units', nr, ...               'BackgroundColor',c2, ...               'Callback','CPF.qlim = get(gcbo,''Value'');', ...               'HorizontalAlignment','left', ...               'Position',[0.075 0.60 0.18 0.06], ...               'Style','checkbox', ...               'String', 'Qg limit control', ...               'Tag','EditText3', ...               'Value',CPF.qlim);h1 = uicontrol('Parent',h0, ...               'Units', nr, ...               'BackgroundColor',c2, ...               'Callback','fm_cpffig ilim', ...               'HorizontalAlignment','left', ...               'Position',[0.075 0.50 0.18 0.06], ...               'Style','checkbox', ...               'String', 'Flow limit control', ...               'Tag','EditDeltat', ...               'Value',CPF.ilim);h1 = uicontrol('Parent',h0, ...               'Units', nr, ...               'BackgroundColor',c4, ...               'Callback','CPF.linit = fval(gcbo,CPF.linit);', ...               'FontName',f1, ...               'ForegroundColor',c5, ...               'HorizontalAlignment','left', ...               'Position',[0.075 0.33 0.18 0.05], ...               'Style','edit', ...               'String', num2str(CPF.linit), ...               'Tag','EditSigma');h1 = uicontrol('Parent',h0, ...               'Units', nr, ...               'BackgroundColor',c2, ...               'HorizontalAlignment','left', ...               'Position',[0.075 0.38 0.18 0.05], ...               'String','Initial Loading Param.', ...               'Style','text', ...               'Tag','StaticSigma');% Parameters for the continuation power flow routineh1 = uicontrol('Parent',h0, ...               'Units', nr, ...               'BackgroundColor',c4, ...               'Callback','CPF.nump = fval(gcbo,CPF.nump);', ...               'FontName',f1, ...               'ForegroundColor',c5, ...               'HorizontalAlignment','left', ...               'Position',[0.31 0.33 0.22 0.05], ...               'Style','edit', ...               'String', num2str(CPF.nump), ...               'Tag','EditSigma');h1 = uicontrol('Parent',h0, ...               'Units', nr, ...               'BackgroundColor',c2, ...               'HorizontalAlignment','left', ...               'Position',[0.31 0.38 0.22 0.05], ...               'String','Number of Points', ...               'Style','text', ...               'Tag', 'StaticSigma');h1 = uicontrol('Parent',h0, ...               'Units', nr, ...               'BackgroundColor',c4, ...               'Callback','CPF.step = fval(gcbo,CPF.step);', ...               'FontName',f1, ...               'ForegroundColor',c5, ...               'HorizontalAlignment','left', ...               'Position',[0.31 0.45 0.22 0.05], ...               'Style','edit', ...               'String', num2str(CPF.step), ...               'Tag','EditGamma');h1 = uicontrol('Parent',h0, ...               'Units', nr, ...               'BackgroundColor',c2, ...               'HorizontalAlignment','left', ...               'Position',[0.31 0.50 0.22 0.05], ...               'String','Step Size Control', ...               'Style','text', ...               'Tag','StaticGamma');h1 = uicontrol('Parent',h0, ...               'Units', nr, ...               'BackgroundColor',c4, ...               'Callback','CPF.tolv = fval(gcbo,CPF.tolv);', ...               'FontName',f1, ...               'ForegroundColor',c5, ...               'HorizontalAlignment','left', ...               'Position',[0.31 0.57 0.22 0.05], ...               'Style','edit', ...               'String', num2str(CPF.tolv), ...               'Tag','EditEpsmu');h1 = uicontrol('Parent',h0, ...               'Units', nr, ...               'BackgroundColor',c2, ...               'HorizontalAlignment','left', ...               'Position',[0.31 0.62 0.22 0.05], ...               'String','V tolerance', ...               'Style','text', ...               'Tag','StatiEpsmu');h1 = uicontrol('Parent',h0, ...               'Units', nr, ...               'BackgroundColor',c4, ...               'Callback','CPF.tolf = fval(gcbo,CPF.tolf);', ...               'FontName',f1, ...               'ForegroundColor',c5, ...               'HorizontalAlignment','left', ...               'Position',[0.31 0.69 0.22 0.05], ...               'Style','edit', ...               'String', num2str(CPF.tolf), ...               'Tag','EditEps1');h1 = uicontrol('Parent',h0, ...               'Units', nr, ...               'BackgroundColor',c2, ...               'HorizontalAlignment','left', ...               'Position',[0.31 0.74 0.22 0.05], ...               'String','Flow tolerance', ...               'Style','text', ...               'Tag','StaticEps1');h1 = uicontrol('Parent',h0, ...               'Units', nr, ...               'BackgroundColor',c4, ...               'Callback','CPF.tolc = fval(gcbo,CPF.tolc);', ...               'FontName',f1, ...               'ForegroundColor',c5, ...               'HorizontalAlignment','left', ...               'Position',[0.31 0.81 0.22 0.05], ...               'Style','edit', ...               'String', num2str(CPF.tolc), ...               'Tag','EditEps2');h1 = uicontrol('Parent',h0, ...               'Units', nr, ...               'BackgroundColor',c2, ...               'HorizontalAlignment','left', ...               'Position',[0.31 0.86 0.22 0.05], ...               'String','Corrector step tolerance', ...               'Style','text', ...               'Tag','StaticEps2');% Bannerh1 = axes('Parent',h0, ...          'Box','on', ...          'CameraUpVector',[0 1 0], ...          'Color',c4, ...          'ColorOrder',Settings.color, ...          'Layer','top', ...          'Position',[0.025 0.025 0.1289 0.21], ...          'Tag','Axes1', ...          'XColor',c2, ...          'XLim',[0.5 100.5], ...          'XLimMode','manual', ...          'XTick',[], ...          'YColor',c2, ...          'YDir','reverse', ...          'YLim',[0.5 100.5], ...          'YLimMode','manual', ...          'YTick',[], ...          'ZColor',[0 0 0]);h2 = image('Parent',h1, ...           'CData',fm_mat('logo_psat'), ...           'Tag','Axes1Image1', ...           'XData',[1 101], ...           'YData',[1 101]);h1 = axes('Parent',h0, ...          'Box','on', ...          'CameraUpVector',[0 1 0], ...          'Color',c4, ...          'ColorOrder',Settings.color, ...          'Layer','top', ...          'Position',[0.84 0.025 0.1289 0.21], ...          'Tag','Axes1', ...          'XColor',c2, ...          'XLim',[0.5 100.5], ...          'XLimMode','manual', ...          'XTick',[], ...          'YColor',c2, ...          'YDir','reverse', ...          'YLim',[0.5 100.5], ...          'YLimMode','manual', ...          'YTick',[], ...          'ZColor',[0 0 0]);h2 = image('Parent',h1, ...           'CData',fm_mat('logo_cpf'), ...           'Tag','Axes1Image1', ...           'XData',[1 101], ...           'YData',[1 101]);h1 = uicontrol('Parent',h0, ...               'Units', nr, ...               'BackgroundColor',c2, ...               'ForegroundColor', [0 1 0.5], ...               'FontSize', 12, ...               'FontName', 'Times', ...               'FontWeight', 'bold', ...               'FontAngle', 'italic',...               'Position',[0.3 0.1 0.4 0.07], ...               'String','Continuation Power Flow', ...               'Style','text', ...               'Tag','StaticText3');if nargout > 0, fig = h0; end

⌨️ 快捷键说明

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