-
Notifications
You must be signed in to change notification settings - Fork 21
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
update for JuMP v0.14 and Julia v0.5 #69
Conversation
Current coverage is 84.33% (diff: 100%)@@ master #69 diff @@
==========================================
Files 15 15
Lines 1332 1334 +2
Methods 0 0
Messages 0 0
Branches 0 0
==========================================
+ Hits 1121 1125 +4
+ Misses 211 209 -2
Partials 0 0
|
@@ -222,8 +222,6 @@ const ADP = "an adaptive variable" | |||
(-)(lhs::UncExpr, rhs::Variable) = UncVarExpr([rhs],[UncExpr(-1)],lhs) | |||
(*)(lhs::UncExpr, rhs::Variable) = (*)(rhs,lhs) | |||
(/)(lhs::UncExpr, rhs::Variable) = error("Cannot divide $UNE by a variable") | |||
# UncExpr--GenericNormExpr | |||
(/){P,C,V<:Uncertain}(lhs::UncExpr, rhs::GenericNormExpr{P,C,V}) = error("Cannot divide $UNE by $UNM") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dup of
Line 236 in abcf0a6
(/){P,C,V<:Uncertain}(lhs::UncExpr, rhs::GenericNormExpr{P,C,V}) = error("Cannot divide $UNE by $UNM") |
julia 0.4 | ||
JuMP 0.13.2 0.14 | ||
julia 0.5 | ||
JuMP 0.14 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you put upper bound too?
@@ -269,8 +267,6 @@ const ADP = "an adaptive variable" | |||
(-)(lhs::UncVarExpr, rhs::Variable) = UncVarExpr(vcat(lhs.vars,rhs),vcat(lhs.coeffs,UncExpr(-1)), lhs.constant) | |||
(*)(lhs::UncVarExpr, rhs::Variable) = error("Cannot multiply $UVE by a variable") | |||
(/)(lhs::UncVarExpr, rhs::Variable) = error("Cannot divide $UVE by a variable") | |||
# UncVarExpr--GenericNormExpr | |||
(/){P,C,V<:Uncertain}(lhs::UncVarExpr, rhs::GenericNormExpr{P,C,V}) = error("Cannot divide $UVE by $UNM") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dup of
Line 286 in abcf0a6
(/){P,C,V<:Uncertain}(lhs::UncVarExpr, rhs::GenericNormExpr{P,C,V}) = error("Cannot divide $UVE by $UNM") |
Thanks for doing this! |
Will tag now |
Actually, can you tag? |
Closes #67 and #68. Summary of Changes:
UTF8String
->String
utf8()
symvarname
to deal with "variable not defined"JuMP.registercon()
stub for uncset constraints to work withJuMP.@constraint