Let $r,\epsilon > 0$ and $a, b \in \mathbb R^n$ with $\|a\|_2 \le r$. Define $C(a) := \{x \in \mathbb R^p | \|x+a\|_2 \le r,\;\|x\|_\infty \le \epsilon\}$, and assume it is non-empty.
Question
- (A) How to formulate and solve the problem problem $\sup_{x \in C(a)} b^Tx$ in the cvxpy language ?
- (B) Same question with $\|a\|_2 = r$ and $C(a) := \{x \in \mathbb R^p | \|x+a\|_2 = r,\;\|x\|_\infty \le \epsilon\}$
Related to: https://math.stackexchange.com/q/3080805/168758
Disclaimer: I've never done cvxopt / cvxpy before. I plan to learn the syntax later. For now, I just want something to plug-and-play. Thanks!
cvxpy
) and/or the CVXPY Google group. I think you should learn the basic cvxpy syntax sooner, rather than later. Otherwise you can't be reasonably confident that the "plug-and-play" code is correct. $\endgroup$ – GoHokies Jan 21 '19 at 11:01