diff --git a/ortools/linear_solver/python/linear_solver.i b/ortools/linear_solver/python/linear_solver.i index 7a5bf5ef83..a475c55a77 100644 --- a/ortools/linear_solver/python/linear_solver.i +++ b/ortools/linear_solver/python/linear_solver.i @@ -374,8 +374,8 @@ PY_CONVERT(MPVariable); %rename (LookupVariable) operations_research::MPSolver::LookupVariableOrNull; %unignore operations_research::MPSolver::SetSolverSpecificParametersAsString; %unignore operations_research::MPSolver::NextSolution; -%unignore operations_research::MPSolver::ExportModelAsLpFormat; -%unignore operations_research::MPSolver::ExportModelAsMpsFormat; +%unignore operations_research::MPSolver::ExportModelAsLpFormat(bool); +%unignore operations_research::MPSolver::ExportModelAsMpsFormat(bool, bool); %unignore operations_research::MPSolver::WriteModelToMpsFile; %unignore operations_research::MPSolver::Write; diff --git a/ortools/linear_solver/python/lp_test.py b/ortools/linear_solver/python/lp_test.py index a52dc3467b..5b7c188880 100755 --- a/ortools/linear_solver/python/lp_test.py +++ b/ortools/linear_solver/python/lp_test.py @@ -349,7 +349,7 @@ def testExportToMps(self): sum_of_vars = sum([x1, x2, x3]) c2 = solver.Add(sum_of_vars <= 100.0, "OtherConstraintName") - mps_str = solver.ExportModelAsMpsFormat(fixed_format=False, obfuscated=False) + mps_str = solver.ExportModelAsMpsFormat(fixed_format=False, obfuscate=False) self.assertIn("ExportMps", mps_str)