Reaktoro 
A unified framework for modeling chemically reactive systems
Reaktoro::OptimumSolver Class Reference

Detailed Description

The friendly interface to all optimisation algorithms.

#include <OptimumSolver.hpp>

Public Member Functions

 OptimumSolver ()
 Construct a default OptimumSolver instance.
 
 OptimumSolver (OptimumMethod method)
 Construct an OptimumSolver instance with given method.
 
 OptimumSolver (const OptimumSolver &other)
 Construct a copy of an OptimumSolver instance.
 
virtual ~OptimumSolver ()
 Destroy this OptimumSolver instance.
 
auto operator= (OptimumSolver other) -> OptimumSolver &
 Assign a copy of an OptimumSolver instance.
 
auto setMethod (OptimumMethod method) -> void
 Set the optimisation method.
 
auto approximate (const OptimumProblem &problem, OptimumState &state) -> OptimumResult
 Find an initial guess for an optimisation problem. More...
 
auto approximate (const OptimumProblem &problem, OptimumState &state, const OptimumOptions &options) -> OptimumResult
 Find an initial guess for an optimisation problem with given options. More...
 
auto solve (const OptimumProblem &problem, OptimumState &state) -> OptimumResult
 Solve an optimisation problem. More...
 
auto solve (const OptimumProblem &problem, OptimumState &state, const OptimumOptions &options) -> OptimumResult
 Solve an optimisation problem with given options. More...
 
auto dxdp (const Vector &dgdp, const Vector &dbdp) -> Vector
 Return the sensitivity dx/dp of the solution x with respect to a vector of parameters p. More...
 

Member Function Documentation

auto Reaktoro::OptimumSolver::approximate ( const OptimumProblem problem,
OptimumState state 
) -> OptimumResult

Find an initial guess for an optimisation problem.

Parameters
problemThe definition of the optimisation problem
state[in,out]The initial guess and the final state of the optimisation approximation
auto Reaktoro::OptimumSolver::approximate ( const OptimumProblem problem,
OptimumState state,
const OptimumOptions options 
) -> OptimumResult

Find an initial guess for an optimisation problem with given options.

Parameters
problemThe definition of the optimisation problem
state[in,out]The initial guess and the final state of the optimisation approximation
optionsThe options for the optimisation calculation
auto Reaktoro::OptimumSolver::solve ( const OptimumProblem problem,
OptimumState state 
) -> OptimumResult

Solve an optimisation problem.

Parameters
problemThe definition of the optimisation problem
state[in,out]The initial guess and the final state of the optimisation calculation
auto Reaktoro::OptimumSolver::solve ( const OptimumProblem problem,
OptimumState state,
const OptimumOptions options 
) -> OptimumResult

Solve an optimisation problem with given options.

Parameters
problemThe definition of the optimisation problem
state[in,out]The initial guess and the final state of the optimisation calculation
optionsThe options for the optimisation calculation
auto Reaktoro::OptimumSolver::dxdp ( const Vector dgdp,
const Vector dbdp 
) -> Vector

Return the sensitivity dx/dp of the solution x with respect to a vector of parameters p.

Parameters
dgdpThe derivatives dg/dp of the objective gradient grad(f) with respect to the parameters p
dbdpThe derivatives db/dp of the vector b with respect to the parameters p

The documentation for this class was generated from the following files: