sum of absolute values constraint in semi definite programming

后端 未结 3 1592
醉梦人生
醉梦人生 2021-02-06 14:03

I want to further my real world semi definite programming optimization problem with a constraint on sum of absolute values. For example:

abs(x1) + abs(x2) + abs(         


        
3条回答
  •  轮回少年
    2021-02-06 14:40

    Your constraint is equivalent to the following eight constraints:

     x1 + x2 + x3 <= 10
     x1 + x2 - x3 <= 10
     x1 - x2 + x3 <= 10
     x1 - x2 - x3 <= 10
    -x1 + x2 + x3 <= 10
    -x1 + x2 - x3 <= 10
    -x1 - x2 + x3 <= 10
    -x1 - x2 - x3 <= 10
    

    I haven't used cvxopt, so I don't know if there is an easier way to handle your constraint with that package. For example, your constraint is equivalent to |x|_1 <= 10, where |x|_1 is the 1-norm of x.

提交回复
热议问题