| 909 | } |
| 910 | |
| 911 | HighsStatus userScaleStatus(const HighsLogOptions& log_options, |
| 912 | const HighsUserScaleData& data) { |
| 913 | HighsStatus return_status = HighsStatus::kOk; |
| 914 | std::string message; |
| 915 | if (data.scaleWarning(message)) { |
| 916 | highsLogUser(log_options, HighsLogType::kWarning, "%s\n", message.c_str()); |
| 917 | return_status = HighsStatus::kWarning; |
| 918 | } |
| 919 | if (data.scaleError(message)) { |
| 920 | highsLogUser(log_options, HighsLogType::kError, "%s\n", message.c_str()); |
| 921 | return_status = HighsStatus::kError; |
| 922 | } |
| 923 | return return_status; |
| 924 | } |
| 925 | |
| 926 | bool considerScaling(const HighsOptions& options, HighsLp& lp) { |
| 927 | // Indicate whether new scaling has been determined in the return value. |
no test coverage detected