Discussion about this post

User's avatar
Matt Hoffman's avatar

"The nonzero indices in this vector correspond to endpoints in the shortest path."

I'm not sure this is true?

Suppose we have four nodes (labeled 1, 2, 3, 4) and four edges arranged in a diamond, so that the edges are

1 <=> 2, length 1

2 <=> 4, length 1

1 <=> 3, length 1

3 <=> 4, length 2.

We want to go from 1 to 4, and the shortest path is clearly 1 => 2 => 4, with length 2.

I think a valid solution for x is

x1 = 0

x2 = 1

x3 = 1

x4 = 2

But node 3 is not on the shortest path, even though x3 > 0. In fact, I don't see any way to set x3 = 0 without violating a constraint.

Expand full comment
2 more comments...

No posts