PageRenderTime 43ms CodeModel.GetById 14ms RepoModel.GetById 0ms app.codeStats 0ms

/model/optimizer/GA/zielfunktionen.m

http://bohreroptimierung.googlecode.com/
MATLAB | 410 lines | 86 code | 114 blank | 210 comment | 12 complexity | 8f9df050be280cd92d168a514efc8ba1 MD5 | raw file
Possible License(s): BSD-3-Clause, BSD-2-Clause, LGPL-2.1
  1. function varargout = zielfunktionen(varargin)
  2. % ZIELFUNKTIONEN M-file for zielfunktionen.fig
  3. % ZIELFUNKTIONEN, by itself, creates a new ZIELFUNKTIONEN or raises the existing
  4. % singleton*.
  5. %
  6. % H = ZIELFUNKTIONEN returns the handle to a new ZIELFUNKTIONEN or the handle to
  7. % the existing singleton*.
  8. %
  9. % ZIELFUNKTIONEN('CALLBACK',hObject,eventData,handles,...) calls the local
  10. % function named CALLBACK in ZIELFUNKTIONEN.M with the given input arguments.
  11. %
  12. % ZIELFUNKTIONEN('Property','Value',...) creates a new ZIELFUNKTIONEN or raises the
  13. % existing singleton*. Starting from the left, property value pairs are
  14. % applied to the GUI before zielfunktionen_OpeningFunction gets called. An
  15. % unrecognized property name or invalid value makes property application
  16. % stop. All inputs are passed to zielfunktionen_OpeningFcn via varargin.
  17. %
  18. % *See GUI Options on GUIDE's Tools menu. Choose "GUI allows only one
  19. % instance to run (singleton)".
  20. %
  21. % See also: GUIDE, GUIDATA, GUIHANDLES
  22. % Edit the above text to modify the response to help zielfunktionen
  23. % Last Modified by GUIDE v2.5 29-Apr-2008 05:01:59
  24. % Begin initialization code - DO NOT EDIT
  25. gui_Singleton = 1;
  26. gui_State = struct('gui_Name', mfilename, ...
  27. 'gui_Singleton', gui_Singleton, ...
  28. 'gui_OpeningFcn', @zielfunktionen_OpeningFcn, ...
  29. 'gui_OutputFcn', @zielfunktionen_OutputFcn, ...
  30. 'gui_LayoutFcn', [] , ...
  31. 'gui_Callback', []);
  32. if nargin && ischar(varargin{1})
  33. gui_State.gui_Callback = str2func(varargin{1});
  34. end
  35. if nargout
  36. [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
  37. else
  38. gui_mainfcn(gui_State, varargin{:});
  39. end
  40. % End initialization code - DO NOT EDIT
  41. % --- Executes just before zielfunktionen is made visible.
  42. function zielfunktionen_OpeningFcn(hObject, eventdata, handles, varargin)
  43. % This function has no output args, see OutputFcn.
  44. % hObject handle to figure
  45. % eventdata reserved - to be defined in a future version of MATLAB
  46. % handles structure with handles and user data (see GUIDATA)
  47. % varargin command line arguments to zielfunktionen (see VARARGIN)
  48. % Choose default command line output for zielfunktionen
  49. handles.output = hObject;
  50. % Update handles structure
  51. guidata(hObject, handles);
  52. % UIWAIT makes zielfunktionen wait for user response (see UIRESUME)
  53. % uiwait(handles.figure1);
  54. % --- Outputs from this function are returned to the command line.
  55. function varargout = zielfunktionen_OutputFcn(hObject, eventdata, handles)
  56. % varargout cell array for returning output args (see VARARGOUT);
  57. % hObject handle to figure
  58. % eventdata reserved - to be defined in a future version of MATLAB
  59. % handles structure with handles and user data (see GUIDATA)
  60. % Get default command line output from handles structure
  61. varargout{1} = handles.output;
  62. % --- Executes on button press in pushbutton4.
  63. function pushbutton4_Callback(hObject, eventdata, handles)
  64. % hObject handle to pushbutton4 (see GCBO)
  65. % eventdata reserved - to be defined in a future version of MATLAB
  66. % handles structure with handles and user data (see GUIDATA)
  67. % --- Executes on button press in pushbutton5.
  68. function pushbutton5_Callback(hObject, eventdata, handles)
  69. % hObject handle to pushbutton5 (see GCBO)
  70. % eventdata reserved - to be defined in a future version of MATLAB
  71. % handles structure with handles and user data (see GUIDATA)
  72. % --- Executes on button press in pushbutton6.
  73. function pushbutton6_Callback(hObject, eventdata, handles)
  74. % hObject handle to pushbutton6 (see GCBO)
  75. % eventdata reserved - to be defined in a future version of MATLAB
  76. % handles structure with handles and user data (see GUIDATA)
  77. function edit3_Callback(hObject, eventdata, handles)
  78. % hObject handle to edit3 (see GCBO)
  79. % eventdata reserved - to be defined in a future version of MATLAB
  80. % handles structure with handles and user data (see GUIDATA)
  81. % Hints: get(hObject,'String') returns contents of edit3 as text
  82. % str2double(get(hObject,'String')) returns contents of edit3 as a double
  83. % --- Executes during object creation, after setting all properties.
  84. function edit3_CreateFcn(hObject, eventdata, handles)
  85. % hObject handle to edit3 (see GCBO)
  86. % eventdata reserved - to be defined in a future version of MATLAB
  87. % handles empty - handles not created until after all CreateFcns called
  88. % Hint: edit controls usually have a white background on Windows.
  89. % See ISPC and COMPUTER.
  90. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  91. set(hObject,'BackgroundColor','white');
  92. end
  93. function edit4_Callback(hObject, eventdata, handles)
  94. % hObject handle to edit4 (see GCBO)
  95. % eventdata reserved - to be defined in a future version of MATLAB
  96. % handles structure with handles and user data (see GUIDATA)
  97. % Hints: get(hObject,'String') returns contents of edit4 as text
  98. % str2double(get(hObject,'String')) returns contents of edit4 as a double
  99. % --- Executes during object creation, after setting all properties.
  100. function edit4_CreateFcn(hObject, eventdata, handles)
  101. % hObject handle to edit4 (see GCBO)
  102. % eventdata reserved - to be defined in a future version of MATLAB
  103. % handles empty - handles not created until after all CreateFcns called
  104. % Hint: edit controls usually have a white background on Windows.
  105. % See ISPC and COMPUTER.
  106. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  107. set(hObject,'BackgroundColor','white');
  108. end
  109. % --- Executes on button press in pushbutton1.
  110. function pushbutton1_Callback(hObject, eventdata, handles)
  111. % hObject handle to pushbutton1 (see GCBO)
  112. % eventdata reserved - to be defined in a future version of MATLAB
  113. % handles structure with handles and user data (see GUIDATA)
  114. % --- Executes on button press in pushbutton2.
  115. function pushbutton2_Callback(hObject, eventdata, handles)
  116. % hObject handle to pushbutton2 (see GCBO)
  117. % eventdata reserved - to be defined in a future version of MATLAB
  118. % handles structure with handles and user data (see GUIDATA)
  119. % --- Executes on button press in pushbutton3.
  120. function pushbutton3_Callback(hObject, eventdata, handles)
  121. % hObject handle to pushbutton3 (see GCBO)
  122. % eventdata reserved - to be defined in a future version of MATLAB
  123. % handles structure with handles and user data (see GUIDATA)
  124. function edit1_Callback(hObject, eventdata, handles)
  125. % hObject handle to edit1 (see GCBO)
  126. % eventdata reserved - to be defined in a future version of MATLAB
  127. % handles structure with handles and user data (see GUIDATA)
  128. % Hints: get(hObject,'String') returns contents of edit1 as text
  129. % str2double(get(hObject,'String')) returns contents of edit1 as a double
  130. % --- Executes during object creation, after setting all properties.
  131. function edit1_CreateFcn(hObject, eventdata, handles)
  132. % hObject handle to edit1 (see GCBO)
  133. % eventdata reserved - to be defined in a future version of MATLAB
  134. % handles empty - handles not created until after all CreateFcns called
  135. % Hint: edit controls usually have a white background on Windows.
  136. % See ISPC and COMPUTER.
  137. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  138. set(hObject,'BackgroundColor','white');
  139. end
  140. function edit2_Callback(hObject, eventdata, handles)
  141. % hObject handle to edit2 (see GCBO)
  142. % eventdata reserved - to be defined in a future version of MATLAB
  143. % handles structure with handles and user data (see GUIDATA)
  144. % Hints: get(hObject,'String') returns contents of edit2 as text
  145. % str2double(get(hObject,'String')) returns contents of edit2 as a double
  146. % --- Executes during object creation, after setting all properties.
  147. function edit2_CreateFcn(hObject, eventdata, handles)
  148. % hObject handle to edit2 (see GCBO)
  149. % eventdata reserved - to be defined in a future version of MATLAB
  150. % handles empty - handles not created until after all CreateFcns called
  151. % Hint: edit controls usually have a white background on Windows.
  152. % See ISPC and COMPUTER.
  153. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  154. set(hObject,'BackgroundColor','white');
  155. end
  156. % --- Executes on button press in pushbutton13.
  157. function pushbutton13_Callback(hObject, eventdata, handles)
  158. % hObject handle to pushbutton13 (see GCBO)
  159. % eventdata reserved - to be defined in a future version of MATLAB
  160. % handles structure with handles and user data (see GUIDATA)
  161. % --- Executes on button press in pushbutton14.
  162. function pushbutton14_Callback(hObject, eventdata, handles)
  163. % hObject handle to pushbutton14 (see GCBO)
  164. % eventdata reserved - to be defined in a future version of MATLAB
  165. % handles structure with handles and user data (see GUIDATA)
  166. % --- Executes on button press in pushbutton15.
  167. function pushbutton15_Callback(hObject, eventdata, handles)
  168. % hObject handle to pushbutton15 (see GCBO)
  169. % eventdata reserved - to be defined in a future version of MATLAB
  170. % handles structure with handles and user data (see GUIDATA)
  171. function edit9_Callback(hObject, eventdata, handles)
  172. % hObject handle to edit9 (see GCBO)
  173. % eventdata reserved - to be defined in a future version of MATLAB
  174. % handles structure with handles and user data (see GUIDATA)
  175. % Hints: get(hObject,'String') returns contents of edit9 as text
  176. % str2double(get(hObject,'String')) returns contents of edit9 as a double
  177. % --- Executes during object creation, after setting all properties.
  178. function edit9_CreateFcn(hObject, eventdata, handles)
  179. % hObject handle to edit9 (see GCBO)
  180. % eventdata reserved - to be defined in a future version of MATLAB
  181. % handles empty - handles not created until after all CreateFcns called
  182. % Hint: edit controls usually have a white background on Windows.
  183. % See ISPC and COMPUTER.
  184. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  185. set(hObject,'BackgroundColor','white');
  186. end
  187. function edit10_Callback(hObject, eventdata, handles)
  188. % hObject handle to edit10 (see GCBO)
  189. % eventdata reserved - to be defined in a future version of MATLAB
  190. % handles structure with handles and user data (see GUIDATA)
  191. % Hints: get(hObject,'String') returns contents of edit10 as text
  192. % str2double(get(hObject,'String')) returns contents of edit10 as a double
  193. % --- Executes during object creation, after setting all properties.
  194. function edit10_CreateFcn(hObject, eventdata, handles)
  195. % hObject handle to edit10 (see GCBO)
  196. % eventdata reserved - to be defined in a future version of MATLAB
  197. % handles empty - handles not created until after all CreateFcns called
  198. % Hint: edit controls usually have a white background on Windows.
  199. % See ISPC and COMPUTER.
  200. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  201. set(hObject,'BackgroundColor','white');
  202. end
  203. % --- Executes on button press in pushbutton16.
  204. function pushbutton16_Callback(hObject, eventdata, handles)
  205. % hObject handle to pushbutton16 (see GCBO)
  206. % eventdata reserved - to be defined in a future version of MATLAB
  207. % handles structure with handles and user data (see GUIDATA)
  208. % --- Executes on button press in pushbutton17.
  209. function pushbutton17_Callback(hObject, eventdata, handles)
  210. % hObject handle to pushbutton17 (see GCBO)
  211. % eventdata reserved - to be defined in a future version of MATLAB
  212. % handles structure with handles and user data (see GUIDATA)
  213. % --- Executes on button press in pushbutton18.
  214. function pushbutton18_Callback(hObject, eventdata, handles)
  215. % hObject handle to pushbutton18 (see GCBO)
  216. % eventdata reserved - to be defined in a future version of MATLAB
  217. % handles structure with handles and user data (see GUIDATA)
  218. function edit11_Callback(hObject, eventdata, handles)
  219. % hObject handle to edit11 (see GCBO)
  220. % eventdata reserved - to be defined in a future version of MATLAB
  221. % handles structure with handles and user data (see GUIDATA)
  222. % Hints: get(hObject,'String') returns contents of edit11 as text
  223. % str2double(get(hObject,'String')) returns contents of edit11 as a double
  224. % --- Executes during object creation, after setting all properties.
  225. function edit11_CreateFcn(hObject, eventdata, handles)
  226. % hObject handle to edit11 (see GCBO)
  227. % eventdata reserved - to be defined in a future version of MATLAB
  228. % handles empty - handles not created until after all CreateFcns called
  229. % Hint: edit controls usually have a white background on Windows.
  230. % See ISPC and COMPUTER.
  231. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  232. set(hObject,'BackgroundColor','white');
  233. end
  234. function edit12_Callback(hObject, eventdata, handles)
  235. % hObject handle to edit12 (see GCBO)
  236. % eventdata reserved - to be defined in a future version of MATLAB
  237. % handles structure with handles and user data (see GUIDATA)
  238. % Hints: get(hObject,'String') returns contents of edit12 as text
  239. % str2double(get(hObject,'String')) returns contents of edit12 as a double
  240. % --- Executes during object creation, after setting all properties.
  241. function edit12_CreateFcn(hObject, eventdata, handles)
  242. % hObject handle to edit12 (see GCBO)
  243. % eventdata reserved - to be defined in a future version of MATLAB
  244. % handles empty - handles not created until after all CreateFcns called
  245. % Hint: edit controls usually have a white background on Windows.
  246. % See ISPC and COMPUTER.
  247. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  248. set(hObject,'BackgroundColor','white');
  249. end
  250. % --- Executes on button press in pushbutton19.
  251. function pushbutton19_Callback(hObject, eventdata, handles)
  252. % hObject handle to pushbutton19 (see GCBO)
  253. % eventdata reserved - to be defined in a future version of MATLAB
  254. % handles structure with handles and user data (see GUIDATA)
  255. % --- Executes on button press in pushbutton20.
  256. function pushbutton20_Callback(hObject, eventdata, handles)
  257. % hObject handle to pushbutton20 (see GCBO)
  258. % eventdata reserved - to be defined in a future version of MATLAB
  259. % handles structure with handles and user data (see GUIDATA)
  260. % --- Executes on button press in pushbutton21.
  261. function pushbutton21_Callback(hObject, eventdata, handles)
  262. % hObject handle to pushbutton21 (see GCBO)
  263. % eventdata reserved - to be defined in a future version of MATLAB
  264. % handles structure with handles and user data (see GUIDATA)
  265. function edit13_Callback(hObject, eventdata, handles)
  266. % hObject handle to edit13 (see GCBO)
  267. % eventdata reserved - to be defined in a future version of MATLAB
  268. % handles structure with handles and user data (see GUIDATA)
  269. % Hints: get(hObject,'String') returns contents of edit13 as text
  270. % str2double(get(hObject,'String')) returns contents of edit13 as a double
  271. % --- Executes during object creation, after setting all properties.
  272. function edit13_CreateFcn(hObject, eventdata, handles)
  273. % hObject handle to edit13 (see GCBO)
  274. % eventdata reserved - to be defined in a future version of MATLAB
  275. % handles empty - handles not created until after all CreateFcns called
  276. % Hint: edit controls usually have a white background on Windows.
  277. % See ISPC and COMPUTER.
  278. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  279. set(hObject,'BackgroundColor','white');
  280. end
  281. function edit14_Callback(hObject, eventdata, handles)
  282. % hObject handle to edit14 (see GCBO)
  283. % eventdata reserved - to be defined in a future version of MATLAB
  284. % handles structure with handles and user data (see GUIDATA)
  285. % Hints: get(hObject,'String') returns contents of edit14 as text
  286. % str2double(get(hObject,'String')) returns contents of edit14 as a double
  287. % --- Executes during object creation, after setting all properties.
  288. function edit14_CreateFcn(hObject, eventdata, handles)
  289. % hObject handle to edit14 (see GCBO)
  290. % eventdata reserved - to be defined in a future version of MATLAB
  291. % handles empty - handles not created until after all CreateFcns called
  292. % Hint: edit controls usually have a white background on Windows.
  293. % See ISPC and COMPUTER.
  294. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  295. set(hObject,'BackgroundColor','white');
  296. end