✅作者简介:热爱科研的Matlab仿真开发者,修心和技术同步精进,matlab项目合作可私信。
🍎个人主页:Matlab科研工作室
🍊个人信条:格物致知。
更多Matlab仿真内容点击👇
⛄ 内容介绍
随着社会经济的快速发展和电力需求的不断增加,传统集中式大规模发电已经不能满足电能清洁生产和能源高效利用的要求,分布式电源凭借环境友好以及运行方式灵活的特点得到快速发展.
⛄ 部分代码
function varargout = guicl1(varargin)
% GUICL1 MATLAB code for guicl1.fig
% GUICL1, by itself, creates a new GUICL1 or raises the existing
% singleton*.
%
% H = GUICL1 returns the handle to a new GUICL1 or the handle to
% the existing singleton*.
%
% GUICL1('CALLBACK',hObject,eventData,handles,...) calls the local
% function named CALLBACK in GUICL1.M with the given input arguments.
%
% GUICL1('Property','Value',...) creates a new GUICL1 or raises the
% existing singleton*. Starting from the left, property value pairs are
% applied to the GUI before guicl1_OpeningFcn gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to guicl1_OpeningFcn via varargin.
%
% *See GUI Options on GUIDE's Tools menu. Choose "GUI allows only one
% instance to run (singleton)".
%
% See also: GUIDE, GUIDATA, GUIHANDLES
% Edit the above text to modify the response to help guicl1
% Last Modified by GUIDE v2.5 02-Jul-2014 16:13:31
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @guicl1_OpeningFcn, ...
'gui_OutputFcn', @guicl1_OutputFcn, ...
'gui_LayoutFcn', [] , ...
'gui_Callback', []);
if nargin && ischar(varargin{1})
gui_State.gui_Callback = str2func(varargin{1});
end
if nargout
[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
else
gui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT
% --- Executes just before guicl1 is made visible.
function guicl1_OpeningFcn(hObject, eventdata, handles, varargin)
% This function has no output args, see OutputFcn.
% hObject handle to figure
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% varargin command line arguments to guicl1 (see VARARGIN)
% Choose default command line output for guicl1
handles.output = hObject;
% Update handles structure
guidata(hObject, handles);
set(gcf,'NumberTitle', 'off', 'Name', '配电网潮流计算与经济调度模糊满意度评价软件V1.0');
% UIWAIT makes guicl1 wait for user response (see UIRESUME)
% uiwait(handles.figure1);
% --- Outputs from this function are returned to the command line.
function varargout = guicl1_OutputFcn(hObject, eventdata, handles)
% varargout cell array for returning output args (see VARARGOUT);
% hObject handle to figure
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Get default command line output from handles structure
varargout{1} = handles.output;
% --- Executes on button press in buttonks.
function buttonks_Callback(hObject, eventdata, handles)
% hObject handle to buttonks (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
close(guicl1);
guicl2(hObject, eventdata, handles);
% --- Executes on button press in buttontc.
function buttontc_Callback(hObject, eventdata, handles)
% hObject handle to buttontc (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
close(guicl1);
% --------------------------------------------------------------------
function cd_Callback(hObject, eventdata, handles)
% hObject handle to cd (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% --------------------------------------------------------------------
function kaishi_Callback(hObject, eventdata, handles)
% hObject handle to kaishi (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
close(guicl1);
guicl2(hObject, eventdata, handles);
% --------------------------------------------------------------------
function tuichu_Callback(hObject, eventdata, handles)
% hObject handle to tuichu (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% --- Executes on button press in pushbutton3.
function pushbutton3_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton3 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
close(guicl1);
yuce(hObject, eventdata, handles);;
%yuce(hObject, eventdata, handles);
% --------------------------------------------------------------------
function Untitled_2_Callback(hObject, eventdata, handles)
% hObject handle to Untitled_2 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
close(gcf);
guimh;
% --- Executes during object creation, after setting all properties.
function tupian1_CreateFcn(hObject, eventdata, handles)
% hObject handle to axe1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
[A,map]=imread('1.jpg');
imshow(A,map);
% Hint: place code in OpeningFcn to populate axe1
% --- Executes during object creation, after setting all properties.
function text1_CreateFcn(hObject, eventdata, handles)
% hObject handle to text1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% --- Executes during object creation, after setting all properties.
function axe1_CreateFcn(hObject, eventdata, handles)
% hObject handle to axe1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
[A,map]=imread('1.jpg');
imshow(A,map);
% Hint: place code in OpeningFcn to populate axe1
% --- Executes on button press in pushbutton5.
function pushbutton5_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton5 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
close(gcf);
guimh;
⛄ 运行结果
⛄ 参考文献
[1]孙连彪. 主动配电网运行优化与综合评价算法研究[D]. 北京交通大学.
[2]徐睿. 图形化潮流计算分析软件系统在配电网调度中的应用[J]. 上海电器技术, 2008(3):6.
❤️ 关注我领取海量matlab电子书和数学建模资料
❤️部分理论引用网络文献,若有侵权联系博主删除