AMPL to jump

Dears

I have a question regarding solving a problem that was written in AMPL using Jump. Is there a specific function that allows for translating an ampl file into a recognized file by jump? what is the most efficient way to achieve that?

Regards

Is there a specific function that allows for translating an ampl file into a recognized file by jump?

No.

what is the most efficient way to achieve that?

You should translate the problem manually.

1 Like

Depending on what you want to do with your problem, it is possible to use NLPModels.jl structure instead of JuMP, and use AmplNLReader to read .nl files generated by AMPL.

2 Likes

If I have a working AMPL file, can I solve it with JuMP? Can JuMP solve .nl files if I could generate it from AMPL?

Can JuMP solve .nl files if I could generate it from AMPL?

No. If you can generate an NL file from AMPL, why do you need JuMP?

You can go the reverse: use AmplNLWriter to get JuMP to write NL files