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

What to do about NL #34

Open
odow opened this issue Jan 7, 2019 · 4 comments
Open

What to do about NL #34

odow opened this issue Jan 7, 2019 · 4 comments
Labels
File format: NL Relates to the NL file format

Comments

@odow
Copy link
Owner

odow commented Jan 7, 2019

It's an open question whether we should move the reading/writing of NL files from AMPLNLWriter over here. Thoughts?

https://github.com/JuliaOpt/AmplNLWriter.jl

@odow odow added the File format: NL Relates to the NL file format label Jan 7, 2019
@mlubin
Copy link
Collaborator

mlubin commented Jan 7, 2019

I'd say this is blocked by the lack of first-class support for nonlinear expressions in MOI.

@odow
Copy link
Owner Author

odow commented Jan 7, 2019

At the moment I just get the :expr_graph out of the NLPBlock

# TODO(odow): is there a better way of checking if the NLPBlock is set?
nlp_block = try
MOI.get(model, MOI.NLPBlock())
catch ex
@assert isa(ex, KeyError)
return # No NLPBlock set.
end
MOI.initialize(nlp_block.evaluator, [:ExprGraph])

And then query the expressions
objective = MOI.objective_expr(nlp_block.evaluator)

@chriscoey
Copy link
Contributor

I'd say this is blocked by the lack of first-class support for nonlinear expressions in MOI.

has there been any recent discussion on/proposals for this?

@odow
Copy link
Owner Author

odow commented Jan 8, 2019

Don't think so. Let's push 0.19 out the door first. However, first-class support could look like something very similar to how we store things in MOF.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
File format: NL Relates to the NL file format
Projects
None yet
Development

No branches or pull requests

3 participants