Decision Optimization

Decision Optimization

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

 View Only
Expand all | Collapse all

Can I solve a SOCP in opl using cplex?

  • 1.  Can I solve a SOCP in opl using cplex?

    Posted Thu December 18, 2014 04:27 AM

    Originally posted by: GACNEU


    if yes, is there any examples for that?

    I only found SOCP examples for C and Java ang etc


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: Can I solve a SOCP in opl using cplex?

    Posted Thu December 18, 2014 06:28 AM

    Hi

    could the following example help ?

    dvar float+  x[1..6];
     
     minimize sum(i in 1..6) x[i];
     
     subject to
     {
     
    x[1]+x[2]+x[5]==8;
    x[3]+x[6]+x[5]==10;
    -x[1]*x[1]+x[2]*x[2]+x[3]*x[3]<=0;
    -x[4]*x[4]+x[5]*x[5]<=0;
     }

    regards


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 3.  Re: Can I solve a SOCP in opl using cplex?

    Posted Thu December 18, 2014 07:01 AM

    Originally posted by: GACNEU


    Thanks Alex. It goes.


    #DecisionOptimization
    #OPLusingCPLEXOptimizer