how do I have to write this equivalent from gurobi in pyomo?
--> I want build the model in a loop and need to access a variable/result of the previous step:
variables = {'A_0': 1, 'B_0':2, 'C_0':3}
for ix in range(1,77):
variables[f'A_{ix}'] = model.addVar(vtype=GRB.CONTINUOUS, name=f'A_{ix}', lb=0.0)
variables[f'B_{ix}'] = model.addVar(vtype=GRB.CONTINUOUS, name=f'B_{ix}', lb=0.0, ub=77)
variables[f'C_{ix}'] = model.addVar(vtype=GRB.CONTINUOUS, name=f'C_{ix}', lb=0.0)
model.addConstr(variables[f'C_{ix}'] <= variables[f'A_{ix}'] * variables[f'B_{ix-1}'])