Skip to main content

Questions tagged [binary-variable]

For questions that involve variables than can only take on one of two values, usually 0 or 1.

Filter by
Sorted by
Tagged with
5 votes
1 answer
276 views

On a square grid, a loop passes through each cell exactly once. For certain rows and columns, the maximum number of consecutive cells traversed by the path in that row or column is bounded by the tag ...
NormalFit's user avatar
  • 486
4 votes
0 answers
103 views

I am trying to solve the following integer linear program using lp_solve: (there is no objective, so this is just asking about feasibility) ...
A. Rex's user avatar
  • 141
1 vote
1 answer
77 views

I model a battery with several energy flows flowing in and out, for example PV to battery $P^\mathrm{pb}_t\in\mathbb{R}_+$ (unidirectional), Battery to heat pump $P^\mathrm{bh}_t\in\mathbb{R}_+$ (...
Andre's user avatar
  • 345
2 votes
1 answer
95 views

I'm using Docplex's Constraint Programming model with two 4-dimensional binary decision variables: ...
Bree's user avatar
  • 139
2 votes
1 answer
163 views

I had a conversation with a professor from a proof complexity background recently who brought up a way to solve (binary?) MILPs I have not heard of before. The professor mentioned that by introducing ...
worldsmithhelper's user avatar
0 votes
2 answers
105 views

I try to formulate constraints to check isolated nodes. For a node $i$ where $x_{ij}$ is a binary variable is equal to $1$ if it exists an arc $(i,j)$ for $i$ to $j$: if $\sum_{j \in N} x_{ij} = 0$ ...
MAYA's user avatar
  • 203
2 votes
1 answer
122 views

In MILP, is it possible to use constraint to count active binary nodes? Let $x_{ij}$ be binary decision variables. For $N = \{1,2,3,4\}$, a node $s$: if $x_{s1} =x_{s3}=x_{2s}=x_{3s} =1$ then the sum ...
MAYA's user avatar
  • 203
2 votes
1 answer
254 views

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 range. Given a cost vector $\mathbf{c} ...
heyjude123's user avatar
2 votes
1 answer
185 views

I've been trying to linearize this objective function for quite some time and I'm not sure if this is even in the right direction of not. $z$ is an auxiliary var to linearize the product of two binary ...
Statsnoob's user avatar
1 vote
1 answer
184 views

I want to build a simple model for hydropower scheduling using MIP. The topology is fairly straight-forward; there is one power station connected to one upstream reservoir. Downstream there is a river ...
JorgAar's user avatar
  • 13
0 votes
1 answer
105 views

I am a network engineer who is currently working in a network optimization porblem. Here I got a binary decision matrix that contain some binary decision variable $A = \left[ {\begin{array}{*{20}{c}} {...
Tuong Nguyen Minh's user avatar
2 votes
1 answer
154 views

I have the following constraint and would like to know if it can be modelled like this. $$\sum_{t\in T}\sum_{j=k}^{k+5}q_{itj}\geq 3\cdot\left( 1-\sum_{j=k}^{k+5}r_{ij} \right) \forall i\in I, k\geq ...
ornewbie's user avatar
3 votes
1 answer
303 views

I am an network engineer and currently I have to deal with an optimization problem that have set partition constraint with a very specific requirement: $\begin{array}{*{20}{c}} {\mathop {Min}\limits_x ...
Tuong Nguyen Minh's user avatar
0 votes
1 answer
191 views

I have a set of bit vectors $x_i$ of the exact same length, each with a distinct bit pattern. I have a target bit vector $t$ of the same length as the others, but with a distinct bit pattern. I want ...
taltman's user avatar
  • 101
3 votes
2 answers
246 views

I have a continuous variable $z, {-1 < z < 1},$ and a binary variable $w$. How do I write a conditional constraint which guarantees for $z < 0$, $w = 1$, and for $z \ge 0$, $w = 0$?
korbidietl's user avatar

15 30 50 per page
1
2 3 4 5
13