3.2.1.4. Lagrange Multipliers

This command is used to construct a LagrangeMultiplier constraint handler, which enforces the constraints by introducing Lagrange multipliers to the system of equation. The following is the command to construct a plain constraint handler:

constraints Lagrange <$alphaS $alphaM >

Argument

Type

Description

$alphaS

float

\(\alpha_S\) factor on singe points. optional: default = 1.0

$alphaM

float

\(\alpha_M\) factor on multi-points. optional: default = 1.0

Warning

The Lagrange multiplier method introduces new unknowns to the system of equations. The diagonal part of the system corresponding to these new unknowns is 0.0. This ensure that the system IS NOT symmetric positive definite and so do not use a positive definite solver.

Example

The following example shows how to construct a Lagrange constraint handler

  1. Tcl Code

numberer Lagrange
  1. Python Code

numberer('Lagrange')

Code Developed by: fmk

Code Developed by: fmk