メインコンテンツへスキップ

NPL problem with sum of squares and radical sign

回答済み

コメント

1件のコメント

  • Mario Ruthmair
    • Gurobi Staff

    Hi Zekun,

    The main idea is to decompose the objective function into basic parts, introduce helper variables and additional equality constraints for those parts, and finally rebuild the expression with those helper variables.

    Here are a few examples:

    • Products of variables with >= 3 factors: Gurobi only supports quadratic terms, but terms of higher order can be represented with additional variables. For example,
    x1 * x2 * x3 * x4 
    ==
    x1 * y
    subject to
    y = x2 * z
    z = x3 * x4
    • Fractions:
    1 / x
    ==
    y
    subject to
    1 = x * y
    • Roots:
    sqrt(x)
    ==
    y
    subject to
    y * y = x
    • Norms: You could probably model norms similar to the examples above, probably with a few more helper variables. Alternatively, Gurobi models norms for you using the norm general constraint methods, see here.

    If I did not miss anything, you should be able to model your objective function with the abovementioned ingredients.

    Best regards,
    Mario

    0

サインインしてコメントを残してください。