Request for MPS File Export in AMPL Community Edition

Hi AMPL Team,

I’m currently using the AMPL Community Edition (version 20241203) and need to export my model to an .mps file for debugging and solver compatibility purposes. However, the write and write gproblem commands are disabled in this version, and my solver (SCIP/HiGHS/CBC) doesn’t support MPS export through solver options.

Is there any way to enable .mps export with my current license, or could you suggest an alternative approach? I’d be happy to activate a trial or discuss options.

Thanks in advance for your help!

Best regards,
Jerry Bendiner

Hi @jbendiner,

Thank you for reaching out. To export an MPS file, you can do that with HiGHS as follows:

ampl.solve(solver="highs", highs_options="outlev=1 writeprob=model.mps") 
1 Like