@@ -514,10 +514,10 @@ void HighsLp::deleteRows(const HighsIndexCollection& index_collection) {
514
514
515
515
void HighsLpStats::clear () {
516
516
valid = false ;
517
- model = " Not set" ;// "";
518
- num_col = -kHighsIInf ;// 0;
519
- num_row = -kHighsIInf ;// 0;
520
- num_nz = -kHighsIInf ;// 0;
517
+ model = " Not set" ; // "";
518
+ num_col = -kHighsIInf ; // 0;
519
+ num_row = -kHighsIInf ; // 0;
520
+ num_nz = -kHighsIInf ; // 0;
521
521
relative_max_cost_entry = -kHighsInf ; // 0;
522
522
relative_num_equal_cost = -kHighsInf ; // 0;
523
523
relative_num_inf_upper = -kHighsInf ; // 0;
@@ -533,7 +533,7 @@ void HighsLpStats::clear() {
533
533
}
534
534
535
535
void HighsLpStats::report (FILE* file, std::string message,
536
- const HighsInt style) {
536
+ const HighsInt style) {
537
537
if (style == HighsLpStatsReportPretty) {
538
538
fprintf (file, " \n LP stats\n " );
539
539
if (message == " " ) {
@@ -547,49 +547,46 @@ void HighsLpStats::report(FILE* file, std::string message,
547
547
fprintf (file, " Number of rows = %d\n " , num_row);
548
548
fprintf (file, " Number of entries = %d\n " , num_nz);
549
549
fprintf (file, " Relative maximum cost_entry = %g\n " ,
550
- relative_max_cost_entry);
550
+ relative_max_cost_entry);
551
551
fprintf (file, " Relative number of identical costs = %g\n " ,
552
- relative_num_equal_cost);
552
+ relative_num_equal_cost);
553
553
fprintf (file, " Relative number of infinite column upper bounds = %g\n " ,
554
- relative_num_inf_upper);
554
+ relative_num_inf_upper);
555
555
fprintf (file, " Relative number of equations = %g\n " ,
556
- relative_num_equations);
556
+ relative_num_equations);
557
557
fprintf (file, " Relative maximum rhs entry = %g\n " ,
558
- relative_max_rhs_entry);
558
+ relative_max_rhs_entry);
559
559
fprintf (file, " Relative number of identical rhs entries = %g\n " ,
560
- relative_num_equal_rhs);
560
+ relative_num_equal_rhs);
561
561
fprintf (file, " Constraint matrix stats\n " );
562
562
fprintf (file, " Density = %g\n " ,
563
- a_matrix_density);
563
+ a_matrix_density);
564
564
fprintf (file, " Nonzeros per column = %g\n " ,
565
- a_matrix_nz_per_col);
565
+ a_matrix_nz_per_col);
566
566
fprintf (file, " Nonzeros per row = %g\n " ,
567
- a_matrix_nz_per_row);
567
+ a_matrix_nz_per_row);
568
568
fprintf (file, " Relative maximum entry = %g\n " ,
569
- relative_max_matrix_entry);
569
+ relative_max_matrix_entry);
570
570
fprintf (file, " Relative number of almost identical entries = %g\n " ,
571
- relative_num_equal_a_matrix_nz);
571
+ relative_num_equal_a_matrix_nz);
572
572
fprintf (file, " Relative number of dense rows = %g\n " ,
573
- relative_num_dense_row);
573
+ relative_num_dense_row);
574
574
} else if (style == HighsLpStatsReportCsvHeader) {
575
575
fprintf (file,
576
- " valid,model,col,row,nz,relative_max_cost_entry,relative_num_equal_cost,relative_num_inf_upper,relative_num_equations,relative_max_rhs_entry,relative_num_equal_rhs,a_matrix_density,a_matrix_nz_per_col,a_matrix_nz_per_row,relative_max_matrix_entry,relative_num_equal_a_matrix_nz,relative_num_dense_row" );
576
+ " valid,model,col,row,nz,relative_max_cost_entry,relative_num_equal_"
577
+ " cost,relative_num_inf_upper,relative_num_equations,relative_max_"
578
+ " rhs_entry,relative_num_equal_rhs,a_matrix_density,a_matrix_nz_per_"
579
+ " col,a_matrix_nz_per_row,relative_max_matrix_entry,relative_num_"
580
+ " equal_a_matrix_nz,relative_num_dense_row" );
577
581
} else if (style == HighsLpStatsReportCsvData) {
578
582
fprintf (file, " %d,%s,%d,%d,%d,%g,%g,%g,%g,%g,%g,%g,%g,%g,%g,%g,%g" ,
579
- int (this ->valid ), this ->model .c_str (),
580
- int (this ->num_col ), int (this ->num_row ), int (this ->num_nz ),
581
- relative_max_cost_entry,
582
- relative_num_equal_cost,
583
- relative_num_inf_upper,
584
- relative_num_equations,
585
- relative_max_rhs_entry,
586
- relative_num_equal_rhs,
587
- a_matrix_density,
588
- a_matrix_nz_per_col,
589
- a_matrix_nz_per_row,
590
- relative_max_matrix_entry,
591
- relative_num_equal_a_matrix_nz,
592
- relative_num_dense_row);
583
+ int (this ->valid ), this ->model .c_str (), int (this ->num_col ),
584
+ int (this ->num_row ), int (this ->num_nz ), relative_max_cost_entry,
585
+ relative_num_equal_cost, relative_num_inf_upper,
586
+ relative_num_equations, relative_max_rhs_entry,
587
+ relative_num_equal_rhs, a_matrix_density, a_matrix_nz_per_col,
588
+ a_matrix_nz_per_row, relative_max_matrix_entry,
589
+ relative_num_equal_a_matrix_nz, relative_num_dense_row);
593
590
} else {
594
591
fprintf (file, " Unknown LP stats report style of %d\n " , int (style));
595
592
assert (123 == 456 );
@@ -747,7 +744,7 @@ void HighsLp::stats() {
747
744
if (row_count[iRow] >= dense_row_count) num_dense_row++;
748
745
749
746
this ->stats_ .relative_num_dense_row =
750
- this ->num_row_ > 0 ? (1.0 * num_dense_row) / this ->num_row_ : 0 ;
747
+ this ->num_row_ > 0 ? (1.0 * num_dense_row) / this ->num_row_ : 0 ;
751
748
this ->stats_ .valid = true ;
752
749
}
753
750
0 commit comments