I would recommend you try the FoldX mutation engine. It is very easy to use and state of the art (it is the main competitor to expensive commercial software). It can do both of what you want - the mutation and energy optimisation. It may not work as well as molecular dynamics software, but for your simple task, it is a reasonable solution.
A simple command line can do it:
First, repair your structure (since, usually PDBs are not energetically optimised, so you could get better energy anyway without doing this):
FoldX --command=repairpdb --pdb=1AJY.pdb
Then, either use AlaScan or PositionScan to mutate. AlaScan only mutates to Alanine. PositionScan can mutate to any amino acid. More advanced mutations can be done with the BuildModel command.
FoldX --command=PositionScan --pdb=1AJY_Repair.pdb --output-file=1AJY_Repair_MA30d --out-pdb=false --positions=MA30d
Note: 'd' means try mutate the residue to 24 different amino acids; or, you can specify any of those 24, including the standard 20.
Which produces two files:
- PS_1AJY_Repair_MA30d_scanning_output.txt
- energies_30_1AJY_Repair
(It can also output the mutated pdb file by setting --out-pdb=true.)
Either of those files can be used to determine change in free energy upon mutation (ddg ~ delta delta g). The second file has additional information (the individual values used to calculate total change in free energy).
Note: The FoldX website has very good documentation for each FoldX command. You can find any additional information you require there.