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 get multiplicity functions #191

Merged
merged 2 commits into from
Sep 26, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Manifest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ version = "0.5.6"

[[BlockDecomposition]]
deps = ["DataStructures", "JuMP", "MathOptInterface", "Test"]
git-tree-sha1 = "8e047cc85a38985c897967dcab1b0297d9d1d278"
git-tree-sha1 = "0c1abf326a5e46f06c73fa8ddfc2271998b61279"
repo-rev = "master"
repo-url = "https://github.com/atoptima/BlockDecomposition.jl.git"
uuid = "6cde8614-403a-11e9-12f1-c10d0f0caca0"
Expand All @@ -37,7 +37,7 @@ version = "0.5.0"

[[ColunaDemos]]
deps = ["BlockDecomposition", "DelimitedFiles", "JuMP"]
git-tree-sha1 = "2483a4f578de38846a254b78f20986e3dca47d9d"
git-tree-sha1 = "0a2603e8bad82166f8611d7c3b004c43ae978c9c"
repo-rev = "master"
repo-url = "https://github.com/atoptima/ColunaDemos.jl.git"
uuid = "a54e61d4-7723-11e9-2469-af255fcaa246"
Expand Down Expand Up @@ -111,7 +111,7 @@ version = "0.10.3"

[[GLPK]]
deps = ["BinaryProvider", "Libdl", "MathOptInterface", "SparseArrays"]
git-tree-sha1 = "514692c8ffb0cb4f37afcb0f175573f31551c408"
git-tree-sha1 = "94627f7ac9118017ec54e6676b30fdacb677cdec"
repo-rev = "master"
repo-url = "https://github.com/JuliaOpt/GLPK.jl.git"
uuid = "60bf3e95-4087-53dc-ae20-288a0d20c6a6"
Expand Down
4 changes: 2 additions & 2 deletions src/decomposition.jl
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ function create_side_vars_constrs!(
setupvar = collect(values(setupvars))[1]
clonevar!(masterform, setupvar, MasterRepPricingSetupVar, is_explicit = false)
# create convexity constraint
lb_mult = Float64(BD.getminmultiplicity(ann))
lb_mult = Float64(BD.getlowermultiplicity(ann))
name = string("sp_lb_", spuid)
lb_conv_constr = setconstr!(
masterform, name, MasterConvexityConstr;
Expand All @@ -146,7 +146,7 @@ function create_side_vars_constrs!(
setincval!(getcurdata(lb_conv_constr), 100.0)
coefmatrix[getid(lb_conv_constr), getid(setupvar)] = 1.0

ub_mult = Float64(BD.getmaxmultiplicity(ann))
ub_mult = Float64(BD.getuppermultiplicity(ann))
name = string("sp_ub_", spuid)
ub_conv_constr = setconstr!(
masterform, name, MasterConvexityConstr; rhs = ub_mult,
Expand Down