fix python linear_solver swig and test
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -349,7 +349,7 @@ class PyWrapLpTest(unittest.TestCase):
|
||||
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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user