This program solves a (discrete) time-dependent optimization problem related to the assignment of resources/agents to compartments that can be classified as either ordinary locations or storage points (warehouses).
- Assigning a resource to a compartment incurs a cost
- All resources are assigned to a unique compartment
- Each resource can be assigned to specific storage points that can potentially change in time
- No resource can stay more than consecutive x units of time in storage
- If a resource is at a given storage point at time k, then, if assigned to a storage point for time (k+1), only select storage locations are available.
- ap.dat
- Data for the problem
- ap.mod
- Definition of the optimization problem
- ap.run
- AMPL instructions to solve the optimization problem
To run, simply save all the files in the AMPL folder, type in the AMPL console
include ap.run;
and hit enter.