Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Multiple SOS Type 1

    Posted 02/02/16 12:12 PM

    Originally posted by: SaiAnjani


    Hi,

     

    I am having constraints X1+X2+X3+X4=1 and X5+X6+X7+X8=1. Before hand I know, X1+X4<=1;X2+x4<=1,X3+x4<=1 and X5+X8<=1;X6+x8<=1;X7+X8<=1. I am trying to implement SOS Type-1 using MATLAB. Is there an easy way to pass cplex.addSOSs in a matrix form rather than iterating as shown in Transport.m example. I am having around 1000+ such SOS Type-1 relations.



     

    Thanks in Advance,

    Sai Anjani.


    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: Multiple SOS Type 1

    Posted 02/03/16 02:20 AM

    I am not sure I get your question. According to the reference documentation function addSOSs() allows to add multiple SOS constraints in one shot. Are you saying the input format for multiple constraints is not convenient for you?


    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: Multiple SOS Type 1

    Posted 02/03/16 11:38 AM

    Originally posted by: SaiAnjani


    Thanks for your Reply.

    For the SOS relations posted by me earlier.

    X1+X2+X3+X4=1 and X5+X6+X7+X8=1. Before hand I know, X1+X4<=1;X2+x4<=1,X3+x4<=1 and X5+X8<=1;X6+x8<=1;X7+X8<=1

     

    Are you suggesting to add multiple SOS constraint as below

     Cplex.addSOSs('111111',{[1 4]' [2 4]' [3 4]' [5 8]' [6 8]' [7 8]' },{[1 9]',[1 9]',[1 9]',[1 9]',[1 9]',[1 9]'}) . (Assuming weights 1,9 for respective indices).

    If this is the only way to add SOS constraints, As no. of such constraints increases(to the order of thousands); It is not that convenient.

     

     

     

     

     

     


    #CPLEXOptimizers
    #DecisionOptimization


  • 4.  Re: Multiple SOS Type 1

    Posted 02/09/16 10:24 AM

    But what exactly are you looking for? You asked for matrix input. What addSOSs() allows is to input a cell array. IMO, constructing a matrix or a cell array is the same, or am I missing anything here?


    #CPLEXOptimizers
    #DecisionOptimization