MINLP: Undecidability and Hardness
A tutorial Leo Liberti, CNRS LIX Ecole Polytechnique liberti@lix.polytechnique.fr The Aussois COW, 2017
1 / 49
MINLP: Undecidability and Hardness A tutorial Leo Liberti, CNRS LIX - - PowerPoint PPT Presentation
MINLP: Undecidability and Hardness A tutorial Leo Liberti, CNRS LIX Ecole Polytechnique liberti@lix.polytechnique.fr The Aussois COW, 2017 1 / 49 Section 1 Introduction 2 / 49 Mixed-Integer Nonlinear Programming MINLP Formal
A tutorial Leo Liberti, CNRS LIX Ecole Polytechnique liberti@lix.polytechnique.fr The Aussois COW, 2017
1 / 49
2 / 49
MINLP
◮ Formal declarative language
sentences describe optimization problems
◮ Can encode pure feasibility problems
by minimizing a constant function e.g. min{0 | g(x) ≤ 0}
◮ Includes most other MP classes
e.g. LP, MILP, NLP
◮ Interpreter = solver
shifts focus from algorithmics to modelling
◮ Only consider single-objective MP
3 / 49
Given functions f, g1, . . . , gm : Qn → Q and Z ⊆ {1, . . . , n} min f(x) ∀i ≤ m gi(x) ≤ ∀j ∈ Z xj ∈ Z
◮ f, gi represented by expression DAGs
E.g. min{x1 + 2x2 − log(x1x2) | x1x2
2 ≥ 1 ∧ x1 ≥ 0 ∧ x2 ∈ N}
4 / 49
P ≡ min{x1 + 2x2 − log(x1x2) | x1x2
2 ≥ 1 ∧ x1 ≥ 0 ∧ x2 ∈ N}
P = (opt(P), val(P))
val(P) = 3
5 / 49
◮ Given an MP P, there are three possibilities:
◮ P has a feasible solution iff P exists or is unbounded
◮ P has an optimum iff P exists
◮ Asymmetry between optimization and feasibility
P ≡ min{0 | g(x) ≤ 0 ∧ x ∈ X}
∃P ∨ unbnd(P ) NO infeas(P ) Q ≡ min{f(x) | g(x) ≤ 0 ∧ x ∈ X}
∃Q NO unbnd(Q) ∨ infeas(Q) 6 / 49
7 / 49
◮ Formal System F
◮ alphabet and formal grammar
well-formed formulæ and sentences
◮ Axioms A
(recursive1 consistent set of sentences)
◮ Inference rules R
derive new sentences from old ones
◮ Language L
set of all sentences of F
◮ Theory T
sentences obtained by iterated application of R to A
1M recursive if ∃ alg. solving “given a, is a ∈ M or not?”
8 / 49
◮ Peano Arithmetic (PA): →↔, ∧, ∨, ¬, ∀, ∃, +, ×, = and
variable names; 1st order sentences about N; A=PL+induction; modus ponens and generalization
◮ T : provable sentences about N
◮ Real-closed Fields (RLF): like above and >; polynomials
◮ T : polynomial systems over R with solution in R
◮ Diophantine Equations (DE):
existentially quantified subset of PA
◮ T : polynomial systems over Z with solution in N ◮ {[∃x ∈ Nn p(x) = 0] | p ∈ Z[x]} ≡ {[f ∧ x ∈ Nn] | f ∈ L(RLF)} ◮ “between PA and RLF” 9 / 49
FS F is decidable if ∃ algorithm A : L → {0, 1} ∀f ∈ L A(f) = 1 if f ∈ T
◮ PA: does a sentence have a proof in PA or not? ◮ RLF: does a polynomial over R have a solution in R or not? ◮ DE: does a polynomial over Z have a solution in N or not?
Only YES/NO answer required (rather than explicit proof)
10 / 49
11 / 49
◮ DE ⊆ [MINLP feasibility]
◮ DE ⊆ [MINLP optimality]
∀i ≤ m gi(x) = x ∈ Nn
⇔ u∗ = min u (1 − u)
i≤m
(gi(x))2 = (x, u) ∈ Nn+1 = 0
◮ if u∗ > 1 get −1 = 0 (contradiction) ◮ if u∗ = 1 get g(x) = 0 (infeasible) ◮ if u∗ = 0 get g(x) = 0 (feasible) Suppose u∗ = 1 and g(x) = 0 feas., then u = 0 would also satisfy constr. and contradict minimality of u∗ 12 / 49
◮ MINLP contains DE ◮ show DE is undecidable
◮ any r.e.2 subset of N can be encoded by a DE ◮ {a ∈ N | a ∈ Halting} is r.e. ◮ so Halting can be represented by a DE ◮ if every DE were decidable, we could solve Halting
2M ⊆ N is r.e. if ∃ alg. terminating on input a iff a ∈ M (nonterm. for a ∈ M)
13 / 49
◮ DE sentence [p(y) = 0 ∧ y ∈ Nn+1]
y = (a, x) where a ∈ N “encodes the instance”
◮ DEs define subsets M ⊆ N:
a ∈ M ↔ ∃x ∈ Nn p(a, x) = 0 (†)
◮ Conversely, given M ⊆ N,
is there p(a, x) ∈ Z[a, x] s.t. (†)?
◮ Focus on r.e. sets M ⊆ N ◮ Matyiasevich-Davis-Putnam-Robinson thm. (MDPR, 1970):
For each r.e. set M there is a DE p(a, x) s.t. (†)
14 / 49
◮ Suppose DE is decidable
◮ ⇒ given DE, can decide feasibility/infeas. ◮ ⇒ given r.e. set M, can decide a ∈ M and a ∈ M
◮ Halting: given TM T and input ι, will T(ι) terminate?
undecidable by [Turing 1936] (diagonal argument)
◮ Let H = {(T, ι) | T(ι) ↓}
H is r.e.: simulate T with input ι, terminates iff T(ι) ↓ MH = encoding of H in N ⇒ MH is r.e.
◮ ⇒ can decide MH and solve Halting, contradiction ◮ Hence DE undecidable ◮ ∃ Universal Diophantine Equations (UDE)
encoding the dynamics of a UTM
∃ UDE deg d and n vars where (d, n) ∈ {(4, 58), (1.6 × 1045, 9)}
15 / 49
◮ Proof of Gödel’s 1st incompleteness thm.
r.e. sets ≡ DE with < ∞ ∃ and bounded ∀ quantifiers
◮ Davis’ normal form
◮ (2 bnd qnt ≡ 1 bnd qnt on pairs) and induction
◮ Robinson’s idea
get rid of universal quantifier by using exponent vars
◮ idea: [∃x0∀a ≤ x0∃x p(a, x) = 0] “ → ”
p(a, x)
◮ Matyiasevic’s contribution
express c = ba using polynomials
◮ use Pell’s equation x2 − dy2 = 1 ◮ solutions (xn, yn) satisfy xn + yn
√ d = (x1 + y1 √ d)n
◮ xn, yn grow exponentially with n 16 / 49
17 / 49
◮ RLF ⊇ [poly NLP feasibility]
◮ RLF ⊆ [poly NLP optimality]
∀i ≤ m gi(x) = 0
is feasible
⇔
(1 − u2)
i≤m
(gi(x))2 =
◮ if α∗ > 1 get −1 = 0 (contradiction) ◮ if α∗ > 0 get g(x) = 0 (infeasible) ◮ if α∗ = 0 get g(x) = 0 (feasible) 18 / 49
◮ RLF contains [poly NLP feasibility] ◮ RLF decidable ◮ ⇒ [poly NLP feasibility] is decidable
19 / 49
◮ [poly NLP]:
we need to tell optimality and unboundedness apart
◮ RLF also includes universal quantifiers ◮ P ≡ min{f(x) g(x) ≤ 0} unbounded:
∀y f(x) = y ∧ g(x) ≤ 0
◮ P exists:
∃y f(x) = y ∧ g(x) ≤ 0 ∧ ¬unbounded(P)
◮ P infeasible:
¬∃y f(x) = y ∧ g(x) ≤ 0
20 / 49
◮ RLF sentence [p(x) R 0]: p ∈ R[x], x ∈ Rn, R ∈ {=, <}
p(x) < 0 ← → p(x) − y = 0 ∧ y < 0 p(x) ≤ 0 ← → p(x) − y2 = 0 ∀i ≤ m pi(x) = 0 ← →
(pi(x))2 = 0
◮ ∃? alg. for deciding if any p(x) = 0 solves R or not? ◮ RLF is decidable by quantifier elimination [Tarski 1948] ◮ Quantifier elimination:
◮ constructs solution sets (YES) or derives contradictions (NO) ◮ ⇒ RLF is complete, too ◮ think of Fourier-Motzkin elimination for linear RLF 21 / 49
◮ DLO (Dense Linear Order):
0, 1, ¬, ∨, ∧, ∃, ∀, <, =, vars; quantifiers over R
◮ Reduce to form ∃x i≤m
qi
where all qi’s have form x = v, x < v, or x > v (v var/const)
◮ x = x can be removed from conjunction ◮ x < x : sentence is false (and there’s a proof!) ◮ if v x differ, rewrite ∃x x = v ∧ r(x, v) ↔ ∃x r(x, x)
back to previous case
◮ remaining case: qi is
(ui < x) ∧
(x < vi) rewrite as
i ui < vi
◮ get [∃x¯
q where ¯ q does not involve x] or contradiction
◮ repeat until only constants in R left
get proof of YES and proof of NO
DLO is decidable and complete
22 / 49
◮ [Robinson 1949]:
RT (1st ord. theory over Q) is undecidable
◮ [Pheidas 2000]: existential theory of Q (ERT) is open
can we decide wether p(x) = 0 has solutions in Q? Boh!
◮ [Matyiasevich 1993]:
◮ equivalence between DEH and ERT ◮ DEH = [DE restricted to homogeneous polynomials] ◮ but we don’t know whether DEH is decidable
Note that Diophantus solved DE in positive rationals
23 / 49
24 / 49
The following surprising bound is due to [Jones 1982] For any axiomatizable theory T in PA1 and any sentence p ∈ T , if p has a proof in T , then it has a proof consisting of 100 additions and multiplications of integers
◮ Gödel numbering: T −
→ r.e. subset of N
◮ Search for proofs ←
→ search for DE solutions solution encodes whole proof
◮ ∃ UDE the evaluation of which takes 100 +, × operations ◮ Any solution of the UDE can be verified in at most 100
25 / 49
“Since N is contained in R, how is it possible that RLF is decidable but DE (= RLF ∩ N) is not?”
After all, if a problem contains a hard subproblem, it’s hard by inclusion, right?
◮ Can you express DE p(x) = 0 ∧ x ∈ N in RLF?
◮ p(x) = 0 belongs to both DE and RLF, OK ◮ “x ∈ N” in RLF?
⇐ find poly q(x) s.t. ∃x q(x) = 0 iff x ∈ Nn
◮ q(x) = x(x − 1) · · · (x − a) only good for {0, 1, . . . , a}
q(x) =
i∈ω
(x − i) is ∞ly long, invalid
◮ IMPOSSIBLE!
if it were possible, DE would be decidable, contradiction
26 / 49
“Decidability implies completeness”
For any sentence f we can decide whether ∃ proof or not, so either f or ¬f must be provable, right?
◮ Algebraically Closed Fields (ACF):
field axioms + “every polynomial splits” schema
◮ ACF is decidable by quantifier elimination ◮ Cp ≡ [ j≤p
1 = 0] (for any prime p): independent of ACF
◮ ∃ fields of every prime characteristic p ◮ each different field satisfies Cp and negates Cq for q = p
◮ ACF is incomplete: neither Cp nor ¬Cp is provable in ACF ◮ Decision algorithm for ACF returns NO for both
⇒ theories can be decidable and incomplete
27 / 49
28 / 49
◮ [Jeroslow 1973]: MIQCP:
min c⊤x ∀i ≤ m x⊤Qix + ai⊤x + bi ≥ x ∈ Zn (†) is undecidable
Proof:
◮ Let U(a, x) = 0 be an UDE ◮ P(a) ≡ min{u ∈ N | (1 − u)U(a, x) = 0 ∧ x ∈ Zn}
P(a) describes an undecidable problem
◮ Linearize every product xixj by yij and add yij = xixj
until only degree 1 and 2 left
◮ Obtain MIQCP (†) 29 / 49
◮ If each Qi is diagonal PSD, decidable [Witzgall 1963] ◮ If x are bounded in [xL, xU] ∩ Zn, decidable
can express x ∈ {xL, xL + 1, . . . , xU} by polynomial ∀i ≤ m
i ≤i≤xU i
(x − i) = 0 turn into poly system in R (in RLF, decidable)
◮ ⇒ Bounded (vars) easier than unbounded (for Z) ◮ [MIQP decision vers.] is decidable x⊤Qx + c⊤x ≤ γ Ax ≥ b ∀j ∈ Z xj ∈ Z (in NP [Del Pia et al. 2014])
30 / 49
We can’t represent unbounded subsets of N by polynomials But we can if we allow some transcendental functions x ∈ Z ← → sin(πx) = 0
◮ Constrained NLP is undecidable:
min{0 | U(a, x) = 0 ∧ ∀j ≤ n sin(πxj) = 0}
◮ Even with just one nonlinear constraint:
min{0, | (U(a, x))2 +
(sin(πxj))2 = 0}
◮ Unconstrained NLP is undecidable:
min(U(a, x))2 +
(sin(πxj))2
◮ Box-constrained NLP is undecidable (boundedness doesn’t help):
min{(U(a, tan x1, . . . , tan xn))2+
(sin(π tan xj))2 | −π 2 ≤ x ≤ π 2 }
31 / 49
◮ All polynomial NLPs are decidable
by decidability of RLF
◮ Quadratic Programming (QP) is decidable over Q
min x⊤Qx + c⊤x Ax ≥ b
◮ Bricks of the proof
◮ if Q is PSD, P ∈ Q
◮ ∃ polytime IPM for solving P [Renegar&Shub 1992] ◮ unbounded case treated in [Vavasis 1990]
◮ ⇒ [QP decision version] is in NP
⇒ QP is decidable over Q
32 / 49
33 / 49
◮ sat is NP-hard by Cook’s theorem
Reduce from sat in CNF
ℓj where ℓj is either xj or ¯ xj ≡ ¬xj
◮ Polynomial reduction ρ
sat xj ¯ xj ∨ ∧ MILP xj 1 − xj + ≥ 1
◮ E.g. ρ maps (x1 ∨ x2) ∧ (¯
x2 ∨ x3) to MILP min{0 | x1 + x2 ≥ 1 ∧ x3 − x2 ≥ 0 ∧ x ∈ {0, 1}3}
◮ sat is YES iff MILP is feasible trivially shows MINLP is NP-hard
34 / 49
◮ Hardness of MINLP due to integer variables
question hardness without integrality constrs.
◮ Interesting issue: hardness in fixed dimension
◮ [ax2 + by − c = 0 ∧ (x, y) ∈ N2] is NP-complete
[Manders& Adleman 1978], from 3sat → knapsack → ·
◮ ⇒ [x2 ≡ a (mod b)] is NP-complete ◮ ⇒ min{(ax2 + by − c)2 | x, y ∈ N} is NP-hard 35 / 49
36 / 49
◮ By reduction from SAT, let σ be an instance ◮ ˆ
ρ(σ, x) ≥ 1: linear constraints from sat → MILP reduction
◮ Consider QP
min f(x) =
j≤n
xj(1 − xj) ˆ ρ(σ, x) ≥ 1 0 ≤ x ≤ 1 (†)
◮ Claim: σ is YES iff val(†) = 0 ◮ Proof:
◮ assume σ YES with soln. x∗, then x∗ ∈ {0, 1}n, hence
f(x∗) = 0, since f(x) ≥ 0 for all x, val(†) = 0
◮ assume σ NO, suppose val(†) = 0, then (†) feasible
with soln. x′, since f(x′) = 0 then x′ ∈ {0, 1}, feasible in sat hence σ is YES, contradiction
37 / 49
◮ Add surplus vars v to sat→MILP constraints:
ˆ ρ(σ, x) − 1 − v = 0 (denote by ∀i ≤ m (a⊤
i x − bi − vi = 0))
◮ Now sum them on the objective
min
xj(1 − xj) +
i≤m
(a⊤
i x − bi − vi)2
0 ≤ x ≤ 1, v ≥ 0
◮ Reduce from 3sat, get ≤ 3 literals per clause
⇒ can consider 0 ≤ v ≤ 2
38 / 49
◮ continuous Quadratic Knapsack Problem (cQKP)
min f(x) = x⊤Qx + c⊤x
ajxj = γ x ∈ [0, 1]n,
◮ Reduction from subset-sum given list a ∈ Qn and γ, is there J ⊆ {1, . . . , n} s.t.
j∈J
aj = γ? reduce to f(x) =
j xj(1 − xj)
◮ σ is a YES instance of subset-sum
◮ let x∗ j = 1 iff j ∈ J, x∗ j = 0 otherwise ◮ feasible by construction ◮ f is non-negative on [0, 1]n and f(x∗) = 0: optimum
◮ σ is a NO instance of subset-sum
◮ suppose opt(cQKP) = x∗ s.t. f(x∗) = 0 ◮ then x∗ ∈ {0, 1}n because f(x∗) = 0 ◮ feasibility of x∗ → supp(x∗) solves σ, contradiction, hence f(x∗) > 0 39 / 49
◮ Convex QP is in P
need some negative eigenvalue for hardness: how many?
◮ QP with 1 Negative Eigenvalue (QP1NE) is NP-hard
reduction from k-clique instance (G = (V, E), k)
◮ Reduce to the following QP: min z − w2 (1)
4jxj = w (2)
42jxj + 2
4i+jyij = z (3) ∀i < j ∈ V max(0, xi + xj − 1) ≤ yij (4) ∀{i, j} ∈ E xi + xj ≤ 1 (5)
xj = k (6) 0 ≤ x ≤ 1. (7) ◮ z = w2 iff yij = xixj, integrality nontrivial, Eq. (5)-(7) encode k-clique
40 / 49
min f(x) = x⊤Qx + c⊤x
xj = 1 ∀j ≤ n xj ≥
◮ Reduce max clique to subclass f(x) = −
{i,j}∈E
xixj Motzkin-Straus formulation (MSF)
◮ Theorem [Motzkin& Straus 1964] Let C be the maximum clique of the instance G = (V, E) of max clique
∃x∗ ∈ opt (MSF) f ∗ = f(x∗) = 1
2
1 ω(G)
x∗
j =
ω(G)
if j ∈ C
41 / 49
x∗ = opt( max
x∈[0,1]n
xixj) s.t. |C = {j ∈ V |; x∗
j > 0}| smallest (‡)
◮ Suppose 1, 2 ∈ C but {1, 2} ∈ E[C], then x∗
1, x∗ 2 > 0, can perturb by small
ǫ ∈ [−x∗
1, x∗ 2], get xǫ = (x∗ 1 + ǫ, x∗ 2 − ǫ, . . .), feasible w.r.t. simplex and bounds
◮ {1, 2} ∈ E ⇒ x1x2 does not appear in f(x) ⇒ f(xǫ) depends linearly on ǫ; by
constant ◮ set ǫ = −x∗
1 or = x∗ 2 yields global optima with more zero components than x∗,
against assumption (‡), hence {1, 2} ∈ E[C], by relabeling C is a clique
42 / 49
x∗ = opt( max
x∈[0,1]n
xixj) s.t. |C = {j ∈ V |; x∗
j > 0}| smallest (‡)
◮ square simplex constraint
j xj = 1, get
x2
j + 2
xixj = 1 ◮ by construction x∗
j = 0 for j ∈ C ⇒
ψ(x∗) =
(x∗
j )2 + 2
x∗
j x∗ j =
(x∗
j )2 + 2f(x∗) = 1
◮ ψ(x) = 1 for all feasible x, so f(x) achieves maximum when
j∈C(x∗ j )2 is
minimum, i.e. x∗
j = 1 |C| for all j ∈ C
◮ again by simplex constraint f(x∗) = 1 −
(x∗
j )2 = 1 − |C|
1 |C|2 ≤ 1 − 1 ω(G) so f(x∗) attains maximum 1 − 1/ω(G) when |C| = ω(G)
43 / 49
◮ Separable BPP is NP-hard
min
xjyj Ax ≥ b By ≥ c (†)
◮ Reduction from 2ls [Bennett & Mangasarian 1993]
geometric piecewise-linear point partition problem
◮ (apparently still) Open research problem: Settled in [Matsui 1996]
min (c⊤x + γ)(d⊤x + δ) Ax ≥ b
Is (‡) NP-hard? [Vavasis 1995]
◮ Thanks to S. Iwata for updating me on the status of this problem!
44 / 49
45 / 49
min x⊤Qx
◮ Check constant Hessian
◮ If PSD, attains minimum ◮ If ∃ 1 negative eigenvalue, unbounded direction
◮ Always feasible
46 / 49
◮ ℓ2-TRS
min{x⊤Qx + c⊤x | x2 ≤ 1} can be solved in polynomial time
◮ Many variants [Bienstock & Michalka, 2013]
◮ +1 linear constraint a⊤x ≤ b ◮ +1 ℓ2 norm constr. x − x02 ≤ r0 ◮ +2 linear constraints a⊤
i x ≤ bi (i ≤ 2)
s.t. (a⊤
1 x − b1)(a⊤ 2 x − b2) = 0
◮ +2 linear affinely parallel constraints ◮ +m linear constraints
(no two simultaneously binding in feas. reg.)
◮ . . .
◮ Unfortunately, not much practical use
Applications mostly use ℓ∞ norm, over which QP is hard
...but see [Buchheim et al. 2013 & 2015] 47 / 49
◮ Decidability of cvx constr. minimization in Zn
⇐ turns out it’s bounded
◮ Fixed Param. Tractable (FPT) cases of hard MINLP ◮ Integer convex maximization
◮ fixed number of objective fun. arguments ◮ some fixed data (e.g. constraint matrix) ◮ fixed number of variables
◮ Integer quasicvx constrained minimization
fixed number of variables
◮ ...and more ◮ QP over Z2 is in P [Del Pia & Weismantel 2014]
48 / 49
49 / 49