@@ -19,7 +19,8 @@ HighsStatus solveLp(HighsLpSolverObject& solver_object, const string message) {
1919 HighsStatus return_status = HighsStatus::kOk ;
2020 HighsStatus call_status;
2121 HighsOptions& options = solver_object.options_ ;
22- HighsSubSolverCallTime& sub_solver_call_time = solver_object.sub_solver_call_time_ ;
22+ HighsSubSolverCallTime& sub_solver_call_time =
23+ solver_object.sub_solver_call_time_ ;
2324 // Reset unscaled model status and solution params - except for
2425 // iteration counts
2526 resetModelStatusAndHighsInfo (solver_object);
@@ -51,12 +52,11 @@ HighsStatus solveLp(HighsLpSolverObject& solver_object, const string message) {
5152 return_status = HighsStatus::kOk ;
5253 call_status = solveLpSimplex (solver_object);
5354 return_status = interpretCallStatus (options.log_options , call_status,
54- return_status, " solveLpSimplex" );
55+ return_status, " solveLpSimplex" );
5556 if (return_status == HighsStatus::kError ) return return_status;
56- if (!isSolutionRightSize (solver_object.lp_ ,
57- solver_object.solution_ )) {
57+ if (!isSolutionRightSize (solver_object.lp_ , solver_object.solution_ )) {
5858 highsLogUser (options.log_options , HighsLogType::kError ,
59- " Inconsistent solution returned from solver\n " );
59+ " Inconsistent solution returned from solver\n " );
6060 return_status = HighsStatus::kError ;
6161 }
6262 return return_status;
@@ -75,16 +75,18 @@ HighsStatus solveLp(HighsLpSolverObject& solver_object, const string message) {
7575 if (use_hipo) {
7676#ifdef HIPO
7777 // Use HIPO to solve the LP
78- sub_solver_call_time.num_call [kSubSolverHipo ]++;
79- sub_solver_call_time.run_time [kSubSolverHipo ] = -solver_object.timer_ .read ();
78+ sub_solver_call_time.num_call [kSubSolverHipo ]++;
79+ sub_solver_call_time.run_time [kSubSolverHipo ] =
80+ -solver_object.timer_ .read ();
8081 try {
8182 call_status = solveLpHipo (solver_object);
8283 } catch (const std::exception& exception) {
8384 highsLogDev (options.log_options , HighsLogType::kError ,
8485 " Exception %s in solveLpHipo\n " , exception.what ());
8586 call_status = HighsStatus::kError ;
8687 }
87- sub_solver_call_time.run_time [kSubSolverHipo ] += solver_object.timer_ .read ();
88+ sub_solver_call_time.run_time [kSubSolverHipo ] +=
89+ solver_object.timer_ .read ();
8890 return_status = interpretCallStatus (options.log_options , call_status,
8991 return_status, " solveLpHipo" );
9092#else
@@ -93,31 +95,35 @@ HighsStatus solveLp(HighsLpSolverObject& solver_object, const string message) {
9395 return HighsStatus::kError ;
9496#endif
9597 } else if (use_ipx) {
96- sub_solver_call_time.num_call [kSubSolverIpx ]++;
97- sub_solver_call_time.run_time [kSubSolverIpx ] = -solver_object.timer_ .read ();
98+ sub_solver_call_time.num_call [kSubSolverIpx ]++;
99+ sub_solver_call_time.run_time [kSubSolverIpx ] =
100+ -solver_object.timer_ .read ();
98101 try {
99102 call_status = solveLpIpx (solver_object);
100103 } catch (const std::exception& exception) {
101104 highsLogDev (options.log_options , HighsLogType::kError ,
102105 " Exception %s in solveLpIpx\n " , exception.what ());
103106 call_status = HighsStatus::kError ;
104107 }
105- sub_solver_call_time.run_time [kSubSolverIpx ] += solver_object.timer_ .read ();
108+ sub_solver_call_time.run_time [kSubSolverIpx ] +=
109+ solver_object.timer_ .read ();
106110 return_status = interpretCallStatus (options.log_options , call_status,
107111 return_status, " solveLpIpx" );
108112 }
109113 } else {
110114 // Use cuPDLP-C to solve the LP
111115 sub_solver_call_time.num_call [kSubSolverPdlp ]++;
112- sub_solver_call_time.run_time [kSubSolverPdlp ] = -solver_object.timer_ .read ();
116+ sub_solver_call_time.run_time [kSubSolverPdlp ] =
117+ -solver_object.timer_ .read ();
113118 try {
114119 call_status = solveLpCupdlp (solver_object);
115120 } catch (const std::exception& exception) {
116121 highsLogDev (options.log_options , HighsLogType::kError ,
117122 " Exception %s in solveLpCupdlp\n " , exception.what ());
118123 call_status = HighsStatus::kError ;
119124 }
120- sub_solver_call_time.run_time [kSubSolverPdlp ] += solver_object.timer_ .read ();
125+ sub_solver_call_time.run_time [kSubSolverPdlp ] +=
126+ solver_object.timer_ .read ();
121127 return_status = interpretCallStatus (options.log_options , call_status,
122128 return_status, " solveLpCupdlp" );
123129 }
@@ -163,7 +169,7 @@ HighsStatus solveLp(HighsLpSolverObject& solver_object, const string message) {
163169 highsLogUser (options.log_options , HighsLogType::kWarning ,
164170 " IPM solution is imprecise, so clean up with simplex\n " );
165171 return_status = simplexSolve ();
166- if (return_status == HighsStatus::kError ) return return_status;
172+ if (return_status == HighsStatus::kError ) return return_status;
167173 } // options.run_crossover == kHighsOnString
168174 // clang-format off
169175 } // unwelcome_ipx_status
@@ -601,12 +607,11 @@ bool useHipo(const HighsOptions& options,
601607 if (specific_solver_option_value == kIpxString ) {
602608 use_hipo = false ;
603609 } else if (specific_solver_option_value == kIpmString ||
604- specific_solver_option_value == kHipoString ||
605- force_ipm) {
610+ specific_solver_option_value == kHipoString || force_ipm) {
606611#ifdef HIPO
607- use_hipo = true ;
612+ use_hipo = true ;
608613#else
609- use_hipo = false ;
614+ use_hipo = false ;
610615#endif
611616 }
612617 if (options.run_centring ) use_hipo = false ;
0 commit comments