Constraint Parameters

Constraint parameters represent the variables in a constraint.

Context

Constraint parameters in parametric diagrams are equivalent to the parameters of constraint blocks (see the Parameter tool in Constraint Blocks) in block definition diagrams. Changes made to a constraint’s parameters in parametric diagrams are synchronized to the relevant constraint block's Parameters compartment of in block definition diagrams.

In parametric diagrams, the constraint parameters are attached to the boundary of the associated constraint properties. If a parametric diagram represents a constraint block, all parameters of the constraint block are displayed on its frame.

For example, the constraint block FuelSupplyConstraints may have parameters such as TotalDemand and FlowRate.

Procedure

  1. Select the Constraint Parameter tool from the toolbox and attach it to the associated constraint property. In a parametric diagram for constraint blocks, you can also attach it to the diagram frame. Specify a name and data type for it.

    The following properties are available on the Info tab in the General category:

    Property

    Description

    Parent Object

    [read-only] Displays the constraint block which owns the constraint property.

    Name/Code/Comment

    Identify the object. The name should clearly convey the object's purpose to non-technical users, while the code, which is used for generating code or scripts, may be abbreviated, and should not normally include spaces. You can optionally add a comment to provide more detailed information about the object. By default the code is synchronized with the name. To decouple name-code synchronization, enter a new code in the Code field.

    Data Type

    Specifies the value type that is the data type of the constraint parameter. The data type must be a value type (String, Boolean, Integer, Real, or other value types created in your model).

    The other tabs such as Dependencies and Diagrams contain additional properties information. For details, see Object Properties.
  2. To describe the structure of a composite constraint, use the Binding Connector tool to bind the parameter to another constraint’s parameter that has the same value.
  3. [only in parametric diagram that represents a block] To supply a constraint with a block’s value properties (see Value Properties), use the Binding Connector tool to bind the parameter to the value property that supplies value to it. The bound parameter and value property should have the same value type defined.