Skip to content
New issue

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

Updates to master #92

Merged
merged 32 commits into from
Mar 30, 2017
Merged

Updates to master #92

merged 32 commits into from
Mar 30, 2017

Conversation

KristianJensen
Copy link
Contributor

@KristianJensen KristianJensen commented Mar 30, 2017

fix: make sure that sloppy arg is being passed to super (#83)
Netlib tests test also cloned models (#79)
Add a Gitter chat badge to README.rst (#86) (#88)

KristianJensen and others added 30 commits January 4, 2017 14:01
Only update the _variables_to_constriants_mapping dict when new_name !=
old_name
Only _round_primals_to_bounds if solution is optimal
E.g. numpy and sympy
* feat: add get_linear_coefficients method

Abstract non-implemented method

* feat: implement glpk get_linear_coefficients method

* fix: typo

* feat: implement get_linear_coefficients in cplex

* feat: implement get_linear_coefficients in gurobi

* feat: implement get_linear_coefficients in scipy

* test: add tests for get_linear_coefficients

* test: more tests for get_linear_coefficients

* fix: flake8

* fix: missing arguments in test

* fix: make scipy consistent with other interfaces

the get_linear_coefficients and set_linear_coefficients methods now
raise an exception if the objective/constraint doesn’t belong to a model
Some cplex versions don’t have all the statuses that optlang tries to
import, which would result in a crash.
For range constraints, rhs is now equal to lb
This is due to a bug where gurobi can get stuck
* checking if __del__ is needed

* testing against miplib

* using problems from miplib2003

* needs to implement variable comparison for problems that converge

* more problems
runtime: 10 min per problem

* fixed milp test value (same as in devel)

* delete problem from memory only if it exists (__del__ method)

* add a .keep file to keep the miplib2003 directory on tests/data

* miplib test with cplex - some problems also fail...

* need to implement a parser for .sol files

* set 9 min limit for optimization to run, otherwise travis halts after 10 min without output

* refactor: tests and move into slow_tests top directory

* style: flake8

* fix: no point in searching ImportError for 'cplex'

* test: add slow MILP tests for gurobi
* Fix LB/UB Coefficient Change (#82)

* Fix LB/UB Coefficient Change

If coeff is negative, the lower bound could become larger than the upper bound causing an error. Now, the upper bound is first removed and then both bounds are reapplied with the shift.

* Update interface.py

* test: add unittest for constraint expression standardisation

* fix: flake8

* fix: flake8 again

* refactor: simplify logic in constraint offset handling
* feat: add cloned model tests to netlib test suites

* chore: add cloned model tests also for gurobi

* fix: critical bug affecting ranged constraints in cplex interface

* test: skip netlib cloning tests on travis
* Various fixes (#78)

fix: objective.value should return None if not in model
fix: get correct primal values from glpk MIPs
test: add test for obj value without model
fix: allow older versions of cplex
Numerous gurobi fixes
Miplib test suite

* Add Gitter badge

* Fix gitter badge location

* Fix gitter badge 2
@codecov-io
Copy link

codecov-io commented Mar 30, 2017

Codecov Report

Merging #92 into master will increase coverage by 0.1%.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff            @@
##           master     #92     +/-   ##
========================================
+ Coverage    88.7%   88.8%   +0.1%     
========================================
  Files           8       8             
  Lines        2381    2385      +4     
  Branches      542     542             
========================================
+ Hits         2112    2118      +6     
+ Misses        167     166      -1     
+ Partials      102     101      -1
Impacted Files Coverage Δ
optlang/scipy_interface.py 85.15% <100%> (ø) ⬆️
optlang/interface.py 90.17% <100%> (+0.05%) ⬆️
optlang/glpk_interface.py 85.55% <100%> (ø) ⬆️
optlang/cplex_interface.py 89.82% <100%> (+0.39%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 33d846b...d64cbff. Read the comment docs.

@KristianJensen KristianJensen merged commit 1948683 into master Mar 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants