Skip to content

Conversation

@odow
Copy link
Member

@odow odow commented Mar 2, 2020

@codecov-io
Copy link

Codecov Report

Merging #286 into master will increase coverage by 0.04%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #286      +/-   ##
==========================================
+ Coverage   69.43%   69.47%   +0.04%     
==========================================
  Files          15       15              
  Lines        2460     2457       -3     
==========================================
- Hits         1708     1707       -1     
+ Misses        752      750       -2
Impacted Files Coverage Δ
src/MOI/MOI_callbacks.jl 89.61% <100%> (+2.11%) ⬆️

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 1e24a71...19c82b9. Read the comment docs.

@ryancorywright
Copy link

Thanks for looking into this. I applied the patch and reran the code mentioned in the discourse page: CPLEX doesn't throw an error any more, but it rejects every feasible solution and eventually says that the problem is infeasible.

From the docs https://www.ibm.com/support/knowledgecenter/SSSA5P_12.10.0/ilog.odms.cplex.help/refcallablelibrary/macros/CPX_CALLBACKCONTEXT_RELAXATION.html

"CPLEX invokes the generic callback in this context when it has found a relaxed solution available. The relaxed solution is usually not integer feasible. It can, for example, be the solution to a node LP (but can also come from another place)."

@odow
Copy link
Member Author

odow commented Mar 2, 2020

On this branch we only call the lazy constraint from CPX_CALLBACKCONTEXT_CANDIDATE:
https://github.com/JuliaOpt/CPLEX.jl/blob/19c82b917b173189b45a4818331d53dee86a0e8d/src/MOI/MOI_callbacks.jl#L81-L89

Please provide a reproducible example.

@odow odow merged commit fa718d6 into master Apr 3, 2020
@odow odow deleted the odow-patch-1 branch April 3, 2020 22:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants