18
$\begingroup$

I'm trying to wrap my head around an apparent paradox that I've come across while trying to learn more about optimization algorithms:

  • On one hand several sources state that convex optimization is easy, because every local minimum is a global minimum. In this video, starting at 27:00, Stephen Boyd from Stanford claims that convex optimization problems are tractable and in polynomial time.

  • Other sources state that a convex optimization problem can be NP-hard. See for example this post.

See this post.

I can't wrap my head around the two statements, are convex optimization problems tractable or not?

As I try to dig deeper, one thing I noticed it that the term convex doesn't seem to be used the same way by different people when it comes to integer problems.

By some definitions, it seems that a convex integer optimization problem is impossible by definition: the very fact of constraining the variables to integer values removes the convexity of the problem, since for a problem to be convex, both the objective function and the feasible set have to be convex.

Other places seem to consider problems where if aside from the integer constraint, all other constraints and the objective function are convex, to be convex optimization problems.

Which one of the two is correct? Can an integer programming problem be convex? Or is it non-convex by definition, given the restrictions it puts on the feasible set?

If it is possible for an integer programming problem to be convex, then in what sense are convex optimization problems "easier" that non-convex problems, since both are NP-Hard?

$\endgroup$
3
  • $\begingroup$ Related post about the NP-hardness of convex optimization: https://or.stackexchange.com/a/1474/145, similar to the answer by Johan Löfberg. $\endgroup$ Commented Sep 20, 2019 at 12:41
  • $\begingroup$ great question! $\endgroup$
    – stats_noob
    Commented Feb 2, 2022 at 4:29
  • $\begingroup$ The relaxation of an integer linear program to continuous variables is convex. $\endgroup$ Commented Jan 8 at 0:11

3 Answers 3

15
$\begingroup$

Feels like you are asking two things, tractability of convex problems and convexity of integer problems.

A first order approximation is that convex programs are tractable, .i.e., most problems you can think of as a layman in the field that are convex, are (probably) tractable to solve. That's why you would be told that in an introductory course on convex optimization. It is not true though.

Tractability of convex problems essentially boils down to being able to decide if an iterate $x$ is feasible, in a computationally tractable way (having a so called oracle available). There are convex sets for which this isn't the case. One such example if the set of co-positive matrices. If you are trying to find a matrix $M(x)$ such that $z^TM(x)z \geq 0$ for all $z\geq 0$, you have problems, as it is very hard to decide if a candidate $M(x)$ satisfies that property. Compare to the simple case of positive-semidefinite where all $z$ should lead to non-negativity, this is simply an eigenvalue test and thus semidefinite programming is tractable. Alas, also this statement is up for debate, as it depends on what you mean with solving a problem. A semidefinite programming problem with size $n$ (what ever we mean with that) can have a solution whose representation grows at an exponential rate $2^n$.

Regarding the second issue whether an integer problem is convex, the answer is no, and that follows directly from geometry (unless there is only 1 solution). However, as shown by Sam Burer, nononvex mixed-binary quadratic programs can be rewritten as convex optimization over the co-positive cone. Remember from the discussion above though, this only implies we've made a convex reformulation, not that the problem has been made tractable.

$\endgroup$
3
  • $\begingroup$ Related: mathoverflow.net/q/92939/91764 $\endgroup$ Commented Sep 20, 2019 at 16:02
  • $\begingroup$ It's unclear what you are claiming about Burer's result: that some integer problems can be rewritten as COP, or that all can? $\endgroup$
    – Ben Voigt
    Commented Sep 21, 2019 at 18:05
  • $\begingroup$ Burer talks about nononvex mixed-binary quadratic programs $\endgroup$ Commented Sep 22, 2019 at 6:16
13
$\begingroup$

Mathematically, mixed-integer programs (MIPs) are non-convex, for the very reason you stated: the set $x \in \{0,1\}$ is inherently non-convex. In fact, for a convex optimization problem (e.g. linear programming), you can find the solution in polynomial time using interior-point methods.

The reason the optimization community is going against the pure "mathematical" grain lies in the way that MIPs are solved: to find the best combination of binary variables, the problem is relaxed, e.g. $x\in \{0,1\} \rightarrow x \in [0,1]$. In other words, the problem is "made" continuous. If then the objective function and constraints are convex, this relaxed version of the problem is also convex and can be solved in polynomial time. This allows e.g. branch-and-bound algorithms to be computationally sensible, as they have to solve these subproblems many, many times to solve a MIP.

However, MIPs are, in general, NP-hard, precisely because they are non-convex.

$\endgroup$
2
  • 1
    $\begingroup$ The interior point methods may iterate in polynomial time, but that doesn't include finding an interior point to start from. $\endgroup$
    – Ben Voigt
    Commented Sep 21, 2019 at 17:53
  • $\begingroup$ True. In practice there are probably a lot of heuristics to do this quickly, but what is the theoretical worst case completely for this? $\endgroup$
    – Richard
    Commented Sep 21, 2019 at 19:04
3
$\begingroup$

The terminology here is a bit ambiguous. I've heard the term "convex MINLP" being used in two different ways:

  1. As others said, a problem where the continuous relaxation of the integer variables results in a convex problem, and
  2. An MINLP with a linear integer part and a convex continuous part (which is a subset of the previous definition). This is important for certain techniques, e.g. generalised Benders decomposition.
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.