Read a MPS/LP file in Java

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

Read a MPS/LP file in Java

Post by abb.omidi » 4 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: 2 months ago

Re: Read a MPS/LP file in Java

Post by pragatisatpute » 2 months ago

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

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

Re: Read a MPS/LP file in Java

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

kashturi
User
User
Posts: 1
Joined: 3 weeks ago

Re: Read a MPS/LP file in Java

Post by kashturi » 3 weeks ago

I am also looking for same information

Post Reply