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 the new value to per unit in the system base.
The values for storing the input data, i.e., the
vin
field of the parameter, will be overwritten, thus the update 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