Your constraint named Constraint_coverage
looks good. Of course, your model needs to also include AMPL statements to define the sets and parameters that are used in the constraint; for example:
set Sites;
set DemandSites;
param d {DemandSites,Sites};
param demand {DemandSites};
I do have some concerns with your objective function Total_Cost
:
minimize Total_Cost:
sum {i in DemandSites, j in Sites, k in Types} F[k} * Xjk[j,k];
Of course, F[k}
should be F[k]
. More seriously, you are summing over i
in
DemandSites
, but there is no i
in F[k]
*
Xjk[j,k]
. This could mean that something is missing from the objective expression.