Appendix¶
Global Notation Index¶
This table standardizes notation used across all chapters of the Irene manual. Where a symbol has different meanings in different contexts, the primary usage is listed first.
Symbol |
Meaning |
Primary chapter(s) |
|---|---|---|
\(t\) |
Relaxation order (hierarchy level) |
|
\(d\) |
Polynomial degree bound; \(2t\) for SOS |
|
\(M_t(y)\) |
Moment matrix at order \(t\) |
|
\(M_t(g_i y)\) |
Localizing matrix for constraint \(g_i \ge 0\) |
|
\(L\), \(L_\mu\) |
Moment functional / integration w.r.t. measure \(\mu\) |
|
\(\rho\) |
Global minimum value |
|
\(\gamma\), \(\gamma_t\) |
Lower bound at relaxation order \(t\) |
|
\(K\) |
Semialgebraic feasible set \(\{x : g_i(x) \ge 0\}\) |
|
\(Q_{\mathbf{g}}\) |
Quadratic module generated by \(g_1, \dots, g_m\) |
|
\(\Sigma\), \(\sum A^2\) |
Sums of squares in algebra \(A\) |
|
\(\Sigma + C\) |
Schick cone (SOS + circuit polynomials) |
|
\(\mathbb{R}[S]\) |
Semigroup algebra over semigroup \(S\) |
|
\(\mathcal{I}\), \(\mathcal{I}_{\text{ADE}}\) |
Ideal (algebraic / differential) |
Group-Ring Foundations, Differential SDP and Mean Relaxations |
\(B_t\), \(B_{t,k}\) |
Monomial basis (full / per-clique) |
Border Basis Theory and Implementation, Unified Relaxation API |
\(\partial B\) |
Border of monomial basis |
|
\(\operatorname{New}(f)\) |
Newton polytope of polynomial \(f\) |
|
\(G = (V, E)\) |
Correlative sparsity graph |
|
\(C_1, \dots, C_p\) |
Maximal cliques after chordal completion |
|
\(D, D_i\) |
Derivation operator on \(\mathbb{R}[S]\) |
|
\(\Theta\) |
Operator semigroup \(\langle\delta_1, \dots, \delta_m\rangle\) |
|
\(M_{q,p}(X,w)\) |
Weighted power mean form |
|
\(\mathcal{M}_{n,2d}\) |
Cone of nonnegative mean polynomials |
|
\(\prec\) |
Admissible term order (e.g., \(\prec_{\text{degrevlex}}\)) |
pyProximation¶
pyProximation is a companion library for function approximation in Hilbert spaces. Full documentation is included in this manual — see the pyProximation section.
pyOptSparse¶
pyOptSparse is a Python-based package for formulating and solving nonlinear constrained optimization problems in an efficient, reusable and portable manner. It is an open-source software distributed under the terms of the GNU Lesser General Public License.
- pyOptSparse provides a unified interface to nonlinear optimizers.
SNOPT - Sparse NOlinear OPTimizer
NLPQL - Non-Linear Programming by Quadratic Lagrangian
NLPQLP - NonLinear Programming with Non-Monotone and Distributed Line Search
FSQP - Feasible Sequential Quadratic Programming
SLSQP - Sequential Least Squares Programming
PSQP - Preconditioned Sequential Quadratic Programming
ALGENCAN - Augmented Lagrangian with GENCAN
FILTERSD
MMA - Method of Moving Asymptotes
GCMMA - Globally Convergent Method of Moving Asymptotes
CONMIN - CONstrained function MINimization
MMFD - Modified Method of Feasible Directions
KSOPT - Kreisselmeier–Steinhauser Optimizer
COBYLA - Constrained Optimization BY Linear Approximation
SDPEN - Sequential Penalty Derivative-free method for Nonlinear constrained optimization
SOLVOPT - SOLver for local OPTimization problems
ALPSO - Augmented Lagrangian Particle Swarm Optimizer
NSGA2 - Non Sorting Genetic Algorithm II
ALHSO - Augmented Lagrangian Harmony Search Optimizer
MIDACO - Mixed Integer Distributed Ant Colony Optimization
Basic usage:¶
pyOptSparse is designed to solve general constrained nonlinear optimization problems:
- where:
\(x\) is the vector of design variables
\(f(x)\) is a nonlinear function
\(g(x)\) is a linear or nonlinear function
\(n\) is the number of design variables
\(m_e\) is the number of equality constraints
\(m\) is the total number of constraints (number of equality constraints: \(m_i=m-m_e\)).
The following is illustrative pseudo-code for a pyOptSparse optimization workflow:
# General Objective Function Template:
def obj_fun(x, *args, **kwargs):
"""
f: objective value
g: array (or list) of constraint values
fail: 0 for successful function evaluation, 1 for unsuccessful function evaluation (test must be provided by user)
If the Optimization problem is unconstrained, g must be returned as an empty list or array: g = []
Inequality constraints are handled as `<=`.
"""
fail = 0
f = function(x,*args,**kwargs)
g = function(x,*args,**kwargs)
return f,g,fail
# Instantiating an Optimization Problem:
opt_prob = Optimization('name', obj_fun)
# Assigning Objective:
opt_prob.addObj('name', value=0.0, optimum=0.0)
# Single Design variable:
opt_prob.addVar('name', type='c', value=0.0, lower=-inf, upper=inf, choices=listochoices)
# A Group of Design Variables:
opt_prob.addVarGroup('name', numerinGroup, type='c', value=value, lower=lb, upper=up, choices=listochoices)
# where `value`, `lb`, `ub` (float or int or list or 1Darray).
# and supported Types are ‘c’: continuous design variable;
# `i`: integer design variable;
# `d`: discrete design variable (based on choices, e.g.: list/dict of materials).
# Assigning Constraints:
## Single Constraint:
opt_prob.addCon('name', type='i', lower=-inf, upper=inf, equal=0.0)
## A Group of Constraints:
opt_prob.addConGroup('name', numberinGroup, type='i', lower=lb, upper=up, equal=eq)
# where `lb`, `ub`, `eq` are (float or int or list or 1Darray).
# and supported types are
# `i` - inequality constraint;
# `e` - equality constraint.
# Instantiating an Optimizer (e.g.: Snopt):
opt = pySNOPT.SNOPT()
# Solving the Optimization Problem:
opt(opt_prob, sens_type='FD', disp_opts=False, sens_mode='', *args, **kwargs)
# Output:
print opt_prob
For installation and usage details, see the pyOptSparse documentation.
LaTeX support¶
There is a method implemented for every class of Irene module that generates a LaTeX code related
to the object. This code can be retrieved by calling LaTeX function on the instance.
Calling LaTeX on a
SDPRelaxationsinstance returns the code which demonstrates user entered optimization problem.
SDRelaxSolinstance returns the code for the moment matrix of the solution.
Mominstance (moment object) returns the LaTeX code of the object.
sdpinstance returns the code for the SDP.
Moreover, if LaTeX function is called on a SymPy object it calls sympy.latex function and returns
the output.
The LaTeX function is a member of Irene.base module which calls __latex__ method of its classes.