NeuralNetworkOptimizer
-
class NeuralNetworkOptimizer : public OptimizerBase
Public Functions
-
inline virtual void Solve(Vector&, const Vector&, const VectorVector&, unsigned = 0) override
Computes the optimal Lagrange multilpiers for the dual entropy minimization problem.
- Parameters:
alpha – vector where the solution Lagrange multipliers are saved to.
u – moment vector
moments – VectorVector to the moment basis evaluated at all quadpoints
idx_cell – index of the cell where alpha should be computed (out of u)
-
inline virtual void SolveMultiCell(VectorVector&, const VectorVector&, const VectorVector&, Vector&) override
Computes the optimal Lagrange multilpiers for the dual entropy minimization problem.
- Parameters:
alpha – vector where the solution Lagrange multipliers are saved to.
u – moment vector
moments – VectorVector to the moment basis evaluated at all quadpoints
-
inline virtual void ReconstructMoments(Vector&, const Vector&, const VectorVector&) override
Reconstruct the moment sol from the Lagrange multiplier alpha.
- Parameters:
sol – moment vector
alpha – Lagrange multipliers
moments – Moment basis
-
inline virtual void Solve(Vector&, const Vector&, const VectorVector&, unsigned = 0) override