| 1389 | } |
| 1390 | |
| 1391 | void HighsSimplexAnalysis::reportDensity(const bool header) { |
| 1392 | assert(analyse_simplex_runtime_data); |
| 1393 | const bool rp_steepest_edge = |
| 1394 | edge_weight_mode == EdgeWeightMode::kSteepestEdge; |
| 1395 | if (header) { |
| 1396 | *analysis_log << highsFormatToString(" C_Aq R_Ep R_Ap"); |
| 1397 | if (rp_steepest_edge) { |
| 1398 | *analysis_log << highsFormatToString(" S_Ed"); |
| 1399 | } else { |
| 1400 | *analysis_log << highsFormatToString(" "); |
| 1401 | } |
| 1402 | } else { |
| 1403 | reportOneDensity(col_aq_density); |
| 1404 | reportOneDensity(row_ep_density); |
| 1405 | reportOneDensity(row_ap_density); |
| 1406 | double use_steepest_edge_density; |
| 1407 | if (rp_steepest_edge) { |
| 1408 | if (simplex_strategy == kSimplexStrategyPrimal) { |
| 1409 | use_steepest_edge_density = col_steepest_edge_density; |
| 1410 | } else { |
| 1411 | use_steepest_edge_density = row_DSE_density; |
| 1412 | } |
| 1413 | } else { |
| 1414 | use_steepest_edge_density = 0; |
| 1415 | } |
| 1416 | reportOneDensity(use_steepest_edge_density); |
| 1417 | } |
| 1418 | } |
| 1419 | |
| 1420 | void HighsSimplexAnalysis::reportInvert(const bool header) { |
| 1421 | if (header) return; |
nothing calls this directly
no test coverage detected