Decision Optimization

Decision Optimization

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

 View Only
Expand all | Collapse all

Convert GAMS Files to CPLEX

  • 1.  Convert GAMS Files to CPLEX

    Posted Sun May 31, 2015 05:11 AM

    Originally posted by: Work22


    Hey there,

     

    I am completly new at CPLEX and any other solver. At the moment I am trying to import the attached files (toworkforceallshifts.gms; workforcescheduling.gms; AllShifts.inc) to CPLEX. The model is described in ColumnGeneration.pdf

    I have already contacted GAMS to use the GAMS/CPLEX-Link but the free demo version can only solve models with a limited size. That is why I have to convert/import the complete model because I dont have a commercial licencse of GAMS.

    But at the moment I dont know how to start. The Gams-sales-team provides me with two converted files (cplex.lp & cplex.mps) which should be useable in CPLEX.

    To sum up:

    How can I import the model into CPLEX?

     

    Thanks for your help :)

     

    Cheers!


    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: Convert GAMS Files to CPLEX

    Posted Mon June 01, 2015 03:25 AM

    Hi,

    you can use the command line cplex.exe in order to run your lp file.

    You can also use OPL:

    main
    {
    cplex.importModel("cplex.lp");

    cplex.solve();
    writeln(cplex.getObjValue());


    }

    and

     

    you ll gte 310 as a result

     

    regards


    #CPLEXOptimizers
    #DecisionOptimization