Decision Optimization

Decision Optimization

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

 View Only
Expand all | Collapse all

Problem to export model .mod (Sequencing Problem) to .lp

  • 1.  Problem to export model .mod (Sequencing Problem) to .lp

    Posted Sat March 11, 2017 02:10 AM

    Originally posted by: MarcosThomaz


    I have a simple model:

     

    using CP;
    int n = ...;
    range rjobs = 0..n-1;
    int p[rjobs] = ...;
    int w[rjobs] = ...;
    int d[rjobs] = ...;
     
    tuple Job{
        key int id;
        int p;
        int w;
        int d;
    }

    {Job} Jobs = {<i+1, p[i], w[i], d[i]> | i in rjobs};

    dvar interval itvs[j in Jobs] size j.p;
    dvar sequence pitvs in itvs;

    minimize sum(j in Jobs) maxl(0, endOf(itvs[j])-j.d) * j.w;

    subject to{
        noOverlap(pitvs);
    }

     

    I followed as shown in this link: https://www.ibm.com/support/knowledgecenter/SSSA5P_12.6.3/ilog.odms.ide.help/OPL_Studio/refoplide/topics/opl_ideref_intell_ed_lped_export_to_lpfile.html

    For another models, works, but any model using Interval and Sequence don''t. I'm using Cplex V. 12.6.3.

    Does anyone know how to export this model to lp format?

     

    Thanks,

     


    #DecisionOptimization
    #OPLusingCPOptimizer


  • 2.  Re: Problem to export model .mod (Sequencing Problem) to .lp

    Posted Sat March 11, 2017 01:09 PM

    Hi,

    this is normal.

    Instead of .lp you should use .cpo for cp models

    regards


    #DecisionOptimization
    #OPLusingCPOptimizer


  • 3.  Re: Problem to export model .mod (Sequencing Problem) to .lp

    Posted Sat March 11, 2017 02:00 PM

    Originally posted by: MarcosThomaz


    Thanks Alex. 

    Why doesn't works with .lp when my model has a Interval and/or Sequence? 

    For another model works. 


    #DecisionOptimization
    #OPLusingCPOptimizer


  • 4.  Re: Problem to export model .mod (Sequencing Problem) to .lp



  • 5.  Re: Problem to export model .mod (Sequencing Problem) to .lp

    Posted Mon March 13, 2017 01:01 PM

    Originally posted by: MarcosThomaz


    Ok Alex. But I think this is an undocumented error, because the version I use is exactly the same as described in the topic I mentioned.
    Thank you anyway.


    #DecisionOptimization
    #OPLusingCPOptimizer