We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3d7f967 commit a07ec2aCopy full SHA for a07ec2a
9 files changed
ortools/linear_solver/BUILD.bazel
@@ -18,8 +18,6 @@ load("@protobuf//bazel:py_proto_library.bzl", "py_proto_library")
18
load("@rules_cc//cc:cc_binary.bzl", "cc_binary")
19
load("@rules_cc//cc:cc_library.bzl", "cc_library")
20
21
-# For all the linear_solver_interface_tests rules.
22
-
23
package(default_visibility = ["//visibility:public"])
24
25
# OSS solvers
@@ -582,11 +580,18 @@ cc_binary(
582
580
583
581
cc_library(
584
name = "scip_helper_macros",
+ srcs = ["scip_helper_macros.cc"],
585
hdrs = ["scip_helper_macros.h"],
586
deps = [
587
"//ortools/base:status_macros",
+ "@abseil-cpp//absl/base",
588
+ "@abseil-cpp//absl/base:nullability",
589
+ "@abseil-cpp//absl/log",
590
+ "@abseil-cpp//absl/log:check",
591
"@abseil-cpp//absl/status",
- "@abseil-cpp//absl/strings:str_format",
592
+ "@abseil-cpp//absl/strings",
593
+ "@abseil-cpp//absl/strings:string_view",
594
+ "@scip",
595
],
596
)
597
ortools/linear_solver/CMakeLists.txt
@@ -23,9 +23,10 @@ list(APPEND _SRCS
model_exporter.h
model_validator.cc
model_validator.h
26
+ sat_interface.cc
27
+ scip_helper_macros.cc
28
solve_mp_model.cc
29
solve_mp_model.h
- sat_interface.cc
30
31
32
if(USE_BOP)
ortools/linear_solver/highs_interface.cc
@@ -224,14 +224,10 @@ int64_t HighsInterface::nodes() const {
224
}
225
226
MPSolver::BasisStatus HighsInterface::row_status(int constraint_index) const {
227
- // TODO(user): While basis status isn't well defined for PDLP, we could
228
- // guess statuses that might be useful.
229
return MPSolver::BasisStatus::FREE;
230
231
232
MPSolver::BasisStatus HighsInterface::column_status(int variable_index) const {
233
234
235
236
237
@@ -241,10 +237,8 @@ bool HighsInterface::IsLP() const { return true; }
241
242
238
bool HighsInterface::IsMIP() const { return solve_as_a_mip_; }
243
239
244
-std::string HighsInterface::SolverVersion() const { return "PDLP Solver"; }
240
+std::string HighsInterface::SolverVersion() const { return "HiGHS Solver"; }
245
246
-// TODO(user): Consider returning the SolveLog here, as it could be essential
247
-// for interpreting the PDLP solution.
248
void* HighsInterface::underlying_solver() { return nullptr; }
249
250
void HighsInterface::ExtractNewVariables() { NonIncrementalChange(); }
0 commit comments