Optimization: Variable specification

Mandatory element

The variable specification works the same way as in the simulation. Therefore, general explanations are given elsewhere.

Purpose

Nevertheless, there are a couple of additional requirements for an optimization. The optimization requires exactly one objective variable. Remember that MOSAICmodeling solves the following optimization problem:

 \min_{u,y} f(x,u,y) \\[1ex]\mathrm{s.\,t.\,} g(x,u,y) = 0, \\\phantom{\mathrm{s.\,t.\,}} x^\mathrm{L} \leq x \leq x^\mathrm{U}, \\\phantom{\mathrm{s.\,t.\,}} u^\mathrm{L} \leq u \leq u^\mathrm{U}, \\\phantom{\mathrm{s.\,t.\,}} y \in \mathcal{Z}^n, \\\phantom{\mathrm{s.\,t.\,}} y^L \leq y \leq y^U.

The objective function can thus be formulated as

 \eta = f(x,u,y).

Therefore, the simulation must include this additional constraint and  \eta must be defined as the objective variable in the variable specification.

In addition, the degrees of freedom in the optimization must be assigned optimization variables. It is recommended to also supply reasonable lower and upper bounds – not only for optimization variables but also for all other variables.