Class NonlinearPredictor.MVTrajectory
java.lang.Object
neqsim.process.mpc.NonlinearPredictor.MVTrajectory
- All Implemented Interfaces:
Serializable
- Enclosing class:
NonlinearPredictor
Represents a trajectory of MV values over time.
- Since:
- 3.0
- Version:
- 1.0
- Author:
- Even Solbraa
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdd a move (value) for an MV.clear()Clear the trajectory.intGet the trajectory length.doubleGet the MV value at a specific time step.Set a complete trajectory for an MV.
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
mvNames
-
mvMoves
-
-
Constructor Details
-
MVTrajectory
public MVTrajectory()
-
-
Method Details
-
addMove
Add a move (value) for an MV.- Parameters:
mvName- the MV namevalue- the value at the next time step- Returns:
- this trajectory for method chaining
-
setMoves
Set a complete trajectory for an MV.- Parameters:
mvName- the MV namevalues- array of values over time- Returns:
- this trajectory for method chaining
-
getValue
Get the MV value at a specific time step.- Parameters:
mvName- the MV namestep- the time step index- Returns:
- the value, or NaN if not defined
-
getLength
Get the trajectory length.- Parameters:
mvName- the MV name- Returns:
- number of defined steps
-
clear
Clear the trajectory.- Returns:
- this trajectory for method chaining
-