AMPL commands for Sensitivity Analysis -------------------------------------- display .rc; Displays the reduced cost of the variable named . display .down; Displays, respectively, the lower and upper endpoints of display .up; the range of the objective-function coefficient of the variable named for which the current basis remains optimal. display .current; Displays the current value of the objective-function coefficient of the variable named . display ; Displays the shadow price of the constraint . display .down; Displays, respectively, the lower and upper endpoints of display .up; the range of the right-hand-side of the constraint named for which the current basis remains feasible, and hence optimal. display .current; Displays the current value of the right-hand-side of the constraint named . display .slack; Displays the slack in the constraint named . let :=; Assigns the variable or parameter named the value ; Useful for making small changes to the LP data. For larger changes, use "reset data; data ;" Some useful AMPL commands ------------------------- expand; Displays the current LP model with the instantiated data. Useful for debugging and in sensitivity analysis to know which LP AMPL is really solving. Can also type "expand ;", where is the name of a constraint or objective function to display only the given constraint or objective function instantiated with data. show; Displays the names of the sets, parameters, variables, constraints, and objective function of current LP model. Can also type "show ;" where is the name of a set, parameter, variable, constraint or objective function. reset; AMPL always works with a current LP model, and "reset;" resets the current AMPL LP to the empty LP. Useful if you want to solve multiple LPs in the same session. reset data; Resets only the data of the current LP model retaining the model. Batch operation OR showing a transcript of AMPL session ------------------------------------------------------- include ; Executes the AMPL commands in in sequence as if they were typed at the AMPL prompt. Useful for batch operation and giving a transcript of the AMPL session - simply save the commands you are going to use in the session in , and type "include ;"