I have a variable x
where its lower bound was defined as lb=zeros(3)
, after that I want to change for each element of lb
to be equal element of an array like c=[1;2;1]
what I want exactly is to make lb[i]=c[i] for i=1:length(c)
I used to do this in previous versions in the following way:
function setc(c)
for i = 1:3
m.linconstr[i].lb = float(c[i])
end
end
Of course where m=Model(Clpsolver())