Read a MPS/LP file in Java

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

Read a MPS/LP file in Java

Post by abb.omidi »

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: 1037
Joined: 7 years ago

Re: Read a MPS/LP file in Java

Post by bussieck »

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