Decision Optimization

Decision Optimization

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

 View Only
  • 1.  Non-convex Quadratic Objective and Linear Constraints

    Posted Fri March 21, 2014 11:51 AM

    Originally posted by: MarekGrzes


    Hello,

    I would like to use OPL/CPLEX to solve an optimization problem with non-convex quadratic objective subject to linear constraints. I was reading other posts on IBM forums and it looks that I can solve such a problem approximately (local optima) setting solutiontarget=2. I am trying to run a tiny example to check if this works, but the following code does not work:

    dvar float x;
    dvar float y ;

    execute PARAMS {
      solutiontarget=2;
    }

    minimize x * y;

    subject to {
      0.5 <= x <= 1;
      0.5 <= y <= 1;
    }

    CPLEX says:

    ### ENGINE exception: CPLEX Error  5002: Q in objective is not positive semi-definite.


    <<< no solution
     

    Is there anything else that I need to change to obtain an approximate solution? Obviously, Q is not PSD, but if CPLEX can search for an approximation, it should be able to ignore this requirement.

     

    Kind Regards,

    Marek

     

     


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: Non-convex Quadratic Objective and Linear Constraints

    Posted Fri March 21, 2014 12:58 PM

    Hi

    you should write

    execute PARAMS {
      cplex.solutiontarget=2;
    }
     

    regards


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 3.  Re: Non-convex Quadratic Objective and Linear Constraints

    Posted Fri March 21, 2014 03:21 PM

    Originally posted by: MarekGrzes


    Thanks!


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 4.  Re: Non-convex Quadratic Objective and Linear Constraints

    Posted Fri September 26, 2014 12:10 PM

    Originally posted by: S6R9_Dua_Weraikat


    hi,

    i have a question: what does it mean that:

    cplex.solutiontarget=2;

     

    ???

     


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 5.  Re: Non-convex Quadratic Objective and Linear Constraints



  • 6.  Re: Non-convex Quadratic Objective and Linear Constraints

    Posted Fri September 26, 2014 12:53 PM

    Originally posted by: S6R9_Dua_Weraikat


    Thanks for reply. But for my problem it is not integer. I have linear constraints and for the objective function: I have 3 terms each is the product of two decision variables. (Maximize X1*X2+ X3*X4+X5*X6- x1-2X3...)

    I want to know if I can use the same cplex.solutiontarget=2;

    to solve my model.

     

    I use cplex studio 12.3


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 7.  Re: Non-convex Quadratic Objective and Linear Constraints

    Posted Wed October 01, 2014 07:05 AM

    Hi

    have you had a look at the example qcpex1.mod in opl\examples\opl\qcpex1 ?

    regards


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 8.  Re: Non-convex Quadratic Objective and Linear Constraints

    Posted Wed October 01, 2014 02:30 PM

    Originally posted by: S6R9_Dua_Weraikat


    yes I did.. Thank you. So it is just local optimal not global optimal.


    #DecisionOptimization
    #OPLusingCPLEXOptimizer