1

I am trying to translate a julia code to python and I'm stuck to understand a function of linear programming using CLP in julia or Gurobi, the function is:

function setc(c)
    for i = 1:size(A, 1)
        m.linconstr[i].lb = float(c[i])
    end

Where A is a matrix, lb and mis the name of the model that is used is the lower bound. To be more specific I want to understand what is the meaning of m.linconstr[i]

kabanus
  • 24,623
  • 6
  • 41
  • 74
M.HANHASSE
  • 129
  • 1
  • 6
  • Code you please edit the question so that the code appears as a separate block? Putting empty lines before and after should help with that. – Roland Weber May 27 '19 at 09:00
  • Pure guess here, but I would read that as setting the lower bound of constraint indexed `i` as `c[i]`. – kabanus May 27 '19 at 11:21
  • it makes sense to me, but i don't know can i write it in python as i've been struggling with it – M.HANHASSE May 28 '19 at 03:10

0 Answers0