Decision Optimization

Decision Optimization

Delivers prescriptive analytics capabilities and decision intelligence to improve decision-making.


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
Expand all | Collapse all

input the .lp files manually or you generate it with a program?

  • 1.  input the .lp files manually or you generate it with a program?

    Posted 01/23/12 09:35 AM

    Originally posted by: UC63_John_ABE


    Good day all,

    I hope this is not stupid but I need to know if you input the .lp files manually into a notepad or text files or you generate it with a program(C++ or Matlab or CPLEX).

    if it is with a program as I presume please how do I do it. I do know just little about programming but I can still do some stuffs.

    attached is a file I was working on BUT I am doing the input by manually and I have many x9 for example

    i.e x91, x92, etc and will have to generate more
    also x9 = xp where p is from 0 to 20 etc

    thanks for any help
    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: input the .lp files manually or you generate it with a program?

    Posted 01/23/12 02:06 PM

    Originally posted by: SystemAdmin


    What you wrote in your file is not even correct LP syntax. The LP file format does not support constructs like 'sum'. You can write small LP files by hand. But in general you should not do so. CPLEX comes with lots of examples that illustrate how to setup models using C++. Take a look at the examples directory.
    You may also want to consider using the modeling language OPL and the OPL IDE that comes with CPLEX Optimization Studio. To learn about the OPL IDE refer to the online documentation here.
    #CPLEXOptimizers
    #DecisionOptimization