Topic
  • 1 reply
  • Latest Post - ‏2013-10-04T15:47:59Z by DanielJunglas
Mr.Hai
Mr.Hai
1 Post

Pinned topic How to generate lp file from Matlab

‏2013-09-24T21:58:09Z |

Hello,

I am modelling MILP problem in Matlab. The structure includes: f, Aineq, bineq, Aeq, beq, lower bounds, upper bounds. The function cplexmilp is called for solving.

I wonder if there is a way to generate the lp file from these inputs:  f, Aineq, bineq, Aeq, beq, lower bounds, upper bounds.

 

Thank you for any suggestion to make lp file from Matlab.

  • DanielJunglas
    DanielJunglas
    119 Posts
    ACCEPTED ANSWER

    Re: How to generate lp file from Matlab

    ‏2013-10-04T15:47:59Z  

    In order to create an LP file, set the exportmodel field of the options argument to the desired file name and run a solve (potentially with a small node or iteration limit). See also the documentation for function cplexoptimset.

  • DanielJunglas
    DanielJunglas
    119 Posts

    Re: How to generate lp file from Matlab

    ‏2013-10-04T15:47:59Z  

    In order to create an LP file, set the exportmodel field of the options argument to the desired file name and run a solve (potentially with a small node or iteration limit). See also the documentation for function cplexoptimset.