Skip to content

Commit 68ab21e

Browse files
victoraalvesFelipe
authored andcommitted
finished optimization gui manual.
1 parent ea69d8a commit 68ab21e

18 files changed

+396
-6
lines changed

docs/doctrees/environment.pickle

4.38 KB
Binary file not shown.
21.6 KB
Binary file not shown.
7.81 KB
Loading

docs/html/_images/nlp_solvers.png

4.88 KB
Loading
328 KB
Loading

docs/html/_images/opt_results.png

5.35 KB
Loading

docs/html/_images/otm_main.png

31.1 KB
Loading
1.54 KB
Loading

docs/html/_sources/gui/optimization_tab.rst.txt

Lines changed: 131 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,134 @@
22
The "Optimization" tab
33
**************************************************
44

5-
Placeholder text...
5+
This tab allows you to optimize the metamodel objective function, subject to the
6+
constraints that you have created (also metamodels). In addition, the bounds of the Manipulated Variables (MVs)
7+
that you defined at the "Sampling" tab are automatically incorporated to the optimization problem as box constraints.
8+
9+
You can also:
10+
11+
* Modify the NLP (IpOpt) solver parameters
12+
* Modifiy the infill criteria algorithm parameters, implemented in *Metacontrol* to refine your
13+
kriging response
14+
* Inspect each iteration of the infill criteria algorithm in real time
15+
* At the end of the run, see your results in a concise panel.
16+
17+
Here is an overview of this tab:
18+
19+
.. figure:: ../images/otm_main.png
20+
:align: center
21+
22+
*Metacontrol* "Optimization" tab.
23+
24+
There are five main panels on this tab:
25+
26+
* Adaptive sampling setup *panel*
27+
* NLP solvers options *panel*
28+
* Perform optimization *panel*
29+
* Control *panel*
30+
* Results *panel*
31+
32+
Adaptive sampling setup *panel*
33+
===============================
34+
35+
On this panel you will setup the main parameters for the Adaptive Sampling (infill criteria) algorithm.
36+
37+
.. figure:: ../images/adaptive_sampling.png
38+
:align: center
39+
40+
Configuring adaptive sampling algorithm.
41+
42+
You can setup values for:
43+
44+
* *First* and *Second* contraction factors
45+
* *Maximum* contraction tolerance
46+
* Feasibility constraint tolerance
47+
* Penalty factor for the objective function
48+
* Refinement tolerance
49+
* Termination tolerance
50+
* Maximum function evaluations
51+
* The kriging regression model used in the adaptive sampling algorithm
52+
53+
.. IMPORTANT::
54+
For a explanation on how each parameters affects the optimization run, refer to our theoretical
55+
backgrounds section.
56+
57+
58+
NLP solvers options *panel*
59+
============================
60+
61+
You can select the NLP solver and configuring its parameters at this section. Currently, we support IpOpt inside
62+
*Metacontrol* natively.
63+
64+
.. figure:: ../images/nlp_solvers.png
65+
:align: center
66+
67+
Configuring NLP Solvers Parameters.
68+
69+
70+
71+
Perform optimization *panel*
72+
============================
73+
74+
At this panel you can start your optimization run, or abort it at any moment.
75+
76+
.. figure:: ../images/perform_optimization.png
77+
:align: center
78+
79+
Start/abort optimization run.
80+
81+
Performing an optimization run
82+
-------------------------------
83+
84+
After configuring the adpative sampling and NLP parameters, you can click on "Start" under the
85+
"Perform optimization" *panel* in order to begin the metamodel optimization. You can see at the Control
86+
panel the iterations in real time, and each step performed by the algorithm.
87+
88+
Control *panel*
89+
================
90+
91+
This is how the control *panel* looks like during an optimization run in *Metacontrol*
92+
93+
94+
.. figure:: ../images/opt_control_panel.png
95+
:align: center
96+
97+
Control *panel* output.
98+
99+
The control panel shows the operations performed by the adaptive sampling algorithm, the decision variables values (MVs) at each
100+
iteration, the actual and predicted objective function values, and the largest infeasiblity (constraint) violation for that iteration.
101+
At the end of the optimization run, *Metacontrol* will inform you how many points are within the trust-region.
102+
103+
.. IMPORTANT::
104+
To understand how the algorithm works, refer to our theoretical backgrounds section.
105+
106+
107+
Results *panel*
108+
================
109+
110+
The results *panel* gives a summary of the results of your optimization problem, such as
111+
112+
* Final decision variables values
113+
* Constraint expressions values
114+
* Objective function value
115+
116+
.. figure:: ../images/opt_results.png
117+
:align: center
118+
119+
Results *panel* , a summary of your optimization run.
120+
121+
Interpreting constraints results
122+
---------------------------------
123+
124+
As stated before at the previous section, the constraints are written in *Metacontrol* in the form:
125+
126+
.. math::
127+
g(x) \leq 0
128+
129+
Therefore, if a constraint has, after the optimization run, a negative value, it indicates that this constraint
130+
is **inactive**. On the other hand, constraints values equals 0 indicate that for the problem created, this constraint
131+
is active. This information is important because Active-Constraint Control is a mandatory step in Self-Optimizing control
132+
methodology.
133+
134+
In the example above, all nonlinear constraints were inactive. Three decision variables (MVs), on the other hand, were active
135+
at their lower bounds (*mcct*, *f1t* and *f2t*).

docs/html/gui/gui_index.html

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,14 @@ <h1>Metacontrol GUI Manual<a class="headerlink" href="#metacontrol-gui-manual" t
194194
<li class="toctree-l2"><a class="reference internal" href="metamodel_tab.html#validation-metrics-panel">Validation metrics <em>panel</em></a></li>
195195
</ul>
196196
</li>
197-
<li class="toctree-l1"><a class="reference internal" href="optimization_tab.html">The “Optimization” tab</a></li>
197+
<li class="toctree-l1"><a class="reference internal" href="optimization_tab.html">The “Optimization” tab</a><ul>
198+
<li class="toctree-l2"><a class="reference internal" href="optimization_tab.html#adaptive-sampling-setup-panel">Adaptive sampling setup <em>panel</em></a></li>
199+
<li class="toctree-l2"><a class="reference internal" href="optimization_tab.html#nlp-solvers-options-panel">NLP solvers options <em>panel</em></a></li>
200+
<li class="toctree-l2"><a class="reference internal" href="optimization_tab.html#perform-optimization-panel">Perform optimization <em>panel</em></a></li>
201+
<li class="toctree-l2"><a class="reference internal" href="optimization_tab.html#control-panel">Control <em>panel</em></a></li>
202+
<li class="toctree-l2"><a class="reference internal" href="optimization_tab.html#results-panel">Results <em>panel</em></a></li>
203+
</ul>
204+
</li>
198205
<li class="toctree-l1"><a class="reference internal" href="reduced_space_tab.html">The “Reduced Space” tab</a></li>
199206
<li class="toctree-l1"><a class="reference internal" href="diff_data_tab.html">The “Differential Data” tab</a></li>
200207
<li class="toctree-l1"><a class="reference internal" href="soc_tab.html">The “Self-Optimizing Control” tab</a></li>

0 commit comments

Comments
 (0)