2424
2525using namespace std ;
2626
27- int PDLPSolver::GetIterationCount () const { return final_iter_count_; }
27+ int PDLPSolver::getIterationCount () const { return final_iter_count_; }
2828
29- void PDLPSolver::PreprocessLp () {
29+ void PDLPSolver::preprocessLp () {
3030 logger_.info (
3131 " Preprocessing LP using cupdlp formulation (slack variables for "
3232 " bounds)..." );
@@ -175,7 +175,7 @@ void PDLPSolver::PreprocessLp() {
175175 std::to_string (processed_lp.num_col_ ) + " cols." );
176176}
177177
178- void PDLPSolver::Postsolve (HighsSolution& solution) {
178+ void PDLPSolver::postprocess (HighsSolution& solution) {
179179 logger_.info (" Post-solving the solution..." );
180180
181181 std::vector<double > x_unscaled = x_current_;
@@ -185,7 +185,7 @@ void PDLPSolver::Postsolve(HighsSolution& solution) {
185185 std::vector<double > dSlackNeg_unscaled = dSlackNeg_;
186186
187187 // 1. Unscale the solution vectors first
188- scaling_. UnscaleSolution (x_unscaled, y_unscaled);
188+ unscaleSolution (x_unscaled, y_unscaled);
189189 const auto & row_scale = scaling_.GetRowScaling (); // Assumes getter exists
190190 const auto & col_scale = scaling_.GetColScaling (); // Assumes getter exists
191191 if (col_scale.size () == dSlackPos_unscaled.size ()) {
@@ -272,7 +272,7 @@ void PDLPSolver::Postsolve(HighsSolution& solution) {
272272
273273PDLPSolver::PDLPSolver (Logger& logger) : logger_(logger) {}
274274
275- void PDLPSolver::Solve (std::vector<double >& x, std::vector<double >& y) {
275+ void PDLPSolver::solve (std::vector<double >& x, std::vector<double >& y) {
276276 Timer solver_timer;
277277
278278 const HighsLp& lp = lp_;
@@ -379,7 +379,7 @@ void PDLPSolver::Solve(std::vector<double>& x, std::vector<double>& y) {
379379 // Reset to average and terminate
380380 x = x_avg_;
381381 y = y_avg_;
382- // scaling_.UnscaleSolution (x, y);
382+ // unscalesolution (x, y);
383383 return solveReturn ();
384384 }
385385 }
@@ -951,3 +951,14 @@ void PDLPSolver::setParams(const HighsOptions& options, HighsTimer& timer) {
951951 scaling_.passParams (¶ms_);
952952 restart_scheme_.passParams (¶ms_);
953953}
954+
955+ void PDLPSolver::scaleProblem () {
956+ scaling_.passLp (&lp_);
957+ scaling_.passParams (¶ms_);
958+ scaling_.scaleProblem ();
959+ }
960+
961+ void PDLPSolver::unscaleSolution (std::vector<double >& x,
962+ std::vector<double >& y) const {
963+ scaling_.unscaleSolution (x, y);
964+ }
0 commit comments