@@ -115,7 +115,7 @@ HighsStatus formSimplexLpBasisAndFactor(HighsLpSolverObject& solver_object,
115115 lp.ensureColwise ();
116116 const bool passed_scaled = lp.is_scaled_ ;
117117 // Consider scaling the LP
118- if (!passed_scaled) considerScaling (options, lp);
118+ if (!passed_scaled) considerSimplexScaling (options, lp);
119119 const bool check_basis = basis.alien || (!basis.valid && basis.useful );
120120 if (check_basis) {
121121 // The basis needs to be checked for rank deficiency, and possibly
@@ -404,7 +404,7 @@ void setSolutionStatus(HighsInfo& highs_info) {
404404}
405405// SCALING
406406
407- bool considerScaling (const HighsOptions& options, HighsLp& lp) {
407+ bool considerSimplexScaling (const HighsOptions& options, HighsLp& lp) {
408408 // Indicate whether new scaling has been determined in the return value.
409409 bool new_scaling = false ;
410410 // Consider scaling the LP - either by finding new factors or by
@@ -432,7 +432,7 @@ bool considerScaling(const HighsOptions& options, HighsLp& lp) {
432432 kHighsAnalysisLevelModelData & options.highs_analysis_level;
433433 if (analyse_lp_data) analyseLp(options.log_options, lp);
434434 */
435- scaleLp (options, lp);
435+ simplexScaleLp (options, lp);
436436 // If the LP is now scaled, then the scaling is new
437437 new_scaling = lp.is_scaled_ ;
438438 /*
@@ -448,8 +448,8 @@ bool considerScaling(const HighsOptions& options, HighsLp& lp) {
448448 return new_scaling;
449449}
450450
451- void scaleLp (const HighsOptions& options, HighsLp& lp,
452- const bool force_scaling) {
451+ void simplexScaleLp (const HighsOptions& options, HighsLp& lp,
452+ const bool force_scaling) {
453453 lp.clearScaling ();
454454 HighsInt numCol = lp.num_col_ ;
455455 HighsInt numRow = lp.num_row_ ;
@@ -539,7 +539,7 @@ void scaleLp(const HighsOptions& options, HighsLp& lp,
539539 // Record the scaling strategy used
540540 lp.scale_ .strategy = use_scale_strategy;
541541 // Possibly scale the costs
542- // if (allow_cost_scaling) scaleSimplexCost (options, lp, scale.cost );
542+ // if (allow_cost_scaling) simplexScaleCost (options, lp);
543543
544544 // If matrix is unscaled, then LP is only scaled if there is a cost scaling
545545 // factor
@@ -1053,7 +1053,7 @@ HighsStatus applyScalingToLpRow(HighsLp& lp, const HighsInt row,
10531053 return HighsStatus::kOk ;
10541054}
10551055
1056- void unscaleSolution (HighsSolution& solution, const HighsScale& scale) {
1056+ void simplexUnscaleSolution (HighsSolution& solution, const HighsScale& scale) {
10571057 assert (scale.has_scaling );
10581058 assert (solution.col_value .size () == static_cast <size_t >(scale.num_col ));
10591059 assert (solution.col_dual .size () == static_cast <size_t >(scale.num_col ));
@@ -1070,8 +1070,8 @@ void unscaleSolution(HighsSolution& solution, const HighsScale& scale) {
10701070 }
10711071}
10721072
1073- void scaleSimplexCost (const HighsOptions& options, HighsLp& lp,
1074- double & cost_scale) {
1073+ void simplexScaleCost (const HighsOptions& options, HighsLp& lp) {
1074+ double & cost_scale = lp. scale_ . cost ;
10751075 // Scale the costs by no less than minAlwCostScale
10761076 double max_allowed_cost_scale = pow (2.0 , options.allowed_cost_scale_factor );
10771077 double max_nonzero_cost = 0 ;
@@ -1111,7 +1111,8 @@ void scaleSimplexCost(const HighsOptions& options, HighsLp& lp,
11111111 max_nonzero_cost);
11121112}
11131113
1114- void unscaleSimplexCost (HighsLp& lp, double cost_scale) {
1114+ void simplexUnscaleCost (HighsLp& lp) {
1115+ double & cost_scale = lp.scale_ .cost ;
11151116 for (HighsInt iCol = 0 ; iCol < lp.num_col_ ; iCol++)
11161117 lp.col_cost_ [iCol] *= cost_scale;
11171118}
0 commit comments