Class StepResponseGenerator.StepResponseMatrix

java.lang.Object
neqsim.process.mpc.StepResponseGenerator.StepResponseMatrix
All Implemented Interfaces:
Serializable
Enclosing class:
StepResponseGenerator

public static class StepResponseGenerator.StepResponseMatrix extends Object implements Serializable
Matrix container for step responses from all MV-CV pairs.
Since:
3.0
Version:
1.0
Author:
Even Solbraa
See Also:
  • Field Details

  • Constructor Details

    • StepResponseMatrix

      public StepResponseMatrix(Map<String, Map<String, StepResponse>> responses, String[] mvNames, String[] cvNames)
      Construct a step response matrix.
      Parameters:
      responses - map of CV name to (MV name to StepResponse)
      mvNames - ordered MV names
      cvNames - ordered CV names
  • Method Details

    • get

      public StepResponse get(String cvName, String mvName)
      Get a specific step response.
      Parameters:
      cvName - controlled variable name
      mvName - manipulated variable name
      Returns:
      the step response, or null if not found
    • getGainMatrix

      public double[][] getGainMatrix()
      Get the gain matrix.
      Returns:
      matrix of gains [numCV][numMV]
    • getTimeConstantMatrix

      public double[][] getTimeConstantMatrix()
      Get the time constant matrix.
      Returns:
      matrix of time constants [numCV][numMV]
    • getDeadTimeMatrix

      public double[][] getDeadTimeMatrix()
      Get the dead time matrix.
      Returns:
      matrix of dead times [numCV][numMV]
    • getMvNames

      public String[] getMvNames()
      Get the MV names.
      Returns:
      array of MV names
    • getCvNames

      public String[] getCvNames()
      Get the CV names.
      Returns:
      array of CV names
    • toCSV

      public String toCSV()
      Export to CSV format.
      Returns:
      CSV string
    • toString

      public String toString()
      Overrides:
      toString in class Object