3
0

Constants.h 954 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #pragma once
  9. #include <AzCore/base.h>
  10. namespace NumericalMethods::Optimization
  11. {
  12. const AZ::u32 lineSearchIterations = 100;
  13. const AZ::u32 solverIterations = 500;
  14. // value of the gradient norm used for terminating the search
  15. const double gradientTolerance = 1e-6;
  16. // used in finite difference evaluation of derivatives
  17. // a value close to the square root of the machine precision is recommended in Nocedal and Wright
  18. const double epsilon = 1e-7;
  19. // values recommended in Nocedal and Wright for constants in the Wolfe conditions for satisfactory solution improvement
  20. const double WolfeConditionsC1 = 1e-4;
  21. const double WolfeConditionsC2 = 0.9;
  22. } // namespace NumericalMethods::Optimization