*opticontrolcreate

Creates optimization control parameters.

Syntax

*opticontrolcreate desmaxtoggle desmax mindimtoggle mindim minmethtoggle minmeth matinittoggle matinit mindenstoggle mindens discretetoggle discrete checkertoggle checker mmchecktoggle mmcheck objtoltoggle objtol delsiztoggle delsiz delshptoggle delshp deltoptoggle deltop gbucktoggle gbuck maxbucktoggle maxbuck number_of_toggles number_of_integer_values integer_array number_of_integers double_array number_of_doubles

Type

HyperMesh Tcl Modify

Description

Creates optimization control parameters. All parameters before number_of_toggles are only applicable to OptiStruct. The remainder are applicable only to Nastran.

Inputs

desmaxtoggle
DESMAX toggle on (1) or off (0) state (integer).
desmax
DESMAX value (integer).
mindimtoggle
MINDIM toggle on (1) or off (0) state (integer).
mindim
MINDIM value (double).
minmethtoggle
MINMETH toggle on (1) or off (0) state (integer).
minmeth
MINDIM value (integer).
matinittoggle
MATINIT toggle on (1) or off (0) state (integer).
matinit
MATINIT value (double).
mindenstoggle
MINDENS toggle on (1) or off (0) state (integer).
mindens
MINDENS value (double).
discretetoggle
DISCRETE toggle on (1) or off (0) state (integer).
discrete
DISCRETE value (double).
checkertoggle
CHECKER toggle on (1) or off (0) state (integer).
checker
CHECKER value (integer).
mmchecktoggle
MMCHECK toggle on (1) or off (0) state (integer).
mmcheck
MMCHECK value (integer).
objtoltoggle
OBJTOL toggle on (1) or off (0) state (integer).
objtol
OBJTOL value (double).
delsiztoggle
DELSIZ toggle on (1) or off (0) state (integer).
delsiz
DELSIZ value (double).
delshptoggle
DELSHP toggle on (1) or off (0) state (integer).
delshp
DELSHP value (double).
deltoptoggle
DELTOP toggle on (1) or off (0) state (integer).
deltop
DELTOP value (double).
gbucktoggle
GBUCK toggle on (1) or off (0) state (integer).
gbuck
GBUCK value (integer).
maxbucktoggle
MAX_BUCK toggle on (1) or off (0) state (integer).
maxbuck
MAX_BUCK value (integer).
number_of_toggles
Number of toggles (37 for Nastran and 0 for OptiStruct).
number_of_integer_values
Number of integer values within the toggles (16 for Nastran and 0 for OptiStruct).
integer_array
The ID of the integer array that contains the additional input parameters. The integer array is created using the *createarray command. This should always be set to 1.
For definitions of the variables, see DOPTRM in the Nastran manual.
  • [0] = 1
  • [1] = conv1toggle
  • [2] = conv2toggle
  • [3] = convdvtoggle
  • [4] = convprtoggle
  • [5] = cttoggle
  • [6] = ctmintoggle
  • [7] = dabobjtoggle
  • [8] = delbtoggle
  • [9] = delobjtoggle
  • [10] = delptoggle
  • [11] = delxtoggle
  • [12] = desmaxtoggle
  • [13] = dobj1toggle
  • [14] = dobj2toggle
  • [15] = dpmintoggle
  • [16] = dx1toggle
  • [17] = dx2toggle
  • [18] = dxmintoggle
  • [19] = gmaxtoggle
  • [20] = gscaltoggle
  • [21] = igmaxtoggle
  • [22] = 1
  • [23] = 1
  • [24] = 1
  • [25] = iscaltoggle
  • [26] = itmaxtoggle
  • [27] = itrmoptoggle
  • [28] = itrmsttoggle
  • [29] = jtmaxtoggle
  • [30] = jprinttoggle
  • [31] = jwritetoggle
  • [32] = 1
  • [33] = p1toggle
  • [34] = p2toggle
  • [35] = ptoltoggle
  • [36] = stpscltoggle
If an element in the array above is set to zero, the optimization program does not take into account the settings for that variable. If the value for an element is 1, the optimization program uses the values in the arrays below instead of the default values.
The next sixteen elements contain integer parameters:
  • [37] = APPRCOD
  • [38] = DESMAX
  • [39] = IGMAX
  • [40] = IPRINT
  • [41] = IPRNT1
  • [42] = IPRNT2
  • [43] = ISCAL
  • [44] = ITMAX
  • [45] = ITRMOP
  • [46] = ITRMAST
  • [47] = JTMAX
  • [48] = JPRINT
  • [49] = JWRITE
  • [50] = METHOD
  • [51] = P1
  • [52] = P2
number_of_integers
Integer indicating the size (number of integer parameters, sum of number_of_toggles and number_of_integer_values, 53 for Nastran and 0 for OptiStruct) in the integer array created using *createarray.
double_array
The ID of the double array that contains the additional input parameters. The double array is created using the *createdoublearray command. This should always be set to 1.
  • [0] = CONV1
  • [1 ] = CONV2
  • [2] = CONVDV
  • [3] = CONVPR
  • [4] = CT
  • [5] = CTMIN
  • [6] = dabobj
  • [7] = delb
  • [8] = delobj
  • [9] = delp
  • [10] = delx
  • [11] = dobj1
  • [12] = dobj2
  • [13] = dpmin
  • [14] = dx1
  • [15] = dx2
  • [16] = dxmin
  • [17] = gmax
  • [18] = gscal
  • [19] = ptol
  • [20] = Stpscl
number_of_doubles
Integer indicating the size (number of double parameters, 21 for Nastran and 0 for OptiStruct) in the double array created using *createdoublearray.

Example

To use with OptiStruct:

*createarray 0
*createdoublearray 0
*opticontrolcreate 1 30 0 0 1 2 0 0 1 0.01 0 0 0 0 0 0 0 0 1 0.5 0 0 1 0.5 0 0 0 0 0 0 1 0 1 0

To use with Nastran:

*createarray 53 1 1 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 1 1 0 1 0 0 0 0 0 1 0 0 0 1 2 1 0 0 0 0 -1 40 2 2 20 0 0 1 0 0
*createdoublearray 21 0.001 0.01 0.001 0.001 -0.03 0.003 0.001 0.0001 0.001 0.2 1 0.1 0.2 0.01 0.01 0.2 0.05 0.005 0.001 1e+035 1
*opticontrolcreate 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 37 16 1 53 1 21

Errors

Incorrect usage results in a Tcl error. To detect errors, you can use the catch command:
if { [ catch {command_name...} ] } {
   # Handle error
}