I have written the following, and I still do not get the value of coeff (and cannot change the coeff).
from gurobipy import *
m=Model("testlpread")
m=read("mpsfiletest.lp")
m.optimize()
print((m.getVarByName('x1').x)) #this works. I get the value of the variable.
print((m.getConstrByName('c1'))) #I get the output as "c1" for this. I am not sure if that is what I should get.
print(m.getCoeff(('c1')),(('x3').x)) #doesnt work.
print(m.getCoeff(('c1'),('x3'))) #doesnt work.
Please let me know if you are able to do it. Thank you very much for your time!