Adams Basic Package > Adams View > View Command Language > optimize > optimize constraint evaluate

optimize constraint evaluate

Allows you to evaluate a constraint given in an existing analysis.
You have two options for defining an optimization constraint:
1. Select a result set component and its output characteristic.
2. Specify a function which computes the objective.
The result set component/output characteristic method requires a name of the form "REQ1.R1" or "PAR2_XFORM.THETA".
If you specify a function, use "FUNCTION CREATE FUNCTION_NAME=..." to create it. Make sure that your function has exactly one argument named "analysis". You may or may not use this argument in the function, but it must still be there. For example, FUN CRE FUN=objective_function ARG=analysis TEXT="MAX(analysis.req1.r1.values)" or FUN CRE FUN=total_mass ARG=analysis TEXT="100 - par1.mass + par2.mass"

Format:

 
optimize constraint evaluate
constraint_name=
existing opt_constraint
analysis_name=
existing analysis

Description:

 
Parameter
Value Type
Description
constraint_name
Existing Opt_constraint
Specifies the name for an optimization constraint
analysis_name
Existing Analysis
Specifies an existing analysis

Extended Definition:

1. You may identify an analysis by typing its name or by picking it from the screen.
An analysis may be picked from the screen if you have read an Adams Graphics file, and use the GRAPHIC_RESULTS command to display it. If the analysis is not visible on the screen, you must type the name. You may also find it convenient to type the name even if the analysis is displayed.You may have explicitly named the analysis when you created it by reading one or more Adams output files. By default, the name of the analysis is the root name of the Adams output files. If you created the analysis by reading an Adams Graphics file, for instance, the analysis name is the name of the graphics file without the '.gra' extension.
You may get a list of analysis by typing a "?" in response to a parameter that requires an analysis name to be entered.
You must separate multiple analysis names by commas.
If the analysis is visible in one of your views, you may identify it by picking on any of the graphics associated with it.
You need not separate multiple analysis picks by commas.