| 254 | } |
| 255 | |
| 256 | void setSolutionStatus(HighsInfo& highs_info) { |
| 257 | if (highs_info.num_primal_infeasibilities < 0) { |
| 258 | highs_info.primal_solution_status = kSolutionStatusNone; |
| 259 | } else if (highs_info.num_primal_infeasibilities == 0) { |
| 260 | highs_info.primal_solution_status = kSolutionStatusFeasible; |
| 261 | } else { |
| 262 | highs_info.primal_solution_status = kSolutionStatusInfeasible; |
| 263 | } |
| 264 | if (highs_info.num_dual_infeasibilities < 0) { |
| 265 | highs_info.dual_solution_status = kSolutionStatusNone; |
| 266 | } else if (highs_info.num_dual_infeasibilities == 0) { |
| 267 | highs_info.dual_solution_status = kSolutionStatusFeasible; |
| 268 | } else { |
| 269 | highs_info.dual_solution_status = kSolutionStatusInfeasible; |
| 270 | } |
| 271 | } |
| 272 | // SCALING |
| 273 | |
| 274 | void scaleSimplexCost(const HighsOptions& options, HighsLp& lp, |
no outgoing calls
no test coverage detected