MCPcopy Create free account
hub / github.com/ERGO-Code/HiGHS / userScaleModel

Method userScaleModel

highs/lp_data/HighsInterface.cpp:3147–3159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3145}
3146
3147HighsStatus Highs::userScaleModel(HighsUserScaleData& data) {
3148 // Consider applying user objective and bound scaling to the model
3149 // by first identifying whether it causes any errors due to creating
3150 // extreme data values...
3151 userScaleLp(this->model_.lp_, data, false);
3152 userScaleHessian(this->model_.hessian_, data, false);
3153 HighsStatus return_status = userScaleStatus(this->options_.log_options, data);
3154 if (return_status == HighsStatus::kError) return HighsStatus::kError;
3155 // ... and, if not, actually apply the scaling
3156 userScaleLp(this->model_.lp_, data);
3157 userScaleHessian(this->model_.hessian_, data);
3158 return return_status;
3159}
3160
3161HighsStatus Highs::userScaleSolution(HighsUserScaleData& data,
3162 bool update_kkt) {

Callers 2

userScaleMethod · 0.95
userUnscaleMethod · 0.95

Calls 3

userScaleLpFunction · 0.85
userScaleHessianFunction · 0.85
userScaleStatusFunction · 0.85

Tested by

no test coverage detected