diff --git a/Project.toml b/Project.toml index 84b7eee..132cd12 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "BlockDecomposition" uuid = "6cde8614-403a-11e9-12f1-c10d0f0caca0" authors = ["Guillaume Marques", "Vitor Nesello", "François Vanderbeck"] -version = "1.13.0" +version = "1.14.0" [deps] Combinatorics = "861a8166-3701-5b0c-9a16-15d98fcdc6aa" diff --git a/src/soldisaggregation.jl b/src/soldisaggregation.jl index 99e3cff..c0fbdaf 100644 --- a/src/soldisaggregation.jl +++ b/src/soldisaggregation.jl @@ -29,3 +29,10 @@ value(info::AbstractColumnInfo, x::JuMP.VariableRef) = value(info, x.index) value(info::AbstractColumnInfo, ::MOI.VariableIndex) = error( "value(::$(typeof(info)), ::MOI.VariableIndex) not defined." ) + +""" + customdata(info) + +Returns the custom data attached to the master column variable associated to `info`. +""" +customdata(info::AbstractColumnInfo) = error("customdata(::$(typeof(info))) not defined.") diff --git a/test/soldisaggregation.jl b/test/soldisaggregation.jl index 02ed8ec..be5cf1a 100644 --- a/test/soldisaggregation.jl +++ b/test/soldisaggregation.jl @@ -21,6 +21,9 @@ function test_sol_disagg() @test_throws ErrorException( "value(::ColumnInfo) not defined." ) BlockDecomposition.value(ColumnInfo()) + @test_throws ErrorException( + "customdata(::ColumnInfo) not defined." + ) BlockDecomposition.customdata(ColumnInfo()) @test_throws ErrorException( "value(::ColumnInfo, ::MOI.VariableIndex) not defined." ) BlockDecomposition.value(ColumnInfo(), x)