-
Notifications
You must be signed in to change notification settings - Fork 247
Constrained optimization
Constrained optimization takes into consideration the inequality (G) and equality (H) constraints of the optimization problem. These constraints impose requirements on the solution space that must be met. Generally, equality constraints H can be strongly enforced in the problem. Alternatively, inequality constraints G may not be active, and therefore cannot directly be enforced. Nevertheless, there are several ways of dealing with both types of constraints in optimization problems, being penalized and augmented Lagrange methods those most used.
Penalized methods weakly enforce the inequality constraint, transforming a constrained problem to an unconstrained one. This is done by including the constraint in the objective function through a penalization function. The choice of this function determines the characteristics of the objective function and whether the constraint is enforced such that the resulting solution must be located inside the initial feasible domain or not.
Augmented Lagrange methods take advantage of the Lagrangian formulation
The Lagrangian is augmented to include a penalty term with weight r for the constraints:
Finally, the method is defined as follows:
- Select initial values for the Lagrange multipliers λ and μ and the penalty weights r.
- For fixed λ and μ, minimize La(s, λ, μ) with respect to s to determine the new s for this iteration step.
- Update λ and μ to determine λnew=max(0,λ+rG(s)) and μnew=μ+rH(s).
- Repeat steps 1 to 3 until convergence.
- Getting Kratos (Last compiled Release)
- Compiling Kratos
- Running an example from GiD
- Kratos input files and I/O
- Data management
- Solving strategies
- Manipulating solution values
- Multiphysics
- Video tutorials
- Style Guide
- Authorship of Kratos files
- Configure .gitignore
- How to configure clang-format
- How to use smart pointer in Kratos
- How to define adjoint elements and response functions
- Visibility and Exposure
- Namespaces and Static Classes
Kratos structure
Conventions
Solvers
Debugging, profiling and testing
- Compiling Kratos in debug mode
- Debugging Kratos using GDB
- Cross-debugging Kratos under Windows
- Debugging Kratos C++ under Windows
- Checking memory usage with Valgind
- Profiling Kratos with MAQAO
- Creating unitary tests
- Using ThreadSanitizer to detect OMP data race bugs
- Debugging Memory with ASAN
HOW TOs
- How to create applications
- Python Tutorials
- Kratos For Dummies (I)
- List of classes and variables accessible via python
- How to use Logger
- How to Create a New Application using cmake
- How to write a JSON configuration file
- How to Access DataBase
- How to use quaternions in Kratos
- How to do Mapping between nonmatching meshes
- How to use Clang-Tidy to automatically correct code
- How to use the Constitutive Law class
- How to use Serialization
- How to use GlobalPointerCommunicator
- How to use PointerMapCommunicator
- How to use the Geometry
- How to use processes for BCs
- How to use Parallel Utilities in futureproofing the code
- Porting to Pybind11 (LEGACY CODE)
- Porting to AMatrix
- How to use Cotire
- Applications: Python-modules
- How to run multiple cases using PyCOMPSs
- How to apply a function to a list of variables
- How to use Kratos Native sparse linear algebra
Utilities
Kratos API
Kratos Structural Mechanics API