Class DesignResult

java.lang.Object
neqsim.process.design.DesignResult

public class DesignResult extends Object
Result container for design optimization.

Holds the results from a design optimization run, including the optimized process, equipment sizes, constraint status, and performance metrics.

Version:
1.0
Author:
NeqSim Development Team
  • Field Details

  • Constructor Details

    • DesignResult

      public DesignResult(ProcessSystem process)
      Create a design result.
      Parameters:
      process - the optimized process
  • Method Details

    • getProcess

      public ProcessSystem getProcess()
      Get the optimized process.
      Returns:
      the process system
    • isConverged

      public boolean isConverged()
      Check if optimization converged.
      Returns:
      true if converged
    • setConverged

      public void setConverged(boolean converged)
      Set convergence status.
      Parameters:
      converged - convergence status
    • getIterations

      public int getIterations()
      Get the number of iterations.
      Returns:
      iteration count
    • setIterations

      public void setIterations(int iterations)
      Set the iteration count.
      Parameters:
      iterations - number of iterations
    • getObjectiveValue

      public double getObjectiveValue()
      Get the objective function value.
      Returns:
      objective value
    • setObjectiveValue

      public void setObjectiveValue(double value)
      Set the objective value.
      Parameters:
      value - objective value
    • addOptimizedFlowRate

      public void addOptimizedFlowRate(String streamName, double flowRate)
      Record an optimized flow rate.
      Parameters:
      streamName - stream name
      flowRate - flow rate in kg/hr
    • getOptimizedFlowRates

      public Map<String,Double> getOptimizedFlowRates()
      Get all optimized flow rates.
      Returns:
      map of stream name to flow rate
    • addEquipmentSize

      public void addEquipmentSize(String equipmentName, String sizeName, double value)
      Record equipment size.
      Parameters:
      equipmentName - equipment name
      sizeName - size parameter name (e.g., "diameter", "length")
      value - size value
    • getEquipmentSizes

      public Map<String,Double> getEquipmentSizes(String equipmentName)
      Get sizes for an equipment.
      Parameters:
      equipmentName - equipment name
      Returns:
      map of size name to value
    • addConstraintStatus

      public void addConstraintStatus(String equipmentName, String constraintName, double currentValue, double limitValue, double utilized)
      Record constraint status.
      Parameters:
      equipmentName - equipment name
      constraintName - constraint name
      currentValue - current value
      limitValue - limit value
      utilized - utilization fraction (0-1)
    • getConstraintStatus

      public Map<String, DesignResult.ConstraintStatus> getConstraintStatus()
      Get all constraint statuses.
      Returns:
      map of constraint key to status
    • addWarning

      public void addWarning(String warning)
      Add a warning message.
      Parameters:
      warning - warning message
    • getWarnings

      public List<String> getWarnings()
      Get all warnings.
      Returns:
      list of warnings
    • addViolation

      public void addViolation(String violation)
      Add a violation message.
      Parameters:
      violation - violation message
    • getViolations

      public List<String> getViolations()
      Get all violations.
      Returns:
      list of violations
    • hasViolations

      public boolean hasViolations()
      Check if there are any violations.
      Returns:
      true if there are violations
    • hasWarnings

      public boolean hasWarnings()
      Check if there are any warnings.
      Returns:
      true if there are warnings
    • getEquipment

      public ProcessEquipmentInterface getEquipment(String name)
      Get an equipment from the optimized process.
      Parameters:
      name - equipment name
      Returns:
      the equipment
    • getOptimizedFlowRate

      public double getOptimizedFlowRate(String streamName)
      Get the optimized flow rate for a stream.
      Parameters:
      streamName - stream name
      Returns:
      flow rate in kg/hr or 0 if not found
    • getSummary

      public String getSummary()
      Generate a summary report.
      Returns:
      summary string