Skip to content

Commit

Permalink
Compatibility with JuMP 0.21
Browse files Browse the repository at this point in the history
- Compatibility with JuMP 0.21
- Set package version to 0.1.2.
  • Loading branch information
javierbarbero committed Feb 25, 2020
1 parent faeeb04 commit 13e58d0
Show file tree
Hide file tree
Showing 10 changed files with 27 additions and 10 deletions.
6 changes: 6 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
DataEnvelopmentAnalysis.jl release notes
========================================

Version 0.1.2 (Feb 25, 2020)
----------------------------
- Compatibility with JuMP 0.21.
- Weak disposal in radial, cost, and revenue models.
- Minor bugs fixed.

Version 0.1.1 (Oct 29, 2019)
----------------------------

Expand Down
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "DataEnvelopmentAnalysis"
uuid = "a100299e-89d6-11e9-0fa0-2daf497e6a05"
authors = ["Javier Barbero <jbarberoeco@gmail.com>"]
version = "0.1.1"
version = "0.1.2"

[deps]
GLPK = "60bf3e95-4087-53dc-ae20-288a0d20c6a6"
Expand All @@ -17,7 +17,7 @@ StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91"
julia = "1"
GLPK = "0.12"
Ipopt = "0.6"
JuMP = "0.20"
JuMP = "0.21"
StatsBase = "0.32"

[extras]
Expand Down
3 changes: 2 additions & 1 deletion src/dea.jl
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ function dea(X::Matrix, Y::Matrix; orient::Symbol = :Input, rts::Symbol = :CRS,
y0 = Y[i,:]

# Create the optimization model
deamodel = Model(with_optimizer(GLPK.Optimizer))
deamodel = Model(GLPK.Optimizer)

@variable(deamodel, eff)
@variable(deamodel, lambda[1:nref] >= 0)

Expand Down
3 changes: 2 additions & 1 deletion src/deaadd.jl
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ function deaadd(X::Matrix, Y::Matrix, model::Symbol = :Default; rts::Symbol = :V
wY0 = wY[i,:]

# Create the optimization model
deamodel = Model(with_optimizer(GLPK.Optimizer))
deamodel = Model(GLPK.Optimizer)

@variable(deamodel, sX[1:m] >= 0)
@variable(deamodel, sY[1:s] >= 0)
@variable(deamodel, lambda[1:nref] >= 0)
Expand Down
3 changes: 2 additions & 1 deletion src/deacost.jl
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ function deacost(X::Matrix, Y::Matrix, W::Matrix; rts::Symbol = :VRS, disposal::
w0 = W[i,:]

# Create the optimization model
deamodel = Model(with_optimizer(GLPK.Optimizer))
deamodel = Model(GLPK.Optimizer)

@variable(deamodel, Xeff[1:m])
@variable(deamodel, lambda[1:n] >= 0)

Expand Down
3 changes: 2 additions & 1 deletion src/deaddf.jl
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ function deaddf(X::Matrix, Y::Matrix, Gx::Matrix, Gy::Matrix; rts::Symbol = :CRS
Gy0 = Gy[i,:]

# Create the optimization model
deamodel = Model(with_optimizer(GLPK.Optimizer))
deamodel = Model(GLPK.Optimizer)

@variable(deamodel, eff)
@variable(deamodel, lambda[1:nref] >= 0)

Expand Down
5 changes: 4 additions & 1 deletion src/deagdf.jl
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,10 @@ function deagdf(X::Matrix, Y::Matrix, alpha::Float64; rts::Symbol = :CRS, slack
y0 = Y[i,:]

# Create the optimization model
deamodel = Model(with_optimizer(Ipopt.Optimizer, print_level = 0))
deamodel = Model(Ipopt.Optimizer)
set_silent(deamodel)
set_optimizer_attribute(deamodel, "print_level", 0)

@variable(deamodel, eff, start = 1.0)
@variable(deamodel, lambda[1:nref] >= 0)

Expand Down
3 changes: 2 additions & 1 deletion src/deaprofit.jl
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ function deaprofit(X::Matrix, Y::Matrix, W::Matrix, P::Matrix, Gx::Matrix, Gy::M
p0 = P[i,:]

# Create the optimization model
deamodel = Model(with_optimizer(GLPK.Optimizer))
deamodel = Model(GLPK.Optimizer)

@variable(deamodel, Xeff[1:m])
@variable(deamodel, Yeff[1:s])
@variable(deamodel, lambda[1:n] >= 0)
Expand Down
5 changes: 4 additions & 1 deletion src/deaprofitability.jl
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,10 @@ function deaprofitability(X::Matrix, Y::Matrix, W::Matrix, P::Matrix; alpha::Flo
p0 = P[i,:]

# Create the optimization model
deamodel = Model(with_optimizer(Ipopt.Optimizer, print_level= 0 ))
deamodel = Model(Ipopt.Optimizer)
set_silent(deamodel)
set_optimizer_attribute(deamodel, "print_level", 0)

@variable(deamodel, eff, start = 1.0)
@variable(deamodel, lambda[1:n] >= 0)

Expand Down
2 changes: 1 addition & 1 deletion src/dearevenue.jl
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ function dearevenue(X::Matrix, Y::Matrix, P::Matrix; rts::Symbol = :VRS, disposa
p0 = P[i,:]

# Create the optimization model
deamodel = Model(with_optimizer(GLPK.Optimizer))
deamodel = Model(GLPK.Optimizer)
@variable(deamodel, Yeff[1:s])
@variable(deamodel, lambda[1:n] >= 0)

Expand Down

2 comments on commit 13e58d0

@javierbarbero
Copy link
Owner Author

Choose a reason for hiding this comment

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

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

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

Registration pull request created: JuliaRegistries/General/10094

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if Julia TagBot is installed, or can be done manually through the github interface, or via:

git tag -a v0.1.2 -m "<description of version>" 13e58d00a16fc2bfb370d0b2d53af3187404d330
git push origin v0.1.2

Please sign in to comment.