
Surya Narayanan Hari
- Total activity 25
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 9
- Subscriptions 7
Posts
Recent activity by Surya Narayanan Hari-
@ operator for 2 Mvars
AnsweredIs it possible to do the following with broadcasting in a constraint? (A and B are 2D MVars) $$ A @ B \leq \overrightarrow{1} $$
-
Division between float and grb variable
AnsweredI am trying to add a constraint on the inverse of the variable of the form $$1/x[i, j] + a^Ty + b \leq c$$ but I get the message that div does not support float and MVar. Is this currently suppor...
-
TypeError: only size-1 arrays can be converted to Python scalars
AnsweredI am trying to index into a Vector p, which is an MVar to perform the following operation. p[j] * u[i] @ m[i] Note u is a scalar matrix, and m is a matrix of variables. However, I get the error m...
-
Modeling quadratic constraints in different variables
AnsweredI saw on the website that one can write quadratic constraints of the form x*x + y*y <= c, but Is it possible to write a constraint of the form x^T y <= c where x and y are vectors?
-
Non-Dcp-constraint
AnsweredIs it possible to have a non-DCP constraint such as min(1/x, 1) + ax + b <= 0? Sorry if this has been asked before - I would be happy to take a look at any pointers.
-
Adding MVars in indicator function
AnsweredHi, I would like to write the following formula, where permutations is a known matrix and assignments and unfair_assignments are variables for i in range(n): for j in range(m): for k in range...