Questions tagged [binary-programming]

An optimization problem in which the decision variables are binary.

Binary programming problem is a mathematical optimization or feasibility program in which some or all of the variables are restricted to be the binary integers zero and one.

Binary problems may be defined as the problem of maximizing or minimizing a linear function subject to both linear, integer, and binary constraints. The constraints may be equalities or inequalities.

Binary programs are problems that can be expressed in canonical form as

$$\max\quad c^\top x$$ $$\text{s.t.}\quad Ax\le b$$ $$x\ge0$$ $$x\in\{0,1\}$$

where $x$ represents the vector of variables (to be determined), $c$ and $b$ are vectors of (known) coefficients, $A$ is a (known) matrix of coefficients, $(⋅)^⊤$ is the matrix transpose, and $\{0,1\}$ is the set of whole binary integers zero and one.

The expression to be maximized or minimized is called the objective function ($c^⊤x$ in this case).

The inequalities $Ax \le b$ and $x \ge 0$ are the constraints which specify a convex polytope over which the objective function is to be optimized.

The inequality $x \ge 0$ is called non-negativity constraints and are often found in linear programming problems. The $x\in\{0,1\}$ constraint limits the to be determined vector variables $x$ to be the binary integers zero and one. The other inequality $Ax \le b$ is called the main constraints.

Integer programming is NP-hard. This is a special case, $0-1$ called integer linear programming, in which unknowns are binary, and only the restrictions must be satisfied, is one of Karp's $21$ NP-complete problems.

Reference:

235 questions
8
votes
2 answers

Linear programming problem with no objective function

I have a binary integer programming problem for which I only need a solution that meets all the constraints. I do not have an objective function that I am trying to minimize or maximize. I've been using lp_solve to solve this problem and it works…
7
votes
2 answers

Smallest non-zero eigenvalue of a (0,1) matrix

What's the smallest absolute value possible of a non-zero eigenvalue of an $n$ by $n$ square matrix whose entries are either $0$ or $1$ (all operations are over $\mathbb{R}$)?
7
votes
2 answers

Integer linear programming constraint for maximum number of consecutive ones in a binary sequence

Consider an integer programming problem with binary decision variables $x_1,\ldots,x_n \in \{0,1\}$. Im trying to model the constraint that enforces the maximum number of consecutive ones in successive sequence. That is, if the maximum number of…
6
votes
2 answers

number of binary solutions under linear restrictions

I am interested in the following counting problem: Consider $x_1,\dots,x_n\in\{0,1\}$. How many solutions exist under the restriction that $Ax=b$, where $A$ is a $m\times n$ matrix with binary entries and $b_i\in \{0,\dots,n\}$. Note that this…
6
votes
1 answer

Finding a symmetric adjacency matrix closest to a given (non-symmetric) adjacency matrix

I am trying to solve a problem on graphs, which I have reduced to the following optimization problem in matrix $X \in \{0,1\}^{n \times n}$ $$\begin{array}{ll} \text{minimize} & \| X - A \|_F^2\\ \text{subject to} & X 1_n = m 1_n\\ &…
5
votes
1 answer

Binary quadratic optimization problem

I am trying to solve the following binary quadratic program. $$ \min_{\Delta} \Delta^T H \Delta + c^T\Delta \\ \text{Such that:} ~~~\Delta\in \{0,1\}^n ~~\text{and}~~ \sum_{i=1}^n \Delta_i \leq \Gamma $$ where $H$ is not a positive semidefinite…
4
votes
3 answers

Is there an elegant general method for solving linear multiplicative system of equations in modulo 2? Here is an interesting example problem.

Here is the following problem: I have solved the system of equations with simply using brute force but I feel there must be a more elegant solution to problems of this nature given that the inputs can only be a zero or one: $$x_1x_3 + x_1x_4 +…
4
votes
2 answers

Finding short vectors in $\mbox{GF}(2)$

Suppose we have a system of $n$ linear equations in $m$ unknowns over $\mbox{GF}(2)$ (binary field) $$Av=b$$ Let $V = \mbox{GF}(2)^m$ be the vector space of possible assignments of the variables. For $v \in V$, let $|v|$ be the number of non-zero…
4
votes
1 answer

Maximizing a convex function with positive semidefinite constraint

Let $X=\{x_{ij}\} \in R^{n \times n}$ denote a variable matrix, and $C_k,k=1,\ldots,m$ denote subsets of $\{(i,j):i=1,\ldots,n, \quad j=1,\ldots,n\}$, while $w_{ij}$ and $w_k$ are constants. The following optimization problem seems not a standard…
4
votes
1 answer

Maximum of Rayleigh Quotient, singular and eigen values

I was reading through Convex Optimization lecture notes: https://people.eecs.berkeley.edu/~elghaoui/Teaching/EE227BT/LectureNotes_EE227BT.pdf On page 75, it describes the $\textbf{Largest Eigenvalue Problem}$ in which for any square matrix $A$ the…
4
votes
0 answers

Proof of binary solution of a linear program with specific structure

When solving instances of the following linear program (LP), I always get an integral (actually binary) solution. Is it just a coincidence or is it possible to prove that there always exists a binary solution? (Sorry if the definitions are hard to…
4
votes
1 answer

Equivalence of a binary linear program and its relaxation

We know that given a binary (0-1) linear program, we can find lower/upper bounds using its relaxation. But, there are instances (such as shortest path problem with non-negative cycles, bipartite matching, max-flow, etc) for which the feasible region…
4
votes
2 answers

Is there an effective algorithm to solve this binary integer linear programming?

I am an applied math undergraduate student. On my project, I come across an integer linear programming question as follow: Given $x_0,x_1,...,x_n$: $\forall$ i $\in$ [0,n], $x_i$ = 0 or 1 min Z = $\sum_{i=0}^n x_i $ with m numbers of constraints in…
4
votes
0 answers

Showing the integrality property for an Integer Linear Program

I am trying to figure out why solving a relaxed Integer Linear Program (ILP) always give an integral solution. The ILP can be summarized as: $$\min \sum_{t\in T} \sum_{s \in S} c_s k_s^t $$ subject to: $$\begin{align} \sum_{s \in S} k_s^t = 1 \quad…
3
votes
0 answers

Modeling propositional formulas in integer programming

Say I have an binary integer programming problem: \begin{equation*} \begin{aligned} & \underset{\mathbf{x,y}}{\text{minimize}} & & f_0(\mathbf{x,y}) \\ & \text{subject to} & & (\mathbf{x,y}) \in A \\ \end{aligned} \end{equation*} with…
1
2 3
15 16