Skip to content
This repository has been archived by the owner on Apr 21, 2022. It is now read-only.

[MOF] Begin implementation of JuMP NLPBlock #45

Closed
wants to merge 5 commits into from
Closed

[MOF] Begin implementation of JuMP NLPBlock #45

wants to merge 5 commits into from

Conversation

odow
Copy link
Owner

@odow odow commented Feb 25, 2019

Closes #37

@odow
Copy link
Owner Author

odow commented Mar 4, 2019

@ccoffrin the plumbing is set-up, modulo potential bugs. Thoughts on how we should test this?

MOI.read_from_file(mof_2, "mof.json")

jump_2 = Model(with_optimizer(Ipopt.Optimizer))
MOI.copy_to(jump_2, mof_2)
Copy link
Owner Author

Choose a reason for hiding this comment

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

@mlubin, demo round-tripping a JuMP model through MOF and solving it via Ipopt.

Copy link
Collaborator

Choose a reason for hiding this comment

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

FWIW it's better to test the two parts separately (JuMP to MOF and MOF to JuMP) instead of testing the round trip.

@ccoffrin
Copy link

ccoffrin commented Mar 4, 2019

YEY! Re testing, if it can write and read every model in MINLPTests.jl that's probably good, right?

MOI.set(src, MOI.NLPBlock(), JuMP._create_nlp_block_data(src))
end
MOI.copy_to(dest, backend(src); kwargs...)
end
Copy link
Owner Author

Choose a reason for hiding this comment

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

So the question is, should these copy_to methods be included in JuMP? Or should they sit in MathOptFormat?

@odow odow closed this Dec 6, 2019
@odow odow deleted the od/jump branch December 6, 2019 15:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can an MOF file be read in to create a MOI.NLPBlock
3 participants