Template Class MiniGrid

Inheritance Relationships

Base Type

Class Documentation

template<class ScalarT, typename IdxT>
class MiniGrid : public GridKit::ModelEvaluatorImpl<ScalarT, IdxT>

Implementation of a power grid.

Public Functions

inline virtual int setAbsoluteTolerance(RealT)

Compute the absolute tolerance for each variable in the model.

This represents a “noise” level close to zero for which pure relative error cannot be used.

Parameters:

rel_tol – The relative tolerance which can be used to pick the absolute tolerance.

Returns:

int 0 if successful, non-zero otherwise.