Surya Narayanan Hari

  • Gurobi-versary
  • Curious
  • First Comment
  • 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 Recent activity Votes
  • @ operator for 2 Mvars

    Answered

    Is 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

    Answered

    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...

  • TypeError: only size-1 arrays can be converted to Python scalars

    Answered

    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...

  • Modeling quadratic constraints in different variables

    Answered

    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?

  • Non-Dcp-constraint

    Answered

    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. 

  • Adding MVars in indicator function

    Answered

    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...