How do I assign new parameter values if am running various simulations. For instance in the loop below how do I change pwe[‘AGR-C’] to use different values. Have tries “let”, “purge”, “reset” without much success.

# Loop and solve all the simulations

for {s in SIM}

{

purge pwe;

let pwe[‘AGR-C’] := PWEAGRSIM[s];

let pwm[‘NAGR-C’] := PWMNAGRSIM[s];

let {c in C} tm[c] := TMSIM[c,s];

# Solve the model

solve;

# Keep the results

let {ce in CE} PWEREP[ce,s] := pwe[ce];

let {cm in CM} PWMREP[cm,s] := pwm[cm];

let {cm in CM} TARREP[cm,s] := tm[cm];

}