Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  no response after calling cplex in matlab

    Posted 02/24/12 04:34 PM

    Originally posted by: PingLiu


    I need to solve the problem attached in the file test.zip.
    after I run the command in Matlab
    [x,fval,exitflag,output] = cplexmilp(f,Aineq,bineq,Aeq,beq,[],[],[],lb,ub,ctype,[],[]);
    

    or
    cplex=Cplex(''); cplex.Model.sense = 'minimize';
    cplex.addCols(f,[],lb,ub,ctype);
    cplex.addRows([-inf*ones(size(bineq,1),1);beq], [Aineq;Aeq], [bineq;beq]);
    cplex.solve();
    


    I cannot get any response from matlab after waiting for several tens of minutes.
    what's wrong with it?
    thanks a lot.
    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: no response after calling cplex in matlab

    Posted 02/26/12 06:14 AM

    Originally posted by: SystemAdmin


    Maybe it just takes longer than expected to solve your model?
    Do you see any progress if you enable diagnostics?
    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: no response after calling cplex in matlab

    Posted 02/26/12 06:38 AM

    Originally posted by: John Cui


    Did you run our examples in your matlab? such as cplexmilpex, or mipex1? Is it the same as your code?

    John Cui
    #CPLEXOptimizers
    #DecisionOptimization


  • 4.  Re: no response after calling cplex in matlab

    Posted 03/05/12 12:06 PM

    Originally posted by: PingLiu


    yes, I think it maybe because of the performance of my mathematics model.
    after I modify the model, cplex can generate result as usual.
    thanks a lot.
    #CPLEXOptimizers
    #DecisionOptimization


  • 5.  Re: no response after calling cplex in matlab

    Posted 03/05/12 12:09 PM

    Originally posted by: PingLiu


    excuse me, how can I enable diagnostics?
    sometimes when the model takes too much time to run or is infeasible,
    no error information is given out.
    I think it's hard to find the point where the constraints are violated.
    #CPLEXOptimizers
    #DecisionOptimization


  • 6.  Re: no response after calling cplex in matlab

    Posted 03/05/12 08:41 PM

    Originally posted by: John Cui


    How about set options.diagnostics = 'on'?

    If it doesn't work, I suggest you to upgrade your CPLEX to the latest edition 12.4.

    John Cui
    #CPLEXOptimizers
    #DecisionOptimization