Package ffx.algorithms.commands
Class Minimize
java.lang.Object
ffx.utilities.FFXCommand
ffx.algorithms.cli.AlgorithmsCommand
ffx.algorithms.commands.Minimize
The Minimize script uses a limited-memory BFGS algorithm to minimize the energy of a molecular system.
Usage:
ffxc Minimize [options] <filename> [file2...]
Usage:
ffxc Minimize [options] <filename> [file2...]
-
Field Summary
Fields inherited from class ffx.algorithms.cli.AlgorithmsCommand
activeAssembly, algorithmFunctions, algorithmListener, baseDirFields inherited from class ffx.utilities.FFXCommand
args, binding, color, help, logger, parseResult, version -
Constructor Summary
ConstructorsConstructorDescriptionMinimize()Minimize Constructor.Minimize(FFXBinding binding) Minimize Constructor.Minimize constructor that sets the command line arguments. -
Method Summary
Modifier and TypeMethodDescriptiondoubleGet the final energy after minimization.Get the list of energies recorded during minimization.Returns a List of all Potential objects associated with this script.doubleGet the final RMS gradient after minimization.run()Execute this Command.toString()Methods inherited from class ffx.algorithms.cli.AlgorithmsCommand
destroyPotentials, getActiveAssemblies, getActiveAssembly, getPotentialsFromAssemblies, init, saveDirFile, setBaseDir, updateTitleMethods inherited from class ffx.utilities.FFXCommand
getCommand, helpString, listCommands, setBinding
-
Constructor Details
-
Minimize
public Minimize()Minimize Constructor. -
Minimize
Minimize Constructor.- Parameters:
binding- The Binding to use.
-
Minimize
Minimize constructor that sets the command line arguments.- Parameters:
args- Command line arguments.
-
-
Method Details
-
run
Execute this Command.- Overrides:
runin classFFXCommand- Returns:
- The current FFXCommand.
-
toString
-
getEnergyList
Get the list of energies recorded during minimization.- Returns:
- A List of Double energies, or null if minimization was not run.
-
getRMSGradient
public double getRMSGradient()Get the final RMS gradient after minimization.- Returns:
- The final RMS gradient or NaN if minimization was not run.
-
getEnergy
public double getEnergy()Get the final energy after minimization.- Returns:
- The final energy or NaN if minimization was not run.
-
getPotentials
Returns a List of all Potential objects associated with this script.- Overrides:
getPotentialsin classAlgorithmsCommand- Returns:
- All Potentials. Sometimes empty, never null.
-