High Level functions and Classes
The following documentation pertains to the classes and functions that would most likely be useful for running optimizations directly through optkings python API and functions that would be helpful for driver level operations.
optking.opt_helper Module
Helpers to provide high-level interfaces for optking. The Helpers allow individual steps to be taken easily. EngineHelper runs calculations through QCEngine. CustomHelper adds the abilility to directly input gradients.
Classes
|
Helper class that provides a standard way to create an ABC using inheritance. |
|
|
|
Class allows for easy setup of optking. Accepts custom forces, energies, |
|
Perform an optimization using qcengine to compute properties. Use OptimizationInput to setup |
|
Base class for CustomHelper (accepts user provided gradients) and EngineHelper (uses MolSSI's QCEngine for gradients) |
|
|
|
|
|
Recommended use of Optking's Optimization Algorithms is to create this class and then loop over take_step. |
Class Inheritance Diagram
optking.optimize Module
Provides some of the high level functions and classes to run optimizations. This is a good starting place for anyone looking to add features to the code to familarize themselves with the overall workings of optking. Functions may be useful to users seeking greater control over the inner workings of optking than provided by the OptHelpers. For instance if manually creating a molecular system or manually controlling / switching algorithms on the fly.
See also OptimizationAlgorithm <stepalgorithms.OptimizationAlgorithm> and `OptimizationInterface <stepalgorithms.OptimizationInterface>`for core functionality common to all the optimization algorithms like backtransformation and displacement.
Functions
|
Compute hessian and fetch gradient from output if possible. |
|
Calculate, update, or guess hessian as appropriate. |
|
Add optimization coordinates to molecule system. |
|
create optimization algorithms. method may be redundant however params is allowed |
|
Driver for OptKing's optimization procedure. |
|
|
|
Formats Arrays for Logging or Printing |
|
|
|
Formats a Matrix for Logging or Printing |
Classes
|
|
|
An implementation of MolSSI's qc schema |
|
|
|
|
|
Recommended use of Optking's Optimization Algorithms is to create this class and then loop over take_step. |