| 3145 | } |
| 3146 | |
| 3147 | HighsStatus 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 | |
| 3161 | HighsStatus Highs::userScaleSolution(HighsUserScaleData& data, |
| 3162 | bool update_kkt) { |
no test coverage detected