Skip to content

Commit 2c84949

Browse files
committed
continue fix NLP block
1 parent 60080ca commit 2c84949

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

src/MOI_wrapper.jl

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1281,10 +1281,20 @@ end
12811281
# Solutions Attributes
12821282
#
12831283

1284-
function MOI.supports(model::Optimizer, attr::MOI.NLPBlock)
1284+
function MOI.supports(::Optimizer, attr::MOI.NLPBlock)
12851285
return false
12861286
end
12871287

1288+
function MOI.set(::Optimizer, attr::MOI.NLPBlock, val)
1289+
throw(MOI.UnsupportedAttribute(attr))
1290+
return
1291+
end
1292+
1293+
function MOI.get(::Optimizer, attr::MOI.NLPBlock)
1294+
throw(MOI.UnsupportedAttribute(attr))
1295+
return
1296+
end
1297+
12881298
function MOI.supports(model::Optimizer, attr::MOI.AbstractModelAttribute)
12891299
return MOI.supports(model.optimizer, attr)
12901300
end

0 commit comments

Comments
 (0)