Class NonlinearPredictor.PredictionResult
java.lang.Object
neqsim.process.mpc.NonlinearPredictor.PredictionResult
- All Implemented Interfaces:
Serializable
- Enclosing class:
NonlinearPredictor
Result of a prediction containing CV and MV trajectories.
- Since:
- 3.0
- Version:
- 1.0
- Author:
- Even Solbraa
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPredictionResult(double[][] cvTrajectories, double[][] mvTrajectories, double[] time, String[] cvNames, String[] mvNames, double sampleTime) Construct a prediction result. -
Method Summary
Modifier and TypeMethodDescriptionString[]Get the CV names.doublegetFinalValue(String cvName) Get the final predicted value for a CV.intGet the prediction horizon.doubleCalculate the integrated squared error from a setpoint.String[]Get the MV names.double[]getMVTrajectory(String mvName) Get an MV trajectory by name.doubleGet the sample time.double[]getTime()Get the time array.double[]getTrajectory(int index) Get a CV trajectory by index.double[]getTrajectory(String cvName) Get a CV trajectory by name.toString()
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
cvTrajectories
private final double[][] cvTrajectories -
mvTrajectories
private final double[][] mvTrajectories -
time
private final double[] time -
cvNames
-
mvNames
-
sampleTime
private final double sampleTime
-
-
Constructor Details
-
PredictionResult
public PredictionResult(double[][] cvTrajectories, double[][] mvTrajectories, double[] time, String[] cvNames, String[] mvNames, double sampleTime) Construct a prediction result.- Parameters:
cvTrajectories- CV values [numCV][numSteps]mvTrajectories- MV values [numMV][numSteps]time- time pointscvNames- CV namesmvNames- MV namessampleTime- sample interval
-
-
Method Details
-
getTrajectory
Get a CV trajectory by name.- Parameters:
cvName- the CV name- Returns:
- the trajectory array
-
getTrajectory
public double[] getTrajectory(int index) Get a CV trajectory by index.- Parameters:
index- the CV index- Returns:
- the trajectory array
-
getMVTrajectory
Get an MV trajectory by name.- Parameters:
mvName- the MV name- Returns:
- the trajectory array
-
getTime
public double[] getTime()Get the time array.- Returns:
- time points
-
getSampleTime
public double getSampleTime()Get the sample time.- Returns:
- sample interval in seconds
-
getHorizon
public int getHorizon()Get the prediction horizon.- Returns:
- number of steps
-
getCvNames
-
getMvNames
-
getFinalValue
Get the final predicted value for a CV.- Parameters:
cvName- the CV name- Returns:
- the final predicted value
-
getISE
Calculate the integrated squared error from a setpoint.- Parameters:
cvName- the CV namesetpoint- the target setpoint- Returns:
- the ISE
-
toString
-