Model.alter#

Model.alter(src, idx, value)[source]#

Alter values of input parameters or constant service.

If the method operates on an input parameter, the new data should be in the same base as that in the input file. This function will convert value to per unit in the system base whenever necessary.

The values for storing the input data, i.e., the parameter's vin field, will be overwritten. As a result, altered values will be reflected in the dumped case file.

Parameters:
srcstr

The parameter name to alter

idxstr, float, int

The device to alter

valuefloat

The desired value