EquilibriumSetup.hpp
77 auto assembleLowerBoundsVector(EquilibriumRestrictions const& restrictions, ChemicalState const& state0) const -> VectorXd;
82 auto assembleUpperBoundsVector(EquilibriumRestrictions const& restrictions, ChemicalState const& state0) const -> VectorXd;
The class that computes chemical properties of a chemical system.
Definition: ChemicalProps.hpp:34
The class that computes chemical properties of a system during equilibrium calculations.
Definition: EquilibriumProps.hpp:35
The class used to define reactivity restrictions in a chemical equilibrium calculation.
Definition: EquilibriumRestrictions.hpp:28
Used to construct the optimization problem for a chemical equilibrium calculation.
Definition: EquilibriumSetup.hpp:39
auto assembleLowerBoundsVector(EquilibriumRestrictions const &restrictions, ChemicalState const &state0) const -> VectorXd
Assemble the lower bound vector xlower in the optimization problem where x = (n, q).
auto updateGradW() -> void
Update the derivatives of the chemical potentials and residuals of the equilibrium constraints with r...
auto usingDiagonalApproxDerivatives() -> bool
Return true if a diagonal structure is adopted for the Hessian matrix Hxx.
auto options() const -> EquilibriumOptions const &
Return the options for the solution of the equilibrium problem.
auto getGibbsHessianC() -> MatrixXdConstRef
Get the updated Hessian matrix of the Gibbs energy with respect to c.
auto setOptions(EquilibriumOptions const &options) -> void
Set the options for the solution of the equilibrium problem.
auto equilibriumProps() const -> EquilibriumProps const &
Return the current chemical properties of the system as an EquilibriumProps object.
auto getGibbsGradX() -> VectorXdConstRef
Get the updated gradient vector of the Gibbs energy with respect to x.
auto updateGradX(VectorXlConstRef ibasicvars) -> void
Update the derivatives of the chemical potentials and residuals of the equilibrium constraints with r...
auto Aex() const -> MatrixXdConstRef
Return the coefficient matrix Aex in the optimization problem.
auto Aep() const -> MatrixXdConstRef
Return the coefficient matrix Aep in the optimization problem.
auto updateGradP() -> void
Update the derivatives of the chemical potentials and residuals of the equilibrium constraints with r...
auto assembleChemicalPropsJacobianEnd() -> void
Disable recording of derivatives of the chemical properties with respect to *(n, p,...
auto assembleUpperBoundsVector(EquilibriumRestrictions const &restrictions, ChemicalState const &state0) const -> VectorXd
Assemble the upper bound vector xupper in the optimization problem where x = (n, q).
auto chemicalProps() const -> ChemicalProps const &
Return the current chemical properties of the system as a ChemicalProps object.
auto getGibbsEnergy() -> real
Get the updated Gibbs energy value.
auto update(VectorXrConstRef x, VectorXrConstRef p, VectorXrConstRef w) -> void
Update the chemical potentials and residuals of the equilibrium constraints.
auto usingPartiallyExactDerivatives() -> bool
Return true if partially exact derivatives are adopted for the Hessian matrix Hxx.
auto Aen() const -> MatrixXdConstRef
Return the block Aen corresponding to variables n in the coefficient matrix Aex = [Aen Aeq] of the op...
~EquilibriumSetup()
Destroy this EquilibriumSetup object.
EquilibriumSetup(EquilibriumSetup const &other)
Construct a copy of an EquilibriumSetup object.
auto operator=(EquilibriumSetup other) -> EquilibriumSetup &
Assign a copy of an EquilibriumSetup object to this.
auto assembleChemicalPropsJacobianBegin() -> void
Enable recording of derivatives of the chemical properties with respect to *(n, p,...
auto getGibbsHessianX() -> MatrixXdConstRef
Get the updated Hessian matrix of the Gibbs energy with respect to x.
auto Aeq() const -> MatrixXdConstRef
Return the block Aeq corresponding to variables n in the coefficient matrix Aex = [Aen Aeq] of the op...
auto dims() const -> EquilibriumDims const &
Return the dimensions of the variables in the equilibrium problem.
auto getGibbsHessianP() -> MatrixXdConstRef
Get the updated Hessian matrix of the Gibbs energy with respect to p.
auto getConstraintResidualsGradC() -> MatrixXdConstRef
Get the updated Jacobian of the equilibrium constraints with respect to c.
auto getConstraintResidualsGradX() -> MatrixXdConstRef
Get the updated Jacobian of the equilibrium constraints with respect to x.
auto getConstraintResidualsGradP() -> MatrixXdConstRef
Get the updated Jacobian of the equilibrium constraints with respect to p.
EquilibriumSetup(EquilibriumSpecs const &specs)
Construct an EquilibriumSetup object with given specifications.
auto getConstraintResiduals() -> MatrixXdConstRef
Get the updated residuals of the equilibrium constraints.
The class used to define conditions to be satisfied at chemical equilibrium.
Definition: EquilibriumSpecs.hpp:281
The namespace containing all components of the Reaktoro library.
Definition: Algorithms.hpp:29
Eigen::Ref< const VectorXl > VectorXlConstRef
Convenient alias to Eigen type.
Definition: Matrix.hpp:68
Eigen::Ref< const VectorXr > VectorXrConstRef
Convenient alias to Eigen type.
Definition: Matrix.hpp:60
autodiff::real real
The number type used throughout the library.
Definition: Real.hpp:26
std::unique_ptr< T > Ptr
Convenient alias for std::unique_ptr<T>.
Definition: Types.hpp:102
Eigen::Ref< const VectorXd > VectorXdConstRef
Convenient alias to Eigen type.
Definition: Matrix.hpp:76
Eigen::Ref< const MatrixXd > MatrixXdConstRef
Convenient alias to Eigen type.
Definition: Matrix.hpp:139
The dimensions of the variables in a chemical equilibrium problem.
Definition: EquilibriumDims.hpp:47
The options for the equilibrium calculations.
Definition: EquilibriumOptions.hpp:43