The following problem is defined with binary variables $a_{i1}, a_{i2}, a_{i3}, k_1$ and $k_2$. Is it possible to avoid binary variables and to only work with continuous variables? How would we ought to adjust the constraints then?
Variables
$a_{i1}, a_{i2}, a_{i3} \in \{0, 1\}$ and initialized to $0$,
$0 \le x_1, x_2, x_3 \lt 1$,
$b_1, b_2 \in [0, 1]$
$k_{i1}, k_{i2} \in \{0, 1\}$ and initialized to $0$,
$z_i$
Constants
$M = 10$.
Objective function
$$\min_{x_1, x_2, x_3, b_1, b_2} f(D_i, P_i, z_i)$$
Constraints
- $z_i = a_{i1}x_1 + a_{i2}x_2 +a_{i3}x_3$
- $b_1-c_i \le a_{i1}M$
- $c_i -b_2 \le a_{i3}M$
- $a_{i1}+a_{i2}+a_{i3} = 1$
- $c_i-b_1 \le Mk_{i1}$
- $b_2 - c_i \le Mk_{i2}$
- $k_{i1}+ k_{i2} - 1 \le a_{i2}$
- $\sum_{i=1}^n D_iz_i = \beta \sum_{i=1}^n D_i$