We have an application and at some point we need to solve a linear programming problem that looks like this:
$$ \min\ w_{1,2} + w_{3,4} + w_{5,6}\\ x_i - x_j \leq c_{ij},\ \forall\ (i,j) \in C\\ x_1 - x_2 \leq w_{1,2}\\ x_3 - x_4 \leq w_{3,4}\\ x_5 - x_6 \leq w_{5,6} $$
where $x_i, x_j$ and $w_{1,2}, w_{3,4}, w_{5,6}$ are variables of $\mathbb{R}$ and $c_{ij} \in \mathbb{R}$ are constants. Set $C$ is the set of difference constraints for which the RHS is a constant. We know that pairs $(1,2),(3,4),(5,6) \notin C$.
Obviously this can be solved with any linear programming tool out there. And because of this, we know this problem is solvable in polynomial time. Unfortunately, most LP solvers are very slow for our purposes so we are looking for some other technique that could exploit this structure somehow, if one exists.
What we know: It is well known that
$$ x_i - x_j \leq c_{ij},\ \forall\ (i,j) \in C$$
can be solved using shortest path algorithms by creating a distance graph from these constraints and running, for example, Bellman-Ford or Floyd-Warshall algorithms. If our objective function is only
$$ \min\ w_1$$
it is possible to solve the problem with a trivial binary search. However, when there are three values which interplay with each other this is not straightforward (we believe).
Question: Is there any known algorithm or technique that can solve this problem and which is not a Linear Programming algorithm (e.g., Simplex, Ellipsoid, etc.)? It would be helpful just to point us into some direction because so far we have not found anything remotely close that can help. Additionally, is there some special cases from this system which may have a known algorithm to be solved (say, if all $c_{ij} \geq 0$ or something)?
Counter example: Here is a counter example to the approach proposed in the answer https://cstheory.stackexchange.com/a/52165 (now deleted). It refers to the following system:
$$ \min\ w_{1,2} + w_{3,4} + w_{5,6}\\ x_2 - x_5 \leq -5\\ x_2 - x_7 \leq 5\\ x_5 - x_1 \leq -5\\ x_4 - x_6 \leq -5\\ x_6 - x_3 \leq -5\\ x_6 - x_5 \leq -21\\ x_7 - x_3 \leq 0\\ x_7 - x_5 \leq -15\\ x_1 - x_2 \leq w_{1,2}\\ x_3 - x_4 \leq w_{3,4}\\ w_{5,6} = 0,\ \text{(to simplify)} $$
If we construct the proposed graph, we have the following:
Computing the shortest paths with Floyd-Warshall, we have: $$ d_{2,1} = -15\\ d_{4,3} = -10 $$
which would imply a solution of value 25. However, if we check the system replacing $w_{1,2} = 15$ and $w_{3,4}=10$ we will notice that this creates an infeasible system (the graph has a negative cycle). Indeed, the optimal solution is 26, created with $w_{1,2}=15$ and $w_{3,4}=11$. This is caused due to the interplay between the constraints $(1,2)$ and $(3,4)$ with the others in our system.
The current proposed solution is a valid lower bound but it is not guaranteed to produce the optimal solution.
We have tried using off-the-shelf LP solvers, including CPLEX, Gurobi, and GLPK, but are hoping for something faster. We are also hoping for something that doesn't rely on expensive commercial software, so a dedicated algorithm for this class of problem would be very helpful.