ams.core.service#

Service.

Classes

LoadScale(u, sd[, name, tex_name, unit, ...])

Return load.

MinDur(u, u2[, name, tex_name, unit, info, ...])

Defined to form minimum on matrix for minimum online/offline time constraints used in UC.

NumExpandDim(u[, axis, args, name, ...])

Expand the dimensions of the input array along a specified axis using NumPy's np.expand_dims(u.v, axis=axis).

NumHstack(u, ref[, args, name, tex_name, ...])

Repeat an array along the second axis nc times or the length of reference array, using NumPy's hstack function, where nc is the column number of the reference array, np.hstack([u.v[:, np.newaxis] * ref.shape[1]], **kwargs).

NumOp(u, fun[, args, name, tex_name, unit, ...])

Perform an operation on a numerical array using the function fun(u.v, **args).

NumOpDual(u, u2, fun[, args, name, ...])

Performan an operation on two numerical arrays using the function fun(u.v, u2.v, **args).

RBaseService([name, tex_name, unit, info, ...])

Base class for services that are used in a routine.

ROperationService(u[, name, tex_name, unit, ...])

Base calss for operational services used in routine.

RampSub(u[, name, tex_name, unit, info, ...])

Build a substraction matrix for a 2D variable in the shape (nr, nr-1), where nr is the rows of the input.

ValueService(name, value[, tex_name, unit, ...])

Service to store given numeric values.

VarReduction(u, fun[, name, tex_name, unit, ...])

A numerical matrix to reduce a 2D variable to 1D, np.fun(shape=(1, u.n)).

VarSelect(u, indexer[, gamma, name, ...])

A numerical matrix to select a subset of a 2D variable, u.v[:, idx].

ZonalSum(u, zone[, name, tex_name, unit, ...])

Build zonal sum matrix for a vector in the shape of collection model, Area or Region.