Reporting shadow prices from SimplexSolver

66 views Asked by At

I'm using the SimplexSolver class directly to solve a linear program, with AddRow, AddVariable and SetCoefficient. This works quite well.

We need to come up with shadow prices now, and I don't see any way to access either the shadow prices or the simplex matrix.

If I set SimpleSolverParams.GetSensitivityReport to true, casting the return of SimplexSolver.GetReport to ILinearSolverSensitivityReport may be the key here. Checking it out.

1

There are 1 answers

0
jnm2 On BEST ANSWER

It looks like ILinearSolverSensitivityReport.GetDualValue returns the shadow price.

Hopefully this saves someone else a merry chase through dotPeek. :-)