Class DesignResult
java.lang.Object
neqsim.process.design.DesignResult
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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classStatus of a single constraint. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Map<String, DesignResult.ConstraintStatus> private booleanprivate intprivate doubleprivate ProcessSystem -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddConstraintStatus(String equipmentName, String constraintName, double currentValue, double limitValue, double utilized) Record constraint status.voidaddEquipmentSize(String equipmentName, String sizeName, double value) Record equipment size.voidaddOptimizedFlowRate(String streamName, double flowRate) Record an optimized flow rate.voidaddViolation(String violation) Add a violation message.voidaddWarning(String warning) Add a warning message.Get all constraint statuses.getEquipment(String name) Get an equipment from the optimized process.getEquipmentSizes(String equipmentName) Get sizes for an equipment.intGet the number of iterations.doubleGet the objective function value.doublegetOptimizedFlowRate(String streamName) Get the optimized flow rate for a stream.Get all optimized flow rates.Get the optimized process.Generate a summary report.Get all violations.Get all warnings.booleanCheck if there are any violations.booleanCheck if there are any warnings.booleanCheck if optimization converged.voidsetConverged(boolean converged) Set convergence status.voidsetIterations(int iterations) Set the iteration count.voidsetObjectiveValue(double value) Set the objective value.
-
Field Details
-
process
-
converged
private boolean converged -
iterations
private int iterations -
objectiveValue
private double objectiveValue -
optimizedFlowRates
-
equipmentSizes
-
constraintStatus
-
warnings
-
violations
-
-
Constructor Details
-
DesignResult
Create a design result.- Parameters:
process- the optimized process
-
-
Method Details
-
getProcess
-
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
Record an optimized flow rate.- Parameters:
streamName- stream nameflowRate- flow rate in kg/hr
-
getOptimizedFlowRates
-
addEquipmentSize
-
getEquipmentSizes
-
addConstraintStatus
public void addConstraintStatus(String equipmentName, String constraintName, double currentValue, double limitValue, double utilized) Record constraint status.- Parameters:
equipmentName- equipment nameconstraintName- constraint namecurrentValue- current valuelimitValue- limit valueutilized- utilization fraction (0-1)
-
getConstraintStatus
Get all constraint statuses.- Returns:
- map of constraint key to status
-
addWarning
-
getWarnings
-
addViolation
Add a violation message.- Parameters:
violation- violation message
-
getViolations
-
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
Get an equipment from the optimized process.- Parameters:
name- equipment name- Returns:
- the equipment
-
getOptimizedFlowRate
Get the optimized flow rate for a stream.- Parameters:
streamName- stream name- Returns:
- flow rate in kg/hr or 0 if not found
-
getSummary
-