Skip to content

Commit

Permalink
Fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat committed Sep 19, 2023
1 parent 3773423 commit 272d2be
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions src/QCQP/MOI_wrapper.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,23 +22,36 @@ MOI.empty!(model::Optimizer) = MOI.empty!(model.model)

MOI.add_variable(model::Optimizer) = MOI.add_variable(model.model)

Check warning on line 23 in src/QCQP/MOI_wrapper.jl

View check run for this annotation

Codecov / codecov/patch

src/QCQP/MOI_wrapper.jl#L23

Added line #L23 was not covered by tests

function MOI.supports_add_constrained_variable(model::Optimizer, ::Type{S}) where {S<:MOI.AbstractScalarSet}
function MOI.supports_add_constrained_variable(

Check warning on line 25 in src/QCQP/MOI_wrapper.jl

View check run for this annotation

Codecov / codecov/patch

src/QCQP/MOI_wrapper.jl#L25

Added line #L25 was not covered by tests
model::Optimizer,
::Type{S},
) where {S<:MOI.AbstractScalarSet}
return MOI.supports_add_constrained_variable(model.model, S)

Check warning on line 29 in src/QCQP/MOI_wrapper.jl

View check run for this annotation

Codecov / codecov/patch

src/QCQP/MOI_wrapper.jl#L29

Added line #L29 was not covered by tests
end

function MOI.supports_add_constrained_variables(model::Optimizer, ::Type{MOI.Reals})
function MOI.supports_add_constrained_variables(

Check warning on line 32 in src/QCQP/MOI_wrapper.jl

View check run for this annotation

Codecov / codecov/patch

src/QCQP/MOI_wrapper.jl#L32

Added line #L32 was not covered by tests
model::Optimizer,
::Type{MOI.Reals},
)
return MOI.supports_add_constrained_variables(model.model, MOI.Reals)

Check warning on line 36 in src/QCQP/MOI_wrapper.jl

View check run for this annotation

Codecov / codecov/patch

src/QCQP/MOI_wrapper.jl#L36

Added line #L36 was not covered by tests
end

function MOI.supports_add_constrained_variables(model::Optimizer, ::Type{S}) where {S<:MOI.AbstractVectorSet}
function MOI.supports_add_constrained_variables(

Check warning on line 39 in src/QCQP/MOI_wrapper.jl

View check run for this annotation

Codecov / codecov/patch

src/QCQP/MOI_wrapper.jl#L39

Added line #L39 was not covered by tests
model::Optimizer,
::Type{S},
) where {S<:MOI.AbstractVectorSet}
return MOI.supports_add_constrained_variables(model.model, S)

Check warning on line 43 in src/QCQP/MOI_wrapper.jl

View check run for this annotation

Codecov / codecov/patch

src/QCQP/MOI_wrapper.jl#L43

Added line #L43 was not covered by tests
end

function MOI.supports(model::Optimizer, attr::MOI.ObjectiveFunction)
return MOI.supports(model.model, attr)

Check warning on line 47 in src/QCQP/MOI_wrapper.jl

View check run for this annotation

Codecov / codecov/patch

src/QCQP/MOI_wrapper.jl#L46-L47

Added lines #L46 - L47 were not covered by tests
end

function MOI.supports_constraint(model::Optimizer, ::Type{F}, ::Type{S}) where {F<:MOI.AbstractFunction,S<:MOI.AbstractSet}
function MOI.supports_constraint(

Check warning on line 50 in src/QCQP/MOI_wrapper.jl

View check run for this annotation

Codecov / codecov/patch

src/QCQP/MOI_wrapper.jl#L50

Added line #L50 was not covered by tests
model::Optimizer,
::Type{F},
::Type{S},
) where {F<:MOI.AbstractFunction,S<:MOI.AbstractSet}
return MOI.supports_constraint(model.model, F, S)

Check warning on line 55 in src/QCQP/MOI_wrapper.jl

View check run for this annotation

Codecov / codecov/patch

src/QCQP/MOI_wrapper.jl#L55

Added line #L55 was not covered by tests
end

Expand Down

0 comments on commit 272d2be

Please sign in to comment.