Z S

First Comment
First Question
  • Total activity 5
  • Last activity
  • Member since
  • Following 0 users
  • Followed by 0 users
  • Votes 0
  • Subscriptions 2

Activity overview

Latest activity by Z S
  • Z S created a post,

    How to linearize piecewise nonlinear function?

    Answered

    I establish a bi-level optimization model, in the lower-level, the objective function is a piecewise nonlinear function, like y=(x-c)^a, for x>=c. y=-k(c-x)^b, for x<c, a,b,c and k are constant. I ...

  • Z S commented,

    when i write " model.addGenConstrIndicator(x_k_i[i], True, D_k_i[i] > a, x_k == 1, name=f"constraint_level2_{k}_{i}")" in gurobi,  i get a feedback about "gurobipy.GurobiError: Additional sense arg...

  • Z S created a post,

    How do i model nested conditional constraints in Gurobi?

    Ongoing

    If D_k > a, then x_k=1, otherwise x_k=0. when x_k=1, if D_k(i) > a, then x_k(i) = 1, otherwise x_k(i) = 0. when x_k=1 and x_k(i) = 1, if D_k(ij) > a, then x_k(ij) = 1, otherwise x_k(ij) = 0. I want...