I have a problem of planning the distribution of products for a month. I have different unique products. A Mandate is provided for each product, and the Mandated quantity for each product is to be delivered during the month while respecting stock levels (cant deliver it all directly cause no stock available). Products are delivered through loading stations to vehicles. I need to minimize the number of vehicles used. I have developed the following model but for some reason variable $B$ seeks always to be positive, rendering the problem sometimes infeasible or giving erroneous results. Can anyone help me with catching the issue, any help is very much appreciated. Even if it is some reference to close problem in the literature.
Variables:
$x_{p,t,j}$ continuous variable representing the quantity of product $p$ to be delivered on day $t$ using station $j$
$S_{p,t}$ quantity of available stock of product $p$ at day $t$
$B_{p,t,j}$ boolean variable equal to 1 if product $p$ is scheduled to be delivered on day $t$ using station $j$
$Y_{t,j}$ boolean variable equal to 1 if station $j$ is open on day $t$
Objective function: $$ min \sum_p \sum_t \sum_j B_{p,t,j} $$ Minimize the number of times a product is delivered
Constraints:
$$ (1) \sum_t \sum_j x_{p,t,j} = Mandate_p, \forall p $$ $$ (2) S_{p,t} = S_{p,t-1} + Feed_{p,t} - \sum_j x_{p,t,j}, \forall p,t $$ $$ (3) Min_{p} \le S_{p,t} \le Max_{p}, \forall p, t $$ $$ (4)x_{p,t,j} \le M * B_{p,t,j}, \forall p,t,j $$ $$ (5) \sum_j B_{p,t,j} \le 1, \forall p,t $$ $$ (6) B_{p,t,j} \le Y_{t,j}, \forall p,t,j $$ $$ (7) \sum_p \gamma * x_{p,t,j} \le 24 * Y_{t,j}, \forall t,j $$ Constraint (1) is to assure Mandates are fulfilled for all products, constraint (2) is the stock level at time $t$, constraint (3) fixes the maximum and minimum allowable stock per product $p$, constraint (4) is a fixed-charge model that says that a product is delivered only if it is assigned to a station $j$, constraint (5) only one station is used for a product per day, constraint (6) a product $p$ is delivered at station $j$ if station $j$ is open at time $t$, constraint (7) is to model the time needed to charge multiple product which needs to be less than 24 hours, and it is allowed in case station $j$ is open. $\gamma$ is a constant representing speed.
IIS
to compute which constraints cause the infeasibility. $\endgroup$