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

Function userScaleStatus

highs/lp_data/HighsLpUtils.cpp:911–924  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

909}
910
911HighsStatus 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
926bool considerScaling(const HighsOptions& options, HighsLp& lp) {
927 // Indicate whether new scaling has been determined in the return value.

Callers 2

userScaleLpFunction · 0.85
userScaleModelMethod · 0.85

Calls 4

highsLogUserFunction · 0.85
scaleWarningMethod · 0.80
c_strMethod · 0.80
scaleErrorMethod · 0.80

Tested by

no test coverage detected