| 1151 | } |
| 1152 | |
| 1153 | HighsStatus Highs::optimizeModel() { |
| 1154 | // Level 2a of Highs::run() |
| 1155 | // |
| 1156 | HighsStatus status = this->initializeMultiThreading(); |
| 1157 | if (status != HighsStatus::kOk) return status; |
| 1158 | |
| 1159 | const bool already_profiling = this->profiling_; |
| 1160 | HighsProfiling profiling; |
| 1161 | if (!already_profiling) this->initializeProfiling(&profiling); |
| 1162 | status = this->calledOptimizeModel(); |
| 1163 | if (!already_profiling) { |
| 1164 | this->reportProfiling(); |
| 1165 | this->clearProfiling(); |
| 1166 | } |
| 1167 | return status; |
| 1168 | } |
| 1169 | |
| 1170 | // Checks the options calls presolve and postsolve if needed. |
| 1171 | // |
no test coverage detected