Surya Narayanan Hari
- 合計アクティビティ 23
- 前回のアクティビティ
- メンバー登録日
- フォロー 0ユーザー
- フォロワー 0ユーザー
- 投票 9
- サブスクリプション 6
アクティビティの概要
Surya Narayanan Hariさんの最近のアクティビティ-
Surya Narayanan Hariさんが投稿を作成しました:
@ operator for 2 Mvars
回答済みIs it possible to do the following with broadcasting in a constraint? (A and B are 2D MVars) $$ A @ B \leq \overrightarrow{1} $$
-
Surya Narayanan Hariさんが投稿を作成しました:
Division between float and grb variable
回答済みI 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...
-
Surya Narayanan Hariさんがコメントを作成しました:
Hi, it did. Thank you for helping.
-
Surya Narayanan Hariさんがコメントを作成しました:
Sure, x = 4 y = 3 gurobi_model = gp.Model("price_mechanism") p = gurobi_model.addMVar((y, 1), name='p') m = gurobi_model.addMVar((x, y), name='m') u = np.array([[100, 1, 0], [0, 1, 100], [0...
-
Surya Narayanan Hariさんが投稿を作成しました:
TypeError: only size-1 arrays can be converted to Python scalars
回答済みI 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...
-
Surya Narayanan Hariさんが投稿を作成しました:
Modeling quadratic constraints in different variables
回答済みI 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?
-
Surya Narayanan Hariさんが投稿を作成しました:
Non-Dcp-constraint
回答済みIs 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.
-
Surya Narayanan Hariさんが投稿を作成しました:
Adding MVars in indicator function
回答済みHi, 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...