Class ActionVector
java.lang.Object
neqsim.process.ml.ActionVector
- All Implemented Interfaces:
Serializable
Standardized action vector for RL control integration.
Represents control actions that can be applied to process equipment. Actions are defined with physical bounds to ensure safe operation.
- Version:
- 1.0
- Author:
- ESOL
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDefine an action dimension with bounds.doubleGet action value in physical units.String[]Get all action names.double[]Get lower bounds array.double[]Get upper bounds array.booleanCheck if an action value is at its bounds.Set an action value, clamping to bounds.setFromNormalizedArray(double[] normalizedValues) Set all actions from normalized array.setNormalized(String name, double normalizedValue) Set action from normalized value [0, 1].intsize()Get number of action dimensions.double[]toArray()Get all values as array.toString()
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
values
-
lowerBounds
-
upperBounds
-
units
-
-
Constructor Details
-
ActionVector
public ActionVector()Create an empty action vector.
-
-
Method Details
-
define
Define an action dimension with bounds.- Parameters:
name- action name (e.g., "valve_opening", "setpoint")lowerBound- minimum allowed valueupperBound- maximum allowed valueunit- unit string- Returns:
- this ActionVector for chaining
-
set
Set an action value, clamping to bounds.- Parameters:
name- action namevalue- desired value (will be clamped to bounds)- Returns:
- this ActionVector for chaining
-
setNormalized
Set action from normalized value [0, 1].- Parameters:
name- action namenormalizedValue- value in [0, 1] range- Returns:
- this ActionVector for chaining
-
setFromNormalizedArray
Set all actions from normalized array.- Parameters:
normalizedValues- array of values in [0, 1] in definition order- Returns:
- this ActionVector for chaining
-
get
Get action value in physical units.- Parameters:
name- action name- Returns:
- value in physical units
-
getActionNames
-
size
public int size()Get number of action dimensions.- Returns:
- action count
-
getLowerBounds
public double[] getLowerBounds()Get lower bounds array.- Returns:
- array of lower bounds
-
getUpperBounds
public double[] getUpperBounds()Get upper bounds array.- Returns:
- array of upper bounds
-
toArray
public double[] toArray()Get all values as array.- Returns:
- array of action values
-
isAtBound
Check if an action value is at its bounds.- Parameters:
name- action name- Returns:
- true if at lower or upper bound
-
toString
-