CONSTRAINT

Specifies the constraints based on responses.

Type

AcuSolve Command

Syntax

CONSTRAINT {parameters}

Qualifier

This command has no qualifier.

Parameters

type (enumerated) [=less_than]
Constraints are specified by relating the response variables with the type. Requires RESPONSE_VARIABLE.
less_than
greater_than
response_variable (string) [=""]
User defined name of the response variable that is used to compute the objective and constraint functions.
bound (real) [=0.0]
Bounds are set to control the motion of surface/body in the optimization region.

Description

The CONSTRAINT command defines the constraint functions used in optimization. One or more constraints can be created to control the motion of the model during the optimization process. To create a constraint, first a response variable needs to be created and the type and bound needs to be defined. This can be a time history output, surface integrated output, and so on.
CONSTRAINT( "subject to pressure >= bound” ) {
    type                                = larger_than
    response_variable                   = "Inflow Pressure"
    bound                               = 1000
}
 RESPONSE_VARIABLE( "Inflow Pressure” ) {
    type                                = surface_output
    surface_output                      = "Inlet"
    surface_output_variable		= pressure
}