I have the following optimization problem which is an MILP. I can solve it with an MILP solver.
\begin{alignat}{1}\max_{x_n,t}\,&\quad t\quad\\\text{s.t.}&\quad\sum_{n=1}^{N} x_n \,&= M\\&\quad\qquad\!s_c&\ge t d_c\end{alignat}
where
- $s_c=\sum\limits_{n=1}^{N} B_{n,c}x_{n}$
$B$ is a given matrix of size $N\times C$ with elements $\ge 0$
$d$ is a known vector of the positive numbers of size $1\times C$
$M$ is a known parameter
$x_n$ is an optimization variable (integer variable, $x_n\ge 0$, $x_n\in\{0,1,2,3,\cdots,M\}$)
$t$ is also an optimization variable (integer/continuous)
I want to transform this into an LP, not MILP. Let us say I do not have a MILP solver.
Therefore, I am looking for a heuristic solution to the problem above.
I have tried to use the solution suggested by @prubin for the problem at: Is there a heuristic approach to the MILP problem?, but this is not working. It is choosing the same row of $B$ at every iteration.