databank.plusControl (+databank)
Create simulation-plus-control database
Syntax
[outputDb, controlDb] = databank.plusControl(model, inputDb, ...)
[outputDb, controlDb] = databank.plusControl(model, inputDb, controlDb, ...)
Input arguments
model [ model ]
Model object on which the databases
inputDbandcontrolDb__ are based.
inputDb [ struct ]
Simulation (or any other kind of) databank to which the
controlDbwill be add.
controlDb [ struct ]
Control database that will be subtracted form the
inputDb; if omitted a steady-state databank for themodelis created and used in the place of the control databank.
Output arguments
outputData [ struct ]
Simulation-minus-control database, in which all log variables are
inputDb.x/controlDb.x, and all other variables areinputDb.x-controlDb.x.
controlDb [ struct ]
Control database that has been added to the
inputDbdatabase to createoutputDb.
Options
Range=Inf [ Dater | Inf ]
This range is used in two places:
if a
controlDbis not supplied, themodelsteady-state databank is created with theRangeinput argument (meaning the control databank will exist on this range plus any necessary presample and postsample periods); ifopt.Rangerefers to-InforInf, then the control databank is created on an all-encompassing range of theinputDb.each
modelvariable time series is clipped to theRangebefore being included in theoutputDb.