|
2 | 2 | The "Optimization" tab |
3 | 3 | ************************************************** |
4 | 4 |
|
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*). |
0 commit comments