Skip to main content

Questions tagged [binary-programming]

An optimization problem in which the decision variables are binary.

Filter by
Sorted by
Tagged with
1 vote
0 answers
50 views

I am considering the following regularized binary quadratic optimization problem with a sparsity penalty $$ \min_{{\bf x} \in \{\pm 1\}^n} \; {\bf x}^\top {\bf C} \, {\bf x} + \| {\bf A} {\bf x} - {\...
silver's user avatar
  • 93
0 votes
1 answer
55 views

I'm struggling to model this constraint for a problem: $$x_C^4 = 1 \implies (x_A^4 + x_B^4 \geq 1 \land x_A^1 + x_B^1 = 0) \;\lor\; x_A^2x_B^3 = 1 \;\lor\;x_A^3x_B^2=1.$$ where all variables are ...
ten_to_tenth's user avatar
  • 2,129
0 votes
0 answers
47 views

I want to find all solutions $\mathbf{x}$ of the system of linear diophantine equations $$ \mathbf{A} \mathbf{x} = \mathbf{b} $$ where $\mathbf{A}$ is a $m \times n$ matrix such that $A_{ij} \in \...
Raven's user avatar
  • 261
1 vote
1 answer
126 views

Crossposted at Operations Research SE I am attempting to optimize the operation of an electrical system that produces some amount of thermal power $P_t$ and keeps a temperature $x_t$ within a certain ...
heyjude123's user avatar
0 votes
0 answers
32 views

Given a binary coefficient matrix $A \in \{0,1\}^{m\times n}$, $n>m$, and a real-valued vector $b\in \mathbb{R}_+^m$, the corresponding linear equation system is underdetermined and does not admit ...
Marc Vaisband's user avatar
1 vote
1 answer
199 views

So, I have a (practical) optimization problem in which (somewhat large, say $1500$) $N$ binary variables need to be found. $ \min_{a \in \{0,1\} ^N} \sum_i \left(\frac{a_i w_i}{\sum_j a_j w_j}\right)^...
Řídící's user avatar
  • 3,288
4 votes
3 answers
431 views

Here is the following problem: I have solved the system of equations with simply using brute force but I feel there must be a ...
Eliot Olson's user avatar
1 vote
0 answers
65 views

I've been working with high-dimensional binary tensors (e.g., tensors with entries that are only 0s and 1s) and I'm looking for an efficient way to decompose them into rank-1 components. The tensors I'...
Dank Shady's user avatar
2 votes
1 answer
154 views

I need to solve a rather specific problem related to binary matrices. The task is to count the number of specific "combinations", where "combination" means the following: this is ...
Disciple's user avatar
  • 371
1 vote
1 answer
74 views

earlier I stumbled upon a question about finding a vector x that minimises $\|Ax-b\|$ where A is a known matrix and b is a known vector. However, I was wondering whether this can be achieved under the ...
BunnyPancake's user avatar
1 vote
1 answer
105 views

I saw a conversion from a binary integer linear program (BLP) to a quadratic program (QP) in this link https://qr.ae/psu9Wr. I will repeat the problem below. The original problem is \begin{align} \...
Shengzhi Lai's user avatar
0 votes
1 answer
115 views

I am searching for a general conversion from 0-1 integer linear programs to (integer) quadratic programs. And I see this answer using a general example. https://qr.ae/psu9Wr. I checked the optimality ...
Shengzhi Lai's user avatar
2 votes
2 answers
49 views

I'm trying to understand this case study: https://github.com/DorisRipley/Art-Exhibition-Optimization-A-BIP-Modeling-Approach/blob/main/Art%20Exhibition%20Optimization.pdf and I'm having trouble with ...
Sergio Morales's user avatar
1 vote
1 answer
117 views

Let's consider a competition with $n$ questions. Each question has a price $p_i$ and a score $v_i$. To advance to the next round of the competition, we need to accumulate a minimum score of $D$. We ...
occasional's user avatar
0 votes
0 answers
180 views

I have found a representation of the graph coloring problem as an ILP. Given a graph $G = (V, E)$. Let $C$ represent the set of colors. Let $w_c$ be a binary variable that is $1$ if the color $c$ is ...
mNugget's user avatar
  • 523
-1 votes
1 answer
127 views

I am looking for a closed form solution $x^*$, binary vector, to $$\arg\min_{x}(\|M x + b\|_2),$$ restricted to $x \in \{ 0,1 \}^n$. Here $b \in \mathbb{R}^{m}, M \in \mathbb{R}^{m \times n}$ are ...
Yeb02's user avatar
  • 11
0 votes
1 answer
62 views

I am an electrical engineer who is working in computer network and I need to model my delay with respect to a binary variable $x$ as folow $\left\{ {\begin{array}{*{20}{c}} {x = 1 \Rightarrow \left( {...
Tuong Nguyen Minh's user avatar
2 votes
1 answer
145 views

I have 8192 bits, denoted $b_0, b_1, ..., b_{8191}$. The bits are subject to some XOR constraints (e.g. $b_0 \oplus b_3 \oplus b_{42} \oplus \cdots \oplus b_{8191} = 1$). The objective function to be ...
nalzok's user avatar
  • 866
1 vote
1 answer
110 views

I want to formulate the following problem in an integer linear programming problem: We have $n$ elements $m_1,\dots, m_n$ elements with $m_i = (m_i^1, \dots, m_i^p) \in \mathbb{R}_{\geq 0}^p$ for all $...
Ferdi 17's user avatar
0 votes
1 answer
87 views

I have an integer linear programming problem where i want to maximize over $\{0,1\}^n$, so i have the problem $$\max_{x \in \mathbb{R}^n}c^Tx, \text{ subject to } x_i \in \{0,1\} \text{ for all } i ...
Ferdi 17's user avatar
0 votes
1 answer
86 views

I am trying to solve the number of binary solutions to a system of linear equations, the same as in this question: number of binary solutions under linear restrictions. Shortly: Consider $ x1,…,x_n ∈ ...
Ilmard's user avatar
  • 3
2 votes
1 answer
209 views

Given a weighted graph with $n$ vertices and weights $w_{ij}\geq 0$, the max-cut problem is equivalent to $$ \max_{x \in \mathbb{R}^n} \sum_{i,j} w_{ij} (1-x_i x_j) \quad \mbox{s.t.} \quad x_i \in \{-...
Thomas's user avatar
  • 209
2 votes
2 answers
219 views

I am an electrical engineer and currently I have to deal with an optimization problem with a very specific requirement: $\begin{array}{*{20}{c}} {\mathop {Min}\limits_x }&{f\left( x \right)}\\ {{...
Tuong Nguyen Minh's user avatar
1 vote
1 answer
66 views

I have a set of $n$ activities $a_i \in A$. Each activity $a_i$ has a set of child activities $C_i \subset A$, an associated cost $k_i$, and a start time $t_i$. In the BILP model I use, I consider a ...
E-O's user avatar
  • 101
1 vote
1 answer
65 views

Problem statement Let $\beta \in \{0, 1\}$ for brevity. A set of $K$ numbers $M_k$, represented as individual bits $B_{ik} \in β $, must be distributed to a set of $ J \le K$ pairs $F_j = (c_{ij} \in ...
Astrinus's user avatar
  • 131
2 votes
1 answer
117 views

I'd like to solve the following optimization problem. Given $\mathbf a, \mathbf b \in (0, \infty)^n$, find $\mathbf x \in \{0, 1\}^n$ which maximizes $$ f (\mathbf x) = \frac{\left( \sum\limits_{i=1}^...
Jon Warneke's user avatar
  • 5,027
0 votes
2 answers
97 views

I need your help. My decision variable $b_{fds}$ indicates whether a fireman $f$ works shift $s$ on day $d$. I need two constraints: a) No more than 5 consecutive working days b) At least 2 ...
HulliSeb's user avatar
0 votes
1 answer
241 views

I'm learning about linear optimization problems using Pyomo. At this time I'm looking to practice and ended up getting stuck in a constraint that contains the weighted average formula. Using this ...
Yuri Santos's user avatar
0 votes
3 answers
98 views

I am currently working on my modeling skill and I wanted to try to find a linear constraint, that models a binary variable in a specific way. The new binary variable $\gamma_i$ should take the value $...
HulliSeb's user avatar
0 votes
1 answer
51 views

I have three binary variables x, y, and z each indicating an increase, decrease, and stable values of another variable P. Now the issue is I want to formulate a constraint that makes sure that a y can ...
Jubeyer Rahman's user avatar
0 votes
2 answers
165 views

I have the following problem. I am currently modeling shift schedules. There is the variable $x_{itk}$ which tells whether the cashier $i$ completes the shift $k$ on day $t$. Now I want to model the ...
manofthousandnames's user avatar
0 votes
1 answer
56 views

I have the following problem. I would like to model the following relationship. I have three binary variables $x_1$, $x_2$ and $x_3$. These become either 0 or 1. I need a constraint for a mathemstical ...
manofthousandnames's user avatar
0 votes
1 answer
147 views

How do I prove that $$z_1 + x_{12} + x_{22} + x_{13} + x_{23} + z_4 \geq 2$$ is a valid inequality for my constraints: \begin{align} x_{11} + x_{12} + x_{13} &\geq 1 \tag1\label1\\ x_{12} + x_{13} ...
Jonathan Kerr's user avatar
1 vote
2 answers
177 views

There are some number blocks given as follows: The aim is placing these blocks in such a way that the resulting $4\times 4$ matrix is symmetrical. Blocks cannot be rotated, they must be used as given....
Oytunxxx's user avatar
3 votes
1 answer
194 views

I am a bit confused on whether a binary (5,3,4)-code exists. As far as I am aware, this code exists if and only if a binary (4,3,3)-code exists according to Theorem 2.7 in Raymond Hill's book "A ...
am567's user avatar
  • 365
1 vote
3 answers
123 views

I have a directed acyclic graph, and two binary decision variables: $a_{ij}$, which is equal to one when the corresponding edge between the nodes $i$ and $j$ of the graph is selected, and zero ...
E-O's user avatar
  • 101
0 votes
3 answers
154 views

I am trying to formulate the following linear programming problem. My inputs are the following: A set of $N$ tables $\Pi_1, \dots, \Pi_N$ A cost budget $G$ I have the following decision variables: $...
dkoutsou's user avatar
  • 355
0 votes
1 answer
168 views

How would I linearize the following expression $$ z = (1-x)y $$ where $x,y \in \{0,1\}$? Ideally, I would want to formulate this as a system of linear inequalities.
TurboChad's user avatar
1 vote
1 answer
118 views

I think it's rather a simple question. I'm trying to construct a reduction from graph problem to ILP. When I have variables $x_1, x_2, \dots ,x_n \in \{0, 1\}$ for every vertex, can I create ...
F.Hand's user avatar
  • 37
0 votes
1 answer
100 views

I'm trying to solve an optimization problem by creating an optimization model (which I shall solve using CBC solver) and I need to linearize it. Please help me to reformulate it : Given Data : A1, A2, ...
maverick's user avatar
0 votes
1 answer
190 views

I have a linear program and I can't formulate the objective function and constraints. For a graph $G = (V, E)$ we may select a set $S$ of vertices of $V$. Each vertex carries a cost $c_v > 0$ if it ...
Mark Martin's user avatar
1 vote
1 answer
197 views

Let $q=q(x_1,...,x_n)$ be a quadratic polynomial. I want to solve the following optimization problem: $$\min_{Ax = b, x\in \{0,1\}^n}(q)$$ where $A$ is totally unimodular. Is there some neat algorithm ...
Kandinskij's user avatar
  • 3,509
1 vote
0 answers
41 views

I'm trying to minimize a cost function that is made up of dependent binary variables and continuous variables. For example the cost function could look like: $F(x_{0}, x_{1}, x_{2}, r_{0}, r_{1}) = 0....
lex2763's user avatar
  • 111
1 vote
1 answer
553 views

I've seen the McCormick envelopes applied many times to the product of two continuous variables, but I can't seem to find when both of them are binaries. Also, I applied the restrictions as described ...
Rogério Rocha's user avatar
2 votes
0 answers
450 views

I have an ILP (all variables are binary) and on several instances I’ve observed that its optimal value coincides with the LP relaxation optimal value. The LP relaxation is not integral for fractional ...
esv's user avatar
  • 31
0 votes
1 answer
50 views

Let $a_i>0, b_i>0, \forall i $. The optimizing problem is $$\max_{x_i}(\frac{\sum_{i=1}^{n}x_i a_i b_i}{\sum_{i=1}^{n}x_i b_i})$$ with constrains: \begin{align} x_i \in \{0,1\}\\ \sum_{i=1}^{n}...
WilliamRyan's user avatar
3 votes
1 answer
134 views

I have a minimisation problem in the following form $$\textrm{min}: x^TAx$$ constrained by $\sum x_i=N$ where $x$ is a vector containing only 1's and 0's, and $A$ is a square matrix of real numbers. ...
freshmathhead's user avatar
3 votes
1 answer
269 views

I am studying a mixed integer program in the form $$ \textrm{min}: \sum A x$$ constrained by $\sum x_i = N$ where $x$ is a vector containing only 1's and 0's, N is an integer, and $A$ is a square ...
testman7's user avatar
2 votes
2 answers
117 views

I've been working on a mixed integer linear program for quite a while now and I need to set up constraints involving binary variables. I just can't find the correct answer to the following problem. ...
scotch01's user avatar
3 votes
2 answers
1k views

I have an LP problem (linear objective with eq and ineq constraints) in binary variables. Except for the objective, all the coefficients are integer, mostly in {-1,0,1}. Maybe the objective coeff ...
Zohar Levi's user avatar

1
2 3 4 5