AnsweredAssumed Answered

Export an MPS file with a maximize objective function

Question asked by Mario Vélez-Gallego on Mar 24, 2018
Latest reply on Mar 26, 2018 by Susanne.Heip


Hi!

I need to export a mixed-integer linear program into an MPS file. I am using the following two lines of code:

 

     loadprob(TotalWeightedDelivery)

     writeprob(OutputFile,"")

 

My question is on how to maximize the objective function, as these two lines minimize it by default, and I haven't been able to find the instruction to change the sense of the objective value to Maximize. Any help would be greatly appreciated.

 

Best,

 

Mario Velez

Outcomes