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

update for JuMP v0.14 and Julia v0.5 #69

Merged
merged 4 commits into from
Oct 14, 2016
Merged

Conversation

yeesian
Copy link
Collaborator

@yeesian yeesian commented Oct 11, 2016

Closes #67 and #68. Summary of Changes:

  • [depwarn] UTF8String -> String
  • [depwarn] remove utf8()
  • [macro] introduction of a new symvarname to deal with "variable not defined"
  • [macro] added a JuMP.registercon() stub for uncset constraints to work with JuMP.@constraint

@codecov-io
Copy link

codecov-io commented Oct 11, 2016

Current coverage is 84.33% (diff: 100%)

Merging #69 into master will increase coverage by 0.17%

@@             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          

Powered by Codecov. Last update abcf0a6...592e211

@@ -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")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dup of

(/){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
Copy link
Owner

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")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

Copy link
Collaborator Author

@yeesian yeesian Oct 12, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dup of

(/){P,C,V<:Uncertain}(lhs::UncVarExpr, rhs::GenericNormExpr{P,C,V}) = error("Cannot divide $UVE by $UNM")

@IainNZ
Copy link
Owner

IainNZ commented Oct 12, 2016

Thanks for doing this!

@IainNZ IainNZ merged commit 1e07afd into IainNZ:master Oct 14, 2016
@IainNZ
Copy link
Owner

IainNZ commented Oct 14, 2016

Will tag now

@IainNZ
Copy link
Owner

IainNZ commented Oct 14, 2016

Actually, can you tag?

@yeesian yeesian deleted the updates branch October 14, 2016 22:52
@yeesian yeesian mentioned this pull request Oct 14, 2016
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.

3 participants