We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, I found a floating-point arithmetic limitation in test_get_primal of VariableTestCase in optlang 1.8.1 for Debian. I have created a patch.
--- a/src/optlang/tests/test_glpk_exact_interface.py +++ b/src/optlang/tests/test_glpk_exact_interface.py @@ -72,7 +72,7 @@ class VariableTestCase(abstract_test_cas -1.1331887079263237e-29, 17.530865429786694, 0.0, 0.0, 0.0, 4.765319193197458, -4.765319193197457, 21.79949265599876, -21.79949265599876, -3.2148950476847613, 0.0, -2.281503094067127, 2.6784818505075303, 0.0]): - self.assertAlmostEqual(i, j) + self.assertAlmostEqual(i, j, places=6) def test_changing_variable_names_is_reflected_in_the_solver(self): model = self.interface.Model(problem=glpk_read_cplex(TESTMODELPATH)) --- a/src/optlang/tests/test_glpk_interface.py +++ b/src/optlang/tests/test_glpk_interface.py @@ -74,7 +74,7 @@ class VariableTestCase(abstract_test_cas -1.1331887079263237e-29, 17.530865429786694, 0.0, 0.0, 0.0, 4.765319193197458, -4.765319193197457, 21.79949265599876, -21.79949265599876, -3.2148950476847613, 0.0, -2.281503094067127, 2.6784818505075303, 0.0]): - self.assertAlmostEqual(i, j) + self.assertAlmostEqual(i, j, places=6) def test_changing_variable_names_is_reflected_in_the_solver(self): model = self.interface.Model(problem=glpk_read_cplex(TESTMODELPATH))
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi,
I found a floating-point arithmetic limitation in test_get_primal of VariableTestCase in optlang 1.8.1 for Debian. I have created a patch.
The text was updated successfully, but these errors were encountered: