source: sasview/src/sas/qtgui/Perspectives/Fitting/UI/FittingOptionsUI.ui @ ff3b293

ESS_GUIESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalc
Last change on this file since ff3b293 was ff3b293, checked in by Piotr Rozyczko <rozyczko@…>, 6 years ago

Improve error handling in Chi2 calculations.
Improve bad input communication in Fit Algorithms
SASVIEW-988

  • Property mode set to 100755
File size: 24.0 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<ui version="4.0">
3 <class>FittingOptions</class>
4 <widget class="QDialog" name="FittingOptions">
5  <property name="geometry">
6   <rect>
7    <x>0</x>
8    <y>0</y>
9    <width>440</width>
10    <height>538</height>
11   </rect>
12  </property>
13  <property name="windowTitle">
14   <string>Dialog</string>
15  </property>
16  <property name="windowIcon">
17   <iconset>
18    <normaloff>:/res/ball.ico</normaloff>:/res/ball.ico</iconset>
19  </property>
20  <layout class="QGridLayout" name="gridLayout_12">
21   <item row="0" column="0">
22    <widget class="QGroupBox" name="groupBox">
23     <property name="title">
24      <string>Fit Algorithms </string>
25     </property>
26     <layout class="QGridLayout" name="gridLayout_9">
27      <item row="0" column="0">
28       <widget class="QComboBox" name="cbAlgorithm">
29        <property name="sizePolicy">
30         <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
31          <horstretch>0</horstretch>
32          <verstretch>0</verstretch>
33         </sizepolicy>
34        </property>
35        <property name="sizeAdjustPolicy">
36         <enum>QComboBox::AdjustToContents</enum>
37        </property>
38       </widget>
39      </item>
40      <item row="1" column="0">
41       <widget class="QStackedWidget" name="stackedWidget">
42        <property name="frameShape">
43         <enum>QFrame::NoFrame</enum>
44        </property>
45        <property name="currentIndex">
46         <number>0</number>
47        </property>
48        <widget class="QWidget" name="page_dream">
49         <layout class="QGridLayout" name="gridLayout_2">
50          <item row="0" column="0">
51           <widget class="QGroupBox" name="groupBox_2">
52            <property name="sizePolicy">
53             <sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding">
54              <horstretch>0</horstretch>
55              <verstretch>0</verstretch>
56             </sizepolicy>
57            </property>
58            <property name="title">
59             <string>DREAM</string>
60            </property>
61            <layout class="QGridLayout" name="gridLayout">
62             <item row="0" column="0">
63              <widget class="QLabel" name="label">
64               <property name="text">
65                <string>Samples:</string>
66               </property>
67              </widget>
68             </item>
69             <item row="0" column="1">
70              <widget class="QLineEdit" name="samples_dream">
71               <property name="toolTip">
72                <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Number of points to be drawn from the Markov chain.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
73               </property>
74              </widget>
75             </item>
76             <item row="1" column="0">
77              <widget class="QLabel" name="label_2">
78               <property name="text">
79                <string>Burn-in Steps:</string>
80               </property>
81              </widget>
82             </item>
83             <item row="1" column="1">
84              <widget class="QLineEdit" name="burn_dream">
85               <property name="toolTip">
86                <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;The number of iterations to required for the Markov chain to converge to the equilibrium distribution.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
87               </property>
88              </widget>
89             </item>
90             <item row="2" column="0">
91              <widget class="QLabel" name="label_3">
92               <property name="text">
93                <string>Population:</string>
94               </property>
95              </widget>
96             </item>
97             <item row="2" column="1">
98              <widget class="QLineEdit" name="pop_dream">
99               <property name="toolTip">
100                <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;The size of the population.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
101               </property>
102              </widget>
103             </item>
104             <item row="3" column="0">
105              <widget class="QLabel" name="label_4">
106               <property name="text">
107                <string>Initializer:</string>
108               </property>
109              </widget>
110             </item>
111             <item row="3" column="1">
112              <widget class="QComboBox" name="init_dream">
113               <property name="toolTip">
114                <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-style:italic;&quot;&gt;Initializer&lt;/span&gt; determines how the population will be initialized. The options are as follows:&lt;/p&gt;&lt;p&gt;&lt;span style=&quot; font-style:italic;&quot;&gt;eps&lt;/span&gt; (epsilon ball), in which the entire initial population is chosen at random from within a tiny hypersphere centered about the initial point&lt;/p&gt;&lt;p&gt;&lt;span style=&quot; font-style:italic;&quot;&gt;lhs&lt;/span&gt; (latin hypersquare), which chops the bounds within each dimension in &lt;span style=&quot; font-weight:600;&quot;&gt;k&lt;/span&gt; equal sized chunks where &lt;span style=&quot; font-weight:600;&quot;&gt;k&lt;/span&gt; is the size of the population and makes sure that each parameter has at least one value within each chunk across the population.&lt;/p&gt;&lt;p&gt;&lt;span style=&quot; font-style:italic;&quot;&gt;cov&lt;/span&gt; (covariance matrix), in which the uncertainty is estimated using the covariance matrix at the initial point, and points are selected at random from the corresponding gaussian ellipsoid&lt;/p&gt;&lt;p&gt;&lt;span style=&quot; font-style:italic;&quot;&gt;random&lt;/span&gt; (uniform random), in which the points are selected at random within the bounds of the parameters&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
115               </property>
116               <item>
117                <property name="text">
118                 <string>eps</string>
119                </property>
120               </item>
121               <item>
122                <property name="text">
123                 <string>lhs</string>
124                </property>
125               </item>
126               <item>
127                <property name="text">
128                 <string>cov</string>
129                </property>
130               </item>
131               <item>
132                <property name="text">
133                 <string>random</string>
134                </property>
135               </item>
136              </widget>
137             </item>
138             <item row="4" column="0">
139              <widget class="QLabel" name="label_5">
140               <property name="text">
141                <string>Thinning:</string>
142               </property>
143              </widget>
144             </item>
145             <item row="4" column="1">
146              <widget class="QLineEdit" name="thin_dream">
147               <property name="toolTip">
148                <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;The amount of thinning to use when collecting the population.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
149               </property>
150              </widget>
151             </item>
152             <item row="5" column="0">
153              <widget class="QLabel" name="label_6">
154               <property name="text">
155                <string>Steps:</string>
156               </property>
157              </widget>
158             </item>
159             <item row="5" column="1">
160              <widget class="QLineEdit" name="steps_dream">
161               <property name="toolTip">
162                <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Determines the number of iterations to use for drawing samples after burn in.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
163               </property>
164              </widget>
165             </item>
166            </layout>
167           </widget>
168          </item>
169          <item row="1" column="0">
170           <spacer name="verticalSpacer_5">
171            <property name="orientation">
172             <enum>Qt::Vertical</enum>
173            </property>
174            <property name="sizeHint" stdset="0">
175             <size>
176              <width>20</width>
177              <height>268</height>
178             </size>
179            </property>
180           </spacer>
181          </item>
182         </layout>
183        </widget>
184        <widget class="QWidget" name="page_lm">
185         <layout class="QGridLayout" name="gridLayout_4">
186          <item row="0" column="0">
187           <widget class="QGroupBox" name="groupBox_3">
188            <property name="title">
189             <string>Levenberg</string>
190            </property>
191            <layout class="QGridLayout" name="gridLayout_3">
192             <item row="0" column="0">
193              <widget class="QLabel" name="label_7">
194               <property name="text">
195                <string>Steps:</string>
196               </property>
197              </widget>
198             </item>
199             <item row="0" column="1">
200              <widget class="QLineEdit" name="steps_lm">
201               <property name="toolTip">
202                <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;The number of gradient steps to take.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
203               </property>
204              </widget>
205             </item>
206             <item row="1" column="0">
207              <widget class="QLabel" name="label_8">
208               <property name="text">
209                <string>f(x) tolerance:</string>
210               </property>
211              </widget>
212             </item>
213             <item row="1" column="1">
214              <widget class="QLineEdit" name="ftol_lm">
215               <property name="toolTip">
216                <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Used to determine when the fit has reached the point where no significant improvement is expected.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
217               </property>
218              </widget>
219             </item>
220             <item row="2" column="0">
221              <widget class="QLabel" name="label_9">
222               <property name="text">
223                <string>x tolerance:</string>
224               </property>
225              </widget>
226             </item>
227             <item row="2" column="1">
228              <widget class="QLineEdit" name="xtol_lm">
229               <property name="toolTip">
230                <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Used to determine when the fit has reached the point where no significant improvement is expected.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
231               </property>
232              </widget>
233             </item>
234            </layout>
235           </widget>
236          </item>
237          <item row="1" column="0">
238           <spacer name="verticalSpacer_2">
239            <property name="orientation">
240             <enum>Qt::Vertical</enum>
241            </property>
242            <property name="sizeHint" stdset="0">
243             <size>
244              <width>20</width>
245              <height>434</height>
246             </size>
247            </property>
248           </spacer>
249          </item>
250         </layout>
251        </widget>
252        <widget class="QWidget" name="page_newton">
253         <layout class="QGridLayout" name="gridLayout_7">
254          <item row="0" column="0">
255           <widget class="QGroupBox" name="groupBox_5">
256            <property name="title">
257             <string>Quasi-Newton BFGS </string>
258            </property>
259            <layout class="QGridLayout" name="gridLayout_5">
260             <item row="0" column="0">
261              <widget class="QLabel" name="label_10">
262               <property name="text">
263                <string>Steps:</string>
264               </property>
265              </widget>
266             </item>
267             <item row="0" column="1">
268              <widget class="QLineEdit" name="steps_newton">
269               <property name="toolTip">
270                <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;The number of gradient steps to take.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
271               </property>
272              </widget>
273             </item>
274             <item row="1" column="0">
275              <widget class="QLabel" name="label_13">
276               <property name="text">
277                <string>Starts:</string>
278               </property>
279              </widget>
280             </item>
281             <item row="1" column="1">
282              <widget class="QLineEdit" name="starts_newton">
283               <property name="toolTip">
284                <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Value thattells the optimizer to restart a given number of times. Each time it restarts it uses a random starting point.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
285               </property>
286              </widget>
287             </item>
288             <item row="2" column="0">
289              <widget class="QLabel" name="label_11">
290               <property name="text">
291                <string>f(x) tolerance:</string>
292               </property>
293              </widget>
294             </item>
295             <item row="2" column="1">
296              <widget class="QLineEdit" name="ftol_newton">
297               <property name="toolTip">
298                <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Used to determine when the fit has reached the point where no significant improvement is expected.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
299               </property>
300              </widget>
301             </item>
302             <item row="3" column="0">
303              <widget class="QLabel" name="label_12">
304               <property name="text">
305                <string>x tolerance:</string>
306               </property>
307              </widget>
308             </item>
309             <item row="3" column="1">
310              <widget class="QLineEdit" name="xtol_newton">
311               <property name="toolTip">
312                <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Used to determine when the fit has reached the point where no significant improvement is expected.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
313               </property>
314              </widget>
315             </item>
316            </layout>
317           </widget>
318          </item>
319          <item row="1" column="0">
320           <spacer name="verticalSpacer">
321            <property name="orientation">
322             <enum>Qt::Vertical</enum>
323            </property>
324            <property name="sizeHint" stdset="0">
325             <size>
326              <width>20</width>
327              <height>68</height>
328             </size>
329            </property>
330           </spacer>
331          </item>
332         </layout>
333        </widget>
334        <widget class="QWidget" name="page_de">
335         <layout class="QGridLayout" name="gridLayout_8">
336          <item row="0" column="0">
337           <widget class="QGroupBox" name="groupBox_6">
338            <property name="title">
339             <string>Differential Evolution</string>
340            </property>
341            <layout class="QGridLayout" name="gridLayout_6">
342             <item row="0" column="0">
343              <widget class="QLabel" name="label_14">
344               <property name="text">
345                <string>Steps:</string>
346               </property>
347              </widget>
348             </item>
349             <item row="0" column="1">
350              <widget class="QLineEdit" name="steps_de">
351               <property name="toolTip">
352                <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;The number of iterations.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
353               </property>
354              </widget>
355             </item>
356             <item row="1" column="0">
357              <widget class="QLabel" name="label_15">
358               <property name="text">
359                <string>Population:</string>
360               </property>
361              </widget>
362             </item>
363             <item row="1" column="1">
364              <widget class="QLineEdit" name="pop_de"/>
365             </item>
366             <item row="2" column="0">
367              <widget class="QLabel" name="label_18">
368               <property name="text">
369                <string>Crossover ratio:</string>
370               </property>
371              </widget>
372             </item>
373             <item row="2" column="1">
374              <widget class="QLineEdit" name="CR_de">
375               <property name="toolTip">
376                <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;The size of the population.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
377               </property>
378              </widget>
379             </item>
380             <item row="3" column="0">
381              <widget class="QLabel" name="label_19">
382               <property name="text">
383                <string>Scale:</string>
384               </property>
385              </widget>
386             </item>
387             <item row="3" column="1">
388              <widget class="QLineEdit" name="F_de">
389               <property name="toolTip">
390                <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Determines how much to scale each difference vector before adding it to the candidate point.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
391               </property>
392              </widget>
393             </item>
394             <item row="4" column="0">
395              <widget class="QLabel" name="label_16">
396               <property name="text">
397                <string>f(x) tolerance:</string>
398               </property>
399              </widget>
400             </item>
401             <item row="4" column="1">
402              <widget class="QLineEdit" name="ftol_de">
403               <property name="toolTip">
404                <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Used to determine when the fit has reached the point where no significant improvement is expected.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
405               </property>
406              </widget>
407             </item>
408             <item row="5" column="0">
409              <widget class="QLabel" name="label_17">
410               <property name="text">
411                <string>x tolerance:</string>
412               </property>
413              </widget>
414             </item>
415             <item row="5" column="1">
416              <widget class="QLineEdit" name="xtol_de">
417               <property name="toolTip">
418                <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Used to determine when the fit has reached the point where no significant improvement is expected.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
419               </property>
420              </widget>
421             </item>
422            </layout>
423           </widget>
424          </item>
425          <item row="1" column="0">
426           <spacer name="verticalSpacer_3">
427            <property name="orientation">
428             <enum>Qt::Vertical</enum>
429            </property>
430            <property name="sizeHint" stdset="0">
431             <size>
432              <width>20</width>
433              <height>356</height>
434             </size>
435            </property>
436           </spacer>
437          </item>
438         </layout>
439        </widget>
440        <widget class="QWidget" name="page_amoeba">
441         <layout class="QGridLayout" name="gridLayout_10">
442          <item row="0" column="0">
443           <widget class="QGroupBox" name="groupBox_7">
444            <property name="title">
445             <string>Nelder-Mead Simplex</string>
446            </property>
447            <layout class="QGridLayout" name="gridLayout_11">
448             <item row="0" column="0">
449              <widget class="QLabel" name="label_20">
450               <property name="text">
451                <string>Steps:</string>
452               </property>
453              </widget>
454             </item>
455             <item row="0" column="1">
456              <widget class="QLineEdit" name="steps_amoeba">
457               <property name="toolTip">
458                <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;The number of simplex update iterations to perform.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
459               </property>
460              </widget>
461             </item>
462             <item row="1" column="0">
463              <widget class="QLabel" name="label_21">
464               <property name="text">
465                <string>Starts:</string>
466               </property>
467              </widget>
468             </item>
469             <item row="1" column="1">
470              <widget class="QLineEdit" name="starts_amoeba">
471               <property name="toolTip">
472                <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Tells the optimizer to restart a given number of times. Each time it restarts it uses a random starting point.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
473               </property>
474              </widget>
475             </item>
476             <item row="2" column="0">
477              <widget class="QLabel" name="label_22">
478               <property name="text">
479                <string>Simplex radius:</string>
480               </property>
481              </widget>
482             </item>
483             <item row="2" column="1">
484              <widget class="QLineEdit" name="radius_amoeba">
485               <property name="toolTip">
486                <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;The initial size of the simplex, as a portion of the bounds defining the parameter space.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
487               </property>
488              </widget>
489             </item>
490             <item row="3" column="0">
491              <widget class="QLabel" name="label_24">
492               <property name="text">
493                <string>f(x) tolerance:</string>
494               </property>
495              </widget>
496             </item>
497             <item row="3" column="1">
498              <widget class="QLineEdit" name="ftol_amoeba">
499               <property name="toolTip">
500                <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Used to determine when the fit has reached the point where no significant improvement is expected. &lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
501               </property>
502              </widget>
503             </item>
504             <item row="4" column="0">
505              <widget class="QLabel" name="label_25">
506               <property name="text">
507                <string>x tolerance:</string>
508               </property>
509              </widget>
510             </item>
511             <item row="4" column="1">
512              <widget class="QLineEdit" name="xtol_amoeba">
513               <property name="toolTip">
514                <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Used to determine when the fit has reached the point where no significant improvement is expected. &lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
515               </property>
516              </widget>
517             </item>
518            </layout>
519           </widget>
520          </item>
521          <item row="1" column="0">
522           <spacer name="verticalSpacer_4">
523            <property name="orientation">
524             <enum>Qt::Vertical</enum>
525            </property>
526            <property name="sizeHint" stdset="0">
527             <size>
528              <width>20</width>
529              <height>382</height>
530             </size>
531            </property>
532           </spacer>
533          </item>
534         </layout>
535        </widget>
536       </widget>
537      </item>
538     </layout>
539    </widget>
540   </item>
541   <item row="1" column="0">
542    <widget class="QDialogButtonBox" name="buttonBox">
543     <property name="orientation">
544      <enum>Qt::Horizontal</enum>
545     </property>
546     <property name="standardButtons">
547      <set>QDialogButtonBox::Cancel|QDialogButtonBox::Help|QDialogButtonBox::Ok</set>
548     </property>
549    </widget>
550   </item>
551  </layout>
552 </widget>
553 <resources/>
554 <connections>
555  <connection>
556   <sender>buttonBox</sender>
557   <signal>rejected()</signal>
558   <receiver>FittingOptions</receiver>
559   <slot>reject()</slot>
560   <hints>
561    <hint type="sourcelabel">
562     <x>316</x>
563     <y>260</y>
564    </hint>
565    <hint type="destinationlabel">
566     <x>286</x>
567     <y>274</y>
568    </hint>
569   </hints>
570  </connection>
571 </connections>
572</ui>
Note: See TracBrowser for help on using the repository browser.