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

Fix variable bounds passed as Rational{Int}(Inf) #2896

Merged
merged 2 commits into from
Feb 28, 2022
Merged

Fix variable bounds passed as Rational{Int}(Inf) #2896

merged 2 commits into from
Feb 28, 2022

Conversation

odow
Copy link
Member

@odow odow commented Feb 28, 2022

Closes #2894

cc @schillic this fixes the problem, but I'd still advise you to not use Rational coefficients (until JuMP officially supports them), and to not add Inf bounds. They're both slightly misleading as to what will actually happen, compared to what someone reading the code might think will happen.

@codecov
Copy link

codecov bot commented Feb 28, 2022

Codecov Report

Merging #2896 (2e3019c) into master (9b4847a) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2896   +/-   ##
=======================================
  Coverage   95.23%   95.23%           
=======================================
  Files          43       43           
  Lines        5692     5692           
=======================================
  Hits         5421     5421           
  Misses        271      271           
Impacted Files Coverage Δ
src/variables.jl 98.69% <100.00%> (ø)

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 9b4847a...2e3019c. Read the comment docs.

@odow odow merged commit 64b3900 into master Feb 28, 2022
@odow odow deleted the od/fix-inf branch February 28, 2022 00:52
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.

Rational infinite constraints do not work anymore
1 participant