Skip to main content

NPL problem with sum of squares and radical sign

Answered

Comments

2 comments

  • Official comment
    Simranjit Kaur
    • Gurobi Staff
    This post is more than two years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum, or try Gurobot, our chatbot interface offering instant, expert-level support.
  • 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

Post is closed for comments.