Skip to content

Commit cbe6e00

Browse files
authored
Remove unnecesary MOI.modify method (#202)
1 parent 12be322 commit cbe6e00

1 file changed

Lines changed: 0 additions & 18 deletions

File tree

src/constraint.jl

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -936,24 +936,6 @@ function MOI.set(
936936
end
937937

938938
### MODIFY
939-
function MOI.modify(
940-
m::Optimizer,
941-
c::MOI.ConstraintIndex{MOI.ScalarAffineFunction{Float64},D},
942-
func::MOI.ScalarConstantChange{Float64},
943-
) where {D<:MOI.AbstractSet}
944-
if !iszero(func.new_constant)
945-
throw(
946-
MOI.ScalarFunctionConstantNotZero{
947-
Float64,
948-
MOI.ScalarAffineFunction{Float64},
949-
D,
950-
}(
951-
func.new_constant,
952-
),
953-
)
954-
end
955-
return
956-
end
957939

958940
# Is there a way to do this in Mosek API ? I haven't check so here is an error for now:
959941
const _MODIFY_PSD_VAR_ERROR = "Modifying the coefficient of the variable correspond to an entry of a PSD matrix is not supported"

0 commit comments

Comments
 (0)