Skip to content

Conversation

martinbiel
Copy link
Contributor

Quick prototype that resolves #1085

Tests are missing.

@blegat
Copy link
Member

blegat commented May 7, 2020

Implementation looks good. Just missing tests

@martinbiel
Copy link
Contributor Author

I added some simple tests to universalfallback.jl, but more importantly I believe

function MOI.supports(
    ::ModelForUniversalFallback{T},
    ::Type{MOI.ObjectiveFunction{MOI.ScalarAffineFunction{T}}}) where T
    return false
end

should give a lot of coverage from the unit tests. I also rebased the branch on master.

Copy link
Member

@blegat blegat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks !

@blegat blegat merged commit 43e4e1a into jump-dev:master May 29, 2020
@martinbiel martinbiel deleted the uf_objective branch May 29, 2020 22:09
@blegat blegat added this to the v0.9.14 milestone May 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Feature request: Support custom objective functions in UniversalFallback

2 participants