Skip to main content

Questions tagged [indicator-constraints]

For questions on constraints controlled by binary variables.

8 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3 votes
1 answer
103 views

Modelling Question

Let $W^C_t$, $W_t$ be binary variables and $p$ an integer variable with $1 \leq p \leq 3$ The variables are related through the following equation: $$W^C_t = \sum_{\theta=1}^{p} W_{t-\theta}$$ I can ...
Clement's user avatar
  • 2,260
2 votes
0 answers
125 views

Indicator function for integer variable with inequality constraint

I have $n$ integer variables $\vec{x}$ with the following integer programming problem. $$ COST = \sum^{n-1}_{i = 0} a_i x_i + \sum^{n-1}_{j=0} b_j I(x_j > 0) $$ Here, $a_i, b_j \in \mathbb{R}_+$ ...
Omar Shehab's user avatar
1 vote
0 answers
94 views

Linearization of Conditional Constraints for MIP using Cplex

I'm currently working on a mixed-integer programming (MIP) problem and I'm trying to implement a set of conditional constraints in CPlex. These constraints involve decision variables that are indexed ...
B.Kim's user avatar
  • 11
1 vote
0 answers
44 views

The rule of the slack variable in an indicator constraint

In some cases I have seen, the indicator constraint can be written as indcons(expression, binary_var). Then it is interpreted as follows: $$LHS - slack (\leq = \geq)...
A.Omidi's user avatar
  • 9,258
1 vote
0 answers
142 views

Multiple conditions in indicator constraint of Gurobi

I'm working on a vehicle routing problem, in which a vehicle need to pick up amounts of things in some nodes. I'm trying to solve it by Gurobi optimizer. Except for meeting the time windows of each ...
kaiyu wei's user avatar
  • 133
0 votes
0 answers
44 views

Disjunctive bidirectional implications between two pairs of Non-negative Continuous or Integer Variables

Say for instance, I have four non-negative continuous or integer variables, $x$, $y$, $a$, $b$. I would like to ask about the constraints representing the following implications, whereby at any one ...
Mike's user avatar
  • 793
0 votes
0 answers
68 views

Why are these two constraint equations not equivalent?

I've made a CP Model of an hospital in ILOG CPLEX and I want to test the performance of the CPLEX version of it. In my CP model, I have the following constraint : ...
Marcocorico's user avatar
-1 votes
1 answer
318 views

[OR-Tools][CP-SAT] Implement an indicator function in a constraint

Good morning ! I would like to implement this constraint using CP-SAT (see image below). x_i,j is a boolean variable, a and b are given. The problem is that I don't know how to implement the ...
Arthursbr's user avatar