Read a MPS/LP file in Java

Questions on using the GAMS APIs (Python, .NET, etc.)
Post Reply
abb.omidi
User
User
Posts: 23
Joined: 2 years ago

Read a MPS/LP file in Java

Post by abb.omidi » 6 months ago

Hello support team,

Would you please, say that is there any way (or any example) to read an "MPS/LP" file in the GAMS Java API and get output in the specific format? If so, could you advise me, please?

Regards
Omidi. A

User avatar
bussieck
Moderator
Moderator
Posts: 349
Joined: 3 years ago

Re: Read a MPS/LP file in Java

Post by bussieck » 5 months ago

You can run the mps2gms utility (via some Java system call) to turn the MPS into a GAMS file. This GAMS file you can run with GAMSJob.run.

-Michael

Post Reply