0

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.

4

1 回答 1

0

看起来ILinearSolverSensitivityReport.GetDualValue返回影子价格。

希望这可以帮助其他人通过 dotPeek 进行愉快的追逐。:-)

于 2014-11-22T21:29:03.190 回答