AMPL does not have a syntax for adding terms to an objective function that has already been defined. You might do something close to what you have mind by working at the input file level, writing the objective function statement piece by piece to a file and then reading the file at the end. Your main model would create the file and the optimal models would add to the same file:
#main.mod
printf "minimize OF_Everything: [function of x]" >obj.txt;
#option1.mod
printf " + [function of y]" >obj.txt;
#option2.mod
printf " + [function of z]" >obj.txt;
Following the reading of these files, you would need to actually define the objective by running the commands
close obj.txt;
include obj.txt ;
However it seems that the modularity that you are seeking is mainly preserved.
Bob Fourer
am...@googlegroups.com
=======