Read a MPS/LP file in Java

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

Read a MPS/LP file in Java

Post by abb.omidi » 3 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

pragatisatpute
User
User
Posts: 1
Joined: 1 month ago

Re: Read a MPS/LP file in Java

Post by pragatisatpute » 1 month ago

I have the same question. Any help? Thank in advance!

User avatar
bussieck
Moderator
Moderator
Posts: 337
Joined: 2 years ago

Re: Read a MPS/LP file in Java

Post by bussieck » 1 month 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