Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Cplexlp-Matlab-Empty outputs

    Posted 03/12/17 10:54 AM

    Originally posted by: YassH


    Hi,

    Today I installed CPLEX on my MAC-OS such as I can use the CPLEX library.

    I started with the function cplexlp and obviously it's not working.

    Whatever I put as Inputs, I always get empty outputs "[]" for the basic variables and "-8" for the first slack variable.

    Did I miss something during the installation??

    I attached a screenshot to illustrate the problem.

    Thank you in advance,

    Best Regards


    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: Cplexlp-Matlab-Empty outputs

    Posted 03/13/17 08:10 AM

    In the reference documentation for function cplexlp() you find this:

    [x, fval, exitflag] = cplexlp(...)
    

    So what you call x3 is in fact the exitflag. According to this page an exitflag of -8 means that your problem is infeasible or unbounded. That is why the x vector returned is empty and there is no objective function value to return. You should probably take a look at the examples that ship with CPLEX or at least check the reference documentation of the functions you are using.


    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: Cplexlp-Matlab-Empty outputs

    Posted 03/14/17 05:40 AM

    Originally posted by: YassH


    Thank you Daniel for your quick response.

    Unfortunately, this problem is not unfeasible and I also tried with other LPs and it always gives me empty solutions and the exit flag -8.

     

     


    #CPLEXOptimizers
    #DecisionOptimization


  • 4.  Re: Cplexlp-Matlab-Empty outputs

    Posted 03/14/17 06:43 AM

    It is not infeasible, but it is unbounded (and hence the dual is infeasible), isn't it?

    Since you do not specify any lower bounds all variables can be set to -infinity, thus there is no finite optimum.


    #CPLEXOptimizers
    #DecisionOptimization


  • 5.  Re: Cplexlp-Matlab-Empty outputs

    Posted 03/14/17 05:50 AM

    Originally posted by: YassH


    Another LP.


    #CPLEXOptimizers
    #DecisionOptimization


  • 6.  Re: Cplexlp-Matlab-Empty outputs

    Posted 03/14/17 06:56 AM

    Originally posted by: YassH


    Thank you Daniel, It worked.

     I thought that the boundary was by default set to [0,Inf[.

    Best Regards


    #CPLEXOptimizers
    #DecisionOptimization