Skip to main content

Formulation of a multivariate piecewise linear constraints

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.
  • Riley Clement
    • Gurobi Staff

    Hi Patrick,

    One approach would be to construct m disjoint convex regions:

    \[\mathcal{S}'_i = \{(p,y) : y \in \mathcal{S}_i, p = a^T_i - b_i\}\]

    over completely separate sets of variables, eg \((p_i, y_i)\), then introduce binary variables \(x_1, \ldots, x_m\) and the constraint \(\sum_i x_i = 1\)

    and use indicator constraints of the form

    (x_i == 1) >> (p == p_i)

    (or the big M equivalent).

    - Riley

     

    0

Post is closed for comments.