I have a cost model that has warehouses with limited capacity, what I want to do is that the capacity depends on the flow of cargo passing through these warehouses. To do this I want to make a loop in which I take for the first iteration a fairly large seed value for the size of the warehouse, with the results for the second iteration this choose the flow that passes through the warehouse for the new capacity in the warehouse and run the model again, with the results do the third iteration, so usesively until the size of the capacity of the warehouse is regulated.
How can i do it?
Where in the AMPL book can I learn how to use the "for" loop?
Thank you very much for your time!