Skip to content

Commit

Permalink
fix linear_solver python swig and test
Browse files Browse the repository at this point in the history
  • Loading branch information
lperron committed Oct 9, 2024
1 parent b86dac0 commit 319db74
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ortools/linear_solver/python/linear_solver.i
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion ortools/linear_solver/python/lp_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down

0 comments on commit 319db74

Please sign in to comment.