OBJECTIVE
Specifies the objective for an optimization problem.
Type
AcuSolve Command
Syntax
OBJECTIVE {parameters}
Qualifier
This command has no qualifier.
Parameters
- type (enumerated) [=minimize]
- Specifies if the objective is to minimize or maximize the response.
- minimize
- maximize
- response_variable (string) [=""]
- User defined name of response variable that is computed from the simulation.
Description
This command specifies the objective of the optimization. The objective can be either
to maximize or minimize the defined response variable. A typical objective defined
by the OBJECTIVE command is a function of response variables,
defined using the RESPONSE_VARIABLE
commands.
OBJECTIVE( "Minimize_Pressure_Drop" ) {
type = minimize
response_variable = "Inlet_Pressure"
}
For topology optimization, minimizing the mechanical energy losses, the referenced
response variable should be of type topology_variable specified
using the RESPONSE_VARIABLE
command.
OBJECTIVE( "Minimize_Mechanical_Energy" ) {
type = minimize
response_variable = "mechanical_energy"
}