*SetUserConstraint()
Sets the values associated with a user constraint.
Syntax
*SetUserConstraint(ucon_name, USER, `expr`)
*Set(ucon_name.use_local_dll, TRUE|FALSE)
*Set(ucon_name.local_dll, string)
Arguments
- ucon_name
- The variable name of the user constraint.
- USER
- Indicates the user-written subroutine is used to model the user constraint.
- expr
- The solver expression that sets the arguments for the user constraint.
- ucon_name.use_local_dll
- Specifies if a user subroutine DLL is specific to the instance of one user constraint entity.
- TRUE|FALSE
- Set to TRUE if a local DLL should be used.
- ucon_name.local_dll
- The path and filename for the user subroutine DLL to be used with an instance of the user constraint.
Example
*BeginMDL(the_model, "The Model")
*UserConstraint(ucon, "Example User Constraint")
*SetUserConstraint(ucon, USER, `USER( 300, 1, 2)`)
*Set(ucon.use_local_dll, TRUE)
*Set(ucon.local_dll, "C:/Test/myuserconstraint.dll")
*EndMDL()
Context
Comments
This entity applies only when a user subroutine has been written that describes the degrees of freedom.
The user subroutine can be compiled into a DLL that is used specifically by this entity.