| 308 | } |
| 309 | |
| 310 | void CostFunctionManager::computeReducedCost( unsigned nonBasic ) |
| 311 | { |
| 312 | unsigned nonBasicIndex = _tableau->nonBasicIndexToVariable( nonBasic ); |
| 313 | _ANColumn = _tableau->getSparseAColumn( nonBasicIndex ); |
| 314 | |
| 315 | for ( const auto &entry : *_ANColumn ) |
| 316 | _costFunction[nonBasic] -= ( _multipliers[entry._index] * entry._value ); |
| 317 | } |
| 318 | |
| 319 | void CostFunctionManager::dumpCostFunction() const |
| 320 | { |
nothing calls this directly
no test coverage detected