Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  How to express it using CPLEX?

    Posted 09/24/13 03:55 AM

    Originally posted by: heidizh


    S is a set of nodes. I want to express that i belongs to  S while j does not belong to it. How to express it using CPELX?

     

    Let me explain it more explicitly. V is a set of nodes. S represents an arbitrary set of nodes, and S belongs to V. How to express it when i is in S and j is not S but in V?

     


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: How to express it using CPLEX?

    Posted 09/24/13 04:06 AM

    Hi,

     

    let me give you an example of in and not in:

     

    {string} nodes={"A","B"};

    string s1="A";
    string s2="C";

    assert s1 in nodes;
    assert s2 not in nodes;

     

    regards


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 3.  Re: How to express it using CPLEX?

    Posted 09/24/13 04:12 AM

    Originally posted by: heidizh


    Thank you very much! Actually, I  want to express a constraint somehow different from the example you give. Please check it in the attachments. Thank you.


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 4.  Re: How to express it using CPLEX?

    Posted 09/24/13 04:20 AM

    Originally posted by: heidizh


    Let me explain it more explicitly. V is a set of nodes. S represents an arbitrary set of nodes, and S belongs to V. How to express it when i is in S and j is not S but in V?


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 5.  Re: How to express it using CPLEX?

    Posted 09/24/13 04:56 AM

    forall(i in S,j in (S diff V)) ?

    but if what you want to express is for all S subset of V then this is something else

    regards


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 6.  Re: How to express it using CPLEX?

    Posted 09/24/13 04:59 AM

    Originally posted by: heidizh


    Thank you, Alex. 

    You guess it. What i want to express is for all S subset of V,  can you help me express it?


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 7.  Re: How to express it using CPLEX?

    Posted 01/14/15 08:21 PM

    Originally posted by: max__x


    Hello, Heidizh

    Have you solve the problem you got?

    since  I am facing the same problem as you, if you solved it, could you tell me how to do it.

    I will very appreciate it!

     


    #DecisionOptimization
    #OPLusingCPLEXOptimizer