Topic
  • 1 reply
  • Latest Post - ‏2013-07-18T13:15:49Z by AlexFleischer
NEAL90
NEAL90
1 Post

Pinned topic Find solution from LP-File with OPL

‏2013-07-18T08:20:26Z |

Hi all,

I am a newbie in programming with IBM ILOG CPLEX. For my problem I have found some similar question but not a suitable answer in the forum.

I have an LP file and would like to solve this with CPLEX. I have now entered the following code to solve the LP file with using OPL:

main
{  
cplex.importModel("RSR.lp");
cplex.solve();
writeln(cplex.getObjValue());

}

However, I did not get a solution as I know  from a normal OPL program, only some data in the statistics and in the engineprotokoll.

So my question is, whether there exist some more commands which i can enter in the OPL code to get the solution of my variables or whether i can convert my LP file to an OPL file?

 

Hope some of you can help me. Thanks for the support.

 

Neal