@@ -88,12 +88,12 @@ double ComputeNonlinearity(const std::vector<double>& delta_primal,
8888void UpdateX (std::vector<double >& x_new, const std::vector<double >& x_current,
8989 const HighsLp& lp, const std::vector<double >& y_current,
9090 double eta, double omega,
91- FILE* pdlp_log_file ) {
91+ FILE* pdlp_log_file_ ) {
9292 std::vector<double > ATy_cache (lp.num_col_ );
9393 linalg::ATy (lp, y_current, ATy_cache);
9494 // print the norm of ATy_cache
9595 double aty_norm = linalg::vector_norm (ATy_cache);
96- pdlpAtyNormLog (pdlp_log_file , aty_norm);
96+ pdlpAtyNormLog (pdlp_log_file_ , aty_norm);
9797 for (HighsInt i = 0 ; i < lp.num_col_ ; i++) {
9898 double gradient = lp.col_cost_ [i] - ATy_cache[i];
9999 x_new[i] = linalg::project_box (x_current[i] - (eta / omega) * gradient,
@@ -142,8 +142,8 @@ void UpdateIteratesFixed(const HighsLp& lp, const PrimalDualParams& params,
142142 const std::vector<double >& x_current,
143143 const std::vector<double >& y_current,
144144 const std::vector<double >& ax_current,
145- FILE* pdlp_log_file ) {
146- UpdateX (x_new, x_current, lp, y_current, params.eta , params.omega , pdlp_log_file );
145+ FILE* pdlp_log_file_ ) {
146+ UpdateX (x_new, x_current, lp, y_current, params.eta , params.omega , pdlp_log_file_ );
147147 linalg::Ax (lp, x_new, ax_new);
148148 UpdateY (y_new, y_current, lp, ax_new, ax_current, params.eta , params.omega );
149149}
@@ -157,7 +157,7 @@ void UpdateIteratesAdaptive(const HighsLp& lp, const PrimalDualParams& params,
157157 const std::vector<double >& ax_current,
158158 const std::vector<double >& aty_current,
159159 double & current_eta, int & step_size_iter_count,
160- FILE* pdlp_log_file ) {
160+ FILE* pdlp_log_file_ ) {
161161 const double MIN_ETA = 1e-6 ;
162162 const double MAX_ETA = 1.0 ;
163163
@@ -182,7 +182,7 @@ void UpdateIteratesAdaptive(const HighsLp& lp, const PrimalDualParams& params,
182182 std::vector<double > aty_candidate (lp.num_col_ );
183183
184184 // Primal update
185- UpdateX (x_candidate, x_current, lp, y_current, current_eta, params.omega , pdlp_log_file );
185+ UpdateX (x_candidate, x_current, lp, y_current, current_eta, params.omega , pdlp_log_file_ );
186186 linalg::Ax (lp, x_candidate, ax_candidate);
187187
188188 // Dual update
@@ -268,14 +268,14 @@ bool UpdateIteratesMalitskyPock(
268268 const std::vector<double >& aty_current, double & current_eta,
269269 double & ratio_last_two_step_sizes, int & num_rejected_steps,
270270 bool first_iteration,
271- FILE* pdlp_log_file ) // Add this parameter to track first iteration
271+ FILE* pdlp_log_file_ ) // Add this parameter to track first iteration
272272{
273273 // Step 1: Compute primal update first (without extrapolation)
274274 const double primal_step_size = current_eta / params.omega ;
275275
276276 std::vector<double > x_candidate (lp.num_col_ );
277277 UpdateX (x_candidate, x_current, lp, y_current, primal_step_size,
278- params.omega , pdlp_log_file );
278+ params.omega , pdlp_log_file_ );
279279
280280 // Compute Ax for the primal candidate
281281 std::vector<double > ax_candidate (lp.num_row_ );
0 commit comments