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)

Optimization, Unified Relaxation API

\(d\)

Polynomial degree bound; \(2t\) for SOS

Border Basis Theory and Implementation, Optimization

\(M_t(y)\)

Moment matrix at order \(t\)

Optimization, Semidefinite Programming Relaxations

\(M_t(g_i y)\)

Localizing matrix for constraint \(g_i \ge 0\)

Optimization

\(L\), \(L_\mu\)

Moment functional / integration w.r.t. measure \(\mu\)

Optimization

\(\rho\)

Global minimum value

Optimization

\(\gamma\), \(\gamma_t\)

Lower bound at relaxation order \(t\)

Optimization, Unified Relaxation API

\(K\)

Semialgebraic feasible set \(\{x : g_i(x) \ge 0\}\)

Optimization

\(Q_{\mathbf{g}}\)

Quadratic module generated by \(g_1, \dots, g_m\)

Optimization

\(\Sigma\), \(\sum A^2\)

Sums of squares in algebra \(A\)

Optimization

\(\Sigma + C\)

Schick cone (SOS + circuit polynomials)

SOS+SONC Relaxations

\(\mathbb{R}[S]\)

Semigroup algebra over semigroup \(S\)

Group-Ring Foundations

\(\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

Border Basis Theory and Implementation

\(\operatorname{New}(f)\)

Newton polytope of polynomial \(f\)

Newton Polytope Pruning

\(G = (V, E)\)

Correlative sparsity graph

Correlative Sparsity Detection

\(C_1, \dots, C_p\)

Maximal cliques after chordal completion

Correlative Sparsity Detection, Unified Relaxation API

\(D, D_i\)

Derivation operator on \(\mathbb{R}[S]\)

Group-Ring Foundations

\(\Theta\)

Operator semigroup \(\langle\delta_1, \dots, \delta_m\rangle\)

Group-Ring Foundations

\(M_{q,p}(X,w)\)

Weighted power mean form

Differential SDP and Mean Relaxations

\(\mathcal{M}_{n,2d}\)

Cone of nonnegative mean polynomials

Differential SDP and Mean Relaxations

\(\prec\)

Admissible term order (e.g., \(\prec_{\text{degrevlex}}\))

Border Basis Theory and Implementation

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:

\[ \begin{align}\begin{aligned}\begin{aligned}\\ \min & f(x) & \ \textrm{Subject to} & & \ & g_j(x) = 0 & j=1,\dots,m_e\ & g_j(x)\leq0 & j=m_e+1,\dots,m\ & l_i\leq x_i\leq u_i & i=1,\dots,n,\\\end{aligned}\end{aligned}\end{align} \]
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

  • SDPRelaxations instance returns the code which demonstrates user entered optimization problem.

  • SDRelaxSol instance returns the code for the moment matrix of the solution.

  • Mom instance (moment object) returns the LaTeX code of the object.

  • sdp instance 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.