backport from main

* rename swig files .i in .swig
* update constraint_solver and routing
* backport math_opt changes
* move dynamic loading to ortools/third_party_solvers
This commit is contained in:
Corentin Le Molgat
2025-07-23 15:07:49 +02:00
committed by Mizux Seiha
parent 03e2551e61
commit a7f49a2585
202 changed files with 4734 additions and 7260 deletions

View File

@@ -19,9 +19,9 @@ cc_library(
hdrs = ["init.h"],
deps = [
"//ortools/base",
"//ortools/gurobi:environment",
"//ortools/sat:cp_model_solver",
"//ortools/sat:cp_model_solver_helpers",
"//ortools/third_party_solvers:gurobi_environment",
"@abseil-cpp//absl/flags:flag",
"@abseil-cpp//absl/log",
"@abseil-cpp//absl/log:globals",

View File

@@ -20,9 +20,9 @@
#include "absl/log/globals.h"
#include "absl/strings/string_view.h"
#include "ortools/base/init_google.h"
#include "ortools/gurobi/environment.h"
#include "ortools/sat/cp_model_solver.h"
#include "ortools/sat/cp_model_solver_helpers.h"
#include "ortools/third_party_solvers/gurobi_environment.h"
namespace operations_research {
void CppBridge::InitLogging(absl::string_view usage) {

View File

@@ -15,7 +15,7 @@
%include "std_string.i"
%include "ortools/util/java/absl_string_view.i"
%include "ortools/util/java/absl_string_view.swig"
%{
#include "ortools/init/init.h"

View File

@@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
"""Simple unit tests for python/init.i. Not exhaustive."""
"""Simple unit tests for python/init.swig. Not exhaustive."""
from absl.testing import absltest
from ortools.init.python import init