David Cawlfield

Gurobi-versary
First Comment
First Question
  • Total activity 5
  • Last activity
  • Member since
  • Following 0 users
  • Followed by 0 users
  • Votes 0
  • Subscriptions 1

Activity overview

Latest activity by David Cawlfield
  • David Cawlfield commented,

    Thank's so much Eli, Sorry I'm so rusty at Python.  I'm trying to dust off some coding skills from about 10 years ago and learn the Gurobi interface at the same time.  It's a terrible feature of Py...

  • David Cawlfield commented,

    If I remove this constraint, the model solves, but with an unuseful result.  If I make the equality an inequality '<= 1', then I get a TypeError: '<=' not supported between instances of 'method' an...

  • David Cawlfield commented,

    Thank you,  this fix seems to work.   A followup problem is to set a constraint on a two-dimensional binary variable pvar.  I want each row of the model variable to sum to 1.0, so that the row repr...

  • David Cawlfield created a post,

    Constraint around a dot product of two columns

    Answered

    In my problem, sensarray is a two dimensional np array of constants, and plantvar is a two-dimensional GRB.BINARY model variable.  hvar is a one-dimensional GRB:CONTINUOUS model variable.  I want t...