Bernhard Paus Græsdal
RLG Short Talk - Fall 2024
Some questions that have been asked in this lab:
Goal for this talk
Provide a simple case study with some empirical answers to these questions
Decision variables:
Quasi-Dynamic EoMs:
Nonconvex complementarity constraints!
Optimal cost:
\( C_\text{opt} = 0.968 \)
For horizon \( T = 10 \)
Our problem is a QCQP:
Let's get a lower bound by solving a semidefinite relaxation
QCQP
SDR
\( \text{rank}(X) \gg 1 \)
\( C_\text{relaxed} = 0.1 \)
\( C_\text{opt} = 0.968 \)
Opt gap = \( -89.67 \% \)
(Equivalent to eliminating equality constraints by parametrizing affine feasible set \( \set{x | Bx = d} = \set{Fz + \hat{x} } \) )
QCQP
SDR-EQ
Multiply \( Bx= d\) with \(x^T\) and linearize with \( X = xx^T \)
\( \text{rank}(X) \approx 3 \)
\( C_\text{relaxed} = 0.795 \)
\( C_\text{opt} = 0.968 \)
Opt gap = \(-17.9 \% \)
Note:
You should always eliminate equality constraints.
(either by adding implied constraints or by reparametrization)
QCQP
SDR-RLT
Multiply \( Ax-b \leq 0 \) with its transpose and linearize with \( X = xx^T \)
\( \text{rank}(X) = 1 \)
\( C_\text{relaxed} = 0.968 \)
\( C_\text{opt} = 0.968 \)
Opt gap = \(0 \% \)
\( n = 1\)
Opt gap = \( -17.6 \% \)
Opt gap = \( -5.5 \% \)
Opt gap = \( -0.06 \% \)
\( n = 3\)
\( n = 4\)
But what if the relaxation is still not tight...?
Okay, so you can:
Generally want to model signed distance as a SOC:
\( \phi \geq \| q^a - c \| \)
constant position of contact point on box
This gives a terrible relaxation (even with all our tricks so far)
\( \phi \)
Opt gap = \( -89.67 \% \)
\( \phi \geq \| q^a - c \| \) and \( n \geq 0 \)
We need to multiply and linearize the SOC too:
\( \phi n \geq \| q_a n - c n \| \)
\( \implies \)
\( \implies \)
Linearize with \( X = xx^T \)
\( X_{\phi n} \geq \| X_{q_a n} - c n \| \)
We multiply a SOCC in \( x \) with a linear constraint in \( x \) to obtain a new SOC in \( (x, X) \).
Now the solution is tight!
A more useful example: With this we can model signed distances exactly in \( \R^2 \) and \( \R^3 \) (we could not do this before!)
(We now allow x and y motion)
[1] R. Jiang and D. Li, “Second order cone constrained convex relaxations for nonconvex quadratically constrained quadratic programming,” J Glob Optim 2019
Say \( P_i \succeq 0 \) for some \(i\).
QCQP
Should we keep the convex constraint?
I.e. add both
and
?
The answer is no.
Then \( S_2 \subseteq S_1 \).
(i.e. we should only add the linearized quadratic constraint).
Lemma:
Proof:
Suppose \(x \in S_2 \) and \(X \succeq xx^T\).
Then \(0 \geq \text{tr}(P_i X) + Q_i^T x + r_i \geq x^T P_i x + q_i^T x + r_i\), i.e. \( x \in S_1 \).
(Because \(P_i \succeq 0\) and \(X \succeq xx^T \) \(\implies\) \(\text{tr}(P_i X) \geq \text{tr}(P xx^T) \)) \(\square\)
Let
A final thought: Working with semidefinite relaxations can feel a bit like this...