Class NonlinearPredictor.MVTrajectory

java.lang.Object
neqsim.process.mpc.NonlinearPredictor.MVTrajectory
All Implemented Interfaces:
Serializable
Enclosing class:
NonlinearPredictor

public static class NonlinearPredictor.MVTrajectory extends Object implements Serializable
Represents a trajectory of MV values over time.
Since:
3.0
Version:
1.0
Author:
Even Solbraa
See Also:
  • Field Details

  • Constructor Details

    • MVTrajectory

      public MVTrajectory()
  • Method Details

    • addMove

      public NonlinearPredictor.MVTrajectory addMove(String mvName, double value)
      Add a move (value) for an MV.
      Parameters:
      mvName - the MV name
      value - the value at the next time step
      Returns:
      this trajectory for method chaining
    • setMoves

      public NonlinearPredictor.MVTrajectory setMoves(String mvName, double[] values)
      Set a complete trajectory for an MV.
      Parameters:
      mvName - the MV name
      values - array of values over time
      Returns:
      this trajectory for method chaining
    • getValue

      public double getValue(String mvName, int step)
      Get the MV value at a specific time step.
      Parameters:
      mvName - the MV name
      step - the time step index
      Returns:
      the value, or NaN if not defined
    • getLength

      public int getLength(String mvName)
      Get the trajectory length.
      Parameters:
      mvName - the MV name
      Returns:
      number of defined steps
    • clear

      Clear the trajectory.
      Returns:
      this trajectory for method chaining