Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Error code 1219

    Posted 04/28/12 06:21 PM

    Originally posted by: Eumpfenbach


    I have a fully working problem on a Windows machine using V12.2.

    I transfer it to a linux machine using V12.3.

    I see this error:

    Error using cplexlink123
    CPLEX Error  1219: No names exist.
     
     
    Error in /home/ed/ILOG/V12.3/cplex/matlab/@Cplex/Cplex.p>Cplex.solve (line 1474)
     
     
    Error in /home/ed/ILOG/V12.3/cplex/matlab/@Cplex/Cplex.p>Cplex.subsref (line 3716)
     
     
    Error in miptest (line 38)
    cplex.solve();
    


    This is my code:

    cplex = Cplex('mymodel');
    cplex.readModel('mymodel.lp');
    cplex.Model.sense = 'maximize';
    cplex.Model.ctype = ['C' * size(cplex.Model.A(1,:),2)];
    cplex.Param.preprocessing.presolve.Cur = 0;
    temp = find(cplex.Model.lhs ~= -Inf);
    cplex.Model.A = [cplex.Model.A; cplex.Model.A(temp,:) * (-1)];
    cplex.Model.rhs = [cplex.Model.rhs; cplex.Model.lhs(temp) * -1];
    cplex.Model.lhs = [cplex.Model.lhs; -Inf * ones(size(temp,1),1)];
    cplex.Model.lhs(temp) = -Inf;
    cplex.solve();
    


    Any idea what is going on?
    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: Error code 1219

    Posted 05/09/12 02:49 PM

    Originally posted by: Eumpfenbach


    still looking for an answer
    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: Error code 1219

    Posted 05/09/12 09:11 PM

    Originally posted by: Eumpfenbach


    Windows to Linux isn't the issue. Installed v12.2 for linux and works fine. Exact same code on all instances. Not sure what is going on. It's working, though, so I'm fine.
    #CPLEXOptimizers
    #DecisionOptimization


  • 4.  Re: Error code 1219

    Posted 05/10/12 04:31 AM

    Originally posted by: John Cui


    Could you please attach mymodel.lp file, then I can take it to reproduce?
    John Cui
    #CPLEXOptimizers
    #DecisionOptimization