modcma 1.0.2__tar.gz → 1.0.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (414) hide show
  1. {modcma-1.0.2/modcma.egg-info → modcma-1.0.4}/PKG-INFO +3 -3
  2. {modcma-1.0.2 → modcma-1.0.4}/README.md +2 -2
  3. {modcma-1.0.2 → modcma-1.0.4}/include/c_maes.hpp +3 -3
  4. {modcma-1.0.2 → modcma-1.0.4}/include/common.hpp +6 -0
  5. {modcma-1.0.2 → modcma-1.0.4}/include/matrix_adaptation.hpp +5 -6
  6. {modcma-1.0.2 → modcma-1.0.4}/include/mutation.hpp +6 -3
  7. {modcma-1.0.2 → modcma-1.0.4}/include/parameters.hpp +0 -2
  8. {modcma-1.0.2 → modcma-1.0.4}/include/sampling.hpp +2 -2
  9. {modcma-1.0.2 → modcma-1.0.4}/modcma/__main__.py +1 -1
  10. {modcma-1.0.2 → modcma-1.0.4}/modcma/parameters.py +1 -1
  11. {modcma-1.0.2 → modcma-1.0.4/modcma.egg-info}/PKG-INFO +3 -3
  12. {modcma-1.0.2 → modcma-1.0.4}/setup.py +2 -2
  13. modcma-1.0.4/src/c_maes.cpp +37 -0
  14. {modcma-1.0.2 → modcma-1.0.4}/src/common.cpp +23 -9
  15. {modcma-1.0.2 → modcma-1.0.4}/src/interface.cpp +3 -3
  16. {modcma-1.0.2 → modcma-1.0.4}/src/mutation.cpp +22 -16
  17. {modcma-1.0.2 → modcma-1.0.4}/src/parameters.cpp +1 -0
  18. {modcma-1.0.2 → modcma-1.0.4}/src/restart.cpp +7 -2
  19. {modcma-1.0.2 → modcma-1.0.4}/src/sampling.cpp +3 -3
  20. {modcma-1.0.2 → modcma-1.0.4}/tests/test_c_sampling.py +5 -1
  21. modcma-1.0.2/src/c_maes.cpp +0 -37
  22. {modcma-1.0.2 → modcma-1.0.4}/LICENSE +0 -0
  23. {modcma-1.0.2 → modcma-1.0.4}/MANIFEST.in +0 -0
  24. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/Cholesky +0 -0
  25. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/CholmodSupport +0 -0
  26. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/Core +0 -0
  27. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/Dense +0 -0
  28. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/Eigen +0 -0
  29. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/Eigenvalues +0 -0
  30. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/Geometry +0 -0
  31. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/Householder +0 -0
  32. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/IterativeLinearSolvers +0 -0
  33. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/Jacobi +0 -0
  34. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/KLUSupport +0 -0
  35. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/LU +0 -0
  36. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/MetisSupport +0 -0
  37. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/OrderingMethods +0 -0
  38. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/PaStiXSupport +0 -0
  39. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/PardisoSupport +0 -0
  40. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/QR +0 -0
  41. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/QtAlignedMalloc +0 -0
  42. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/SPQRSupport +0 -0
  43. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/SVD +0 -0
  44. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/Sparse +0 -0
  45. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/SparseCholesky +0 -0
  46. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/SparseCore +0 -0
  47. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/SparseLU +0 -0
  48. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/SparseQR +0 -0
  49. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/StdDeque +0 -0
  50. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/StdList +0 -0
  51. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/StdVector +0 -0
  52. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/SuperLUSupport +0 -0
  53. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/UmfPackSupport +0 -0
  54. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Cholesky/LDLT.h +0 -0
  55. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Cholesky/LLT.h +0 -0
  56. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Cholesky/LLT_LAPACKE.h +0 -0
  57. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/CholmodSupport/CholmodSupport.h +0 -0
  58. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/ArithmeticSequence.h +0 -0
  59. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/Array.h +0 -0
  60. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/ArrayBase.h +0 -0
  61. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/ArrayWrapper.h +0 -0
  62. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/Assign.h +0 -0
  63. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/AssignEvaluator.h +0 -0
  64. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/Assign_MKL.h +0 -0
  65. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/BandMatrix.h +0 -0
  66. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/Block.h +0 -0
  67. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/BooleanRedux.h +0 -0
  68. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/CommaInitializer.h +0 -0
  69. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/ConditionEstimator.h +0 -0
  70. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/CoreEvaluators.h +0 -0
  71. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/CoreIterators.h +0 -0
  72. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/CwiseBinaryOp.h +0 -0
  73. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/CwiseNullaryOp.h +0 -0
  74. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/CwiseTernaryOp.h +0 -0
  75. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/CwiseUnaryOp.h +0 -0
  76. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/CwiseUnaryView.h +0 -0
  77. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/DenseBase.h +0 -0
  78. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/DenseCoeffsBase.h +0 -0
  79. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/DenseStorage.h +0 -0
  80. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/Diagonal.h +0 -0
  81. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/DiagonalMatrix.h +0 -0
  82. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/DiagonalProduct.h +0 -0
  83. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/Dot.h +0 -0
  84. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/EigenBase.h +0 -0
  85. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/ForceAlignedAccess.h +0 -0
  86. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/Fuzzy.h +0 -0
  87. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/GeneralProduct.h +0 -0
  88. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/GenericPacketMath.h +0 -0
  89. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/GlobalFunctions.h +0 -0
  90. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/IO.h +0 -0
  91. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/IndexedView.h +0 -0
  92. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/Inverse.h +0 -0
  93. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/Map.h +0 -0
  94. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/MapBase.h +0 -0
  95. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/MathFunctions.h +0 -0
  96. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/MathFunctionsImpl.h +0 -0
  97. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/Matrix.h +0 -0
  98. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/MatrixBase.h +0 -0
  99. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/NestByValue.h +0 -0
  100. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/NoAlias.h +0 -0
  101. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/NumTraits.h +0 -0
  102. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/PartialReduxEvaluator.h +0 -0
  103. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/PermutationMatrix.h +0 -0
  104. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/PlainObjectBase.h +0 -0
  105. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/Product.h +0 -0
  106. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/ProductEvaluators.h +0 -0
  107. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/Random.h +0 -0
  108. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/Redux.h +0 -0
  109. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/Ref.h +0 -0
  110. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/Replicate.h +0 -0
  111. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/Reshaped.h +0 -0
  112. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/ReturnByValue.h +0 -0
  113. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/Reverse.h +0 -0
  114. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/Select.h +0 -0
  115. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/SelfAdjointView.h +0 -0
  116. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/SelfCwiseBinaryOp.h +0 -0
  117. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/Solve.h +0 -0
  118. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/SolveTriangular.h +0 -0
  119. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/SolverBase.h +0 -0
  120. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/StableNorm.h +0 -0
  121. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/StlIterators.h +0 -0
  122. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/Stride.h +0 -0
  123. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/Swap.h +0 -0
  124. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/Transpose.h +0 -0
  125. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/Transpositions.h +0 -0
  126. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/TriangularMatrix.h +0 -0
  127. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/VectorBlock.h +0 -0
  128. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/VectorwiseOp.h +0 -0
  129. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/Visitor.h +0 -0
  130. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/arch/AVX/Complex.h +0 -0
  131. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/arch/AVX/MathFunctions.h +0 -0
  132. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/arch/AVX/PacketMath.h +0 -0
  133. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/arch/AVX/TypeCasting.h +0 -0
  134. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/arch/AVX512/Complex.h +0 -0
  135. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/arch/AVX512/MathFunctions.h +0 -0
  136. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/arch/AVX512/PacketMath.h +0 -0
  137. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/arch/AVX512/TypeCasting.h +0 -0
  138. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/arch/AltiVec/Complex.h +0 -0
  139. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/arch/AltiVec/MathFunctions.h +0 -0
  140. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/arch/AltiVec/MatrixProduct.h +0 -0
  141. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/arch/AltiVec/MatrixProductCommon.h +0 -0
  142. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/arch/AltiVec/MatrixProductMMA.h +0 -0
  143. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/arch/AltiVec/PacketMath.h +0 -0
  144. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/arch/CUDA/Complex.h +0 -0
  145. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/arch/Default/BFloat16.h +0 -0
  146. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/arch/Default/ConjHelper.h +0 -0
  147. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h +0 -0
  148. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/arch/Default/GenericPacketMathFunctionsFwd.h +0 -0
  149. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/arch/Default/Half.h +0 -0
  150. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/arch/Default/Settings.h +0 -0
  151. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/arch/Default/TypeCasting.h +0 -0
  152. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/arch/GPU/MathFunctions.h +0 -0
  153. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/arch/GPU/PacketMath.h +0 -0
  154. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/arch/GPU/TypeCasting.h +0 -0
  155. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/arch/HIP/hcc/math_constants.h +0 -0
  156. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/arch/MSA/Complex.h +0 -0
  157. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/arch/MSA/MathFunctions.h +0 -0
  158. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/arch/MSA/PacketMath.h +0 -0
  159. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/arch/NEON/Complex.h +0 -0
  160. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/arch/NEON/GeneralBlockPanelKernel.h +0 -0
  161. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/arch/NEON/MathFunctions.h +0 -0
  162. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/arch/NEON/PacketMath.h +0 -0
  163. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/arch/NEON/TypeCasting.h +0 -0
  164. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/arch/SSE/Complex.h +0 -0
  165. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/arch/SSE/MathFunctions.h +0 -0
  166. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/arch/SSE/PacketMath.h +0 -0
  167. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/arch/SSE/TypeCasting.h +0 -0
  168. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/arch/SVE/MathFunctions.h +0 -0
  169. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/arch/SVE/PacketMath.h +0 -0
  170. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/arch/SVE/TypeCasting.h +0 -0
  171. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/arch/SYCL/InteropHeaders.h +0 -0
  172. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/arch/SYCL/MathFunctions.h +0 -0
  173. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/arch/SYCL/PacketMath.h +0 -0
  174. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/arch/SYCL/SyclMemoryModel.h +0 -0
  175. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/arch/SYCL/TypeCasting.h +0 -0
  176. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/arch/ZVector/Complex.h +0 -0
  177. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/arch/ZVector/MathFunctions.h +0 -0
  178. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/arch/ZVector/PacketMath.h +0 -0
  179. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/functors/AssignmentFunctors.h +0 -0
  180. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/functors/BinaryFunctors.h +0 -0
  181. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/functors/NullaryFunctors.h +0 -0
  182. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/functors/StlFunctors.h +0 -0
  183. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/functors/TernaryFunctors.h +0 -0
  184. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/functors/UnaryFunctors.h +0 -0
  185. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/products/GeneralBlockPanelKernel.h +0 -0
  186. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/products/GeneralMatrixMatrix.h +0 -0
  187. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h +0 -0
  188. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/products/GeneralMatrixMatrixTriangular_BLAS.h +0 -0
  189. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/products/GeneralMatrixMatrix_BLAS.h +0 -0
  190. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/products/GeneralMatrixVector.h +0 -0
  191. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/products/GeneralMatrixVector_BLAS.h +0 -0
  192. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/products/Parallelizer.h +0 -0
  193. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/products/SelfadjointMatrixMatrix.h +0 -0
  194. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/products/SelfadjointMatrixMatrix_BLAS.h +0 -0
  195. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/products/SelfadjointMatrixVector.h +0 -0
  196. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/products/SelfadjointMatrixVector_BLAS.h +0 -0
  197. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/products/SelfadjointProduct.h +0 -0
  198. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/products/SelfadjointRank2Update.h +0 -0
  199. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/products/TriangularMatrixMatrix.h +0 -0
  200. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/products/TriangularMatrixMatrix_BLAS.h +0 -0
  201. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/products/TriangularMatrixVector.h +0 -0
  202. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/products/TriangularMatrixVector_BLAS.h +0 -0
  203. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/products/TriangularSolverMatrix.h +0 -0
  204. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/products/TriangularSolverMatrix_BLAS.h +0 -0
  205. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/products/TriangularSolverVector.h +0 -0
  206. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/util/BlasUtil.h +0 -0
  207. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/util/ConfigureVectorization.h +0 -0
  208. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/util/Constants.h +0 -0
  209. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/util/DisableStupidWarnings.h +0 -0
  210. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/util/ForwardDeclarations.h +0 -0
  211. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/util/IndexedViewHelper.h +0 -0
  212. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/util/IntegralConstant.h +0 -0
  213. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/util/MKL_support.h +0 -0
  214. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/util/Macros.h +0 -0
  215. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/util/Memory.h +0 -0
  216. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/util/Meta.h +0 -0
  217. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/util/NonMPL2.h +0 -0
  218. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/util/ReenableStupidWarnings.h +0 -0
  219. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/util/ReshapedHelper.h +0 -0
  220. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/util/StaticAssert.h +0 -0
  221. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/util/SymbolicIndex.h +0 -0
  222. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Core/util/XprHelper.h +0 -0
  223. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Eigenvalues/ComplexEigenSolver.h +0 -0
  224. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Eigenvalues/ComplexSchur.h +0 -0
  225. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Eigenvalues/ComplexSchur_LAPACKE.h +0 -0
  226. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Eigenvalues/EigenSolver.h +0 -0
  227. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Eigenvalues/GeneralizedEigenSolver.h +0 -0
  228. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Eigenvalues/GeneralizedSelfAdjointEigenSolver.h +0 -0
  229. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Eigenvalues/HessenbergDecomposition.h +0 -0
  230. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Eigenvalues/MatrixBaseEigenvalues.h +0 -0
  231. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Eigenvalues/RealQZ.h +0 -0
  232. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Eigenvalues/RealSchur.h +0 -0
  233. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Eigenvalues/RealSchur_LAPACKE.h +0 -0
  234. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Eigenvalues/SelfAdjointEigenSolver.h +0 -0
  235. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Eigenvalues/SelfAdjointEigenSolver_LAPACKE.h +0 -0
  236. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Eigenvalues/Tridiagonalization.h +0 -0
  237. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Geometry/AlignedBox.h +0 -0
  238. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Geometry/AngleAxis.h +0 -0
  239. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Geometry/EulerAngles.h +0 -0
  240. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Geometry/Homogeneous.h +0 -0
  241. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Geometry/Hyperplane.h +0 -0
  242. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Geometry/OrthoMethods.h +0 -0
  243. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Geometry/ParametrizedLine.h +0 -0
  244. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Geometry/Quaternion.h +0 -0
  245. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Geometry/Rotation2D.h +0 -0
  246. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Geometry/RotationBase.h +0 -0
  247. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Geometry/Scaling.h +0 -0
  248. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Geometry/Transform.h +0 -0
  249. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Geometry/Translation.h +0 -0
  250. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Geometry/Umeyama.h +0 -0
  251. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Geometry/arch/Geometry_SIMD.h +0 -0
  252. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Householder/BlockHouseholder.h +0 -0
  253. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Householder/Householder.h +0 -0
  254. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Householder/HouseholderSequence.h +0 -0
  255. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/IterativeLinearSolvers/BasicPreconditioners.h +0 -0
  256. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/IterativeLinearSolvers/BiCGSTAB.h +0 -0
  257. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/IterativeLinearSolvers/ConjugateGradient.h +0 -0
  258. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/IterativeLinearSolvers/IncompleteCholesky.h +0 -0
  259. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/IterativeLinearSolvers/IncompleteLUT.h +0 -0
  260. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/IterativeLinearSolvers/IterativeSolverBase.h +0 -0
  261. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/IterativeLinearSolvers/LeastSquareConjugateGradient.h +0 -0
  262. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/IterativeLinearSolvers/SolveWithGuess.h +0 -0
  263. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/Jacobi/Jacobi.h +0 -0
  264. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/KLUSupport/KLUSupport.h +0 -0
  265. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/LU/Determinant.h +0 -0
  266. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/LU/FullPivLU.h +0 -0
  267. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/LU/InverseImpl.h +0 -0
  268. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/LU/PartialPivLU.h +0 -0
  269. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/LU/PartialPivLU_LAPACKE.h +0 -0
  270. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/LU/arch/InverseSize4.h +0 -0
  271. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/MetisSupport/MetisSupport.h +0 -0
  272. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/OrderingMethods/Amd.h +0 -0
  273. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/OrderingMethods/Eigen_Colamd.h +0 -0
  274. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/OrderingMethods/Ordering.h +0 -0
  275. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/PaStiXSupport/PaStiXSupport.h +0 -0
  276. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/PardisoSupport/PardisoSupport.h +0 -0
  277. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/QR/ColPivHouseholderQR.h +0 -0
  278. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/QR/ColPivHouseholderQR_LAPACKE.h +0 -0
  279. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/QR/CompleteOrthogonalDecomposition.h +0 -0
  280. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/QR/FullPivHouseholderQR.h +0 -0
  281. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/QR/HouseholderQR.h +0 -0
  282. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/QR/HouseholderQR_LAPACKE.h +0 -0
  283. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/SPQRSupport/SuiteSparseQRSupport.h +0 -0
  284. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/SVD/BDCSVD.h +0 -0
  285. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/SVD/JacobiSVD.h +0 -0
  286. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/SVD/JacobiSVD_LAPACKE.h +0 -0
  287. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/SVD/SVDBase.h +0 -0
  288. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/SVD/UpperBidiagonalization.h +0 -0
  289. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/SparseCholesky/SimplicialCholesky.h +0 -0
  290. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/SparseCholesky/SimplicialCholesky_impl.h +0 -0
  291. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/SparseCore/AmbiVector.h +0 -0
  292. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/SparseCore/CompressedStorage.h +0 -0
  293. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/SparseCore/ConservativeSparseSparseProduct.h +0 -0
  294. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/SparseCore/MappedSparseMatrix.h +0 -0
  295. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/SparseCore/SparseAssign.h +0 -0
  296. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/SparseCore/SparseBlock.h +0 -0
  297. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/SparseCore/SparseColEtree.h +0 -0
  298. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/SparseCore/SparseCompressedBase.h +0 -0
  299. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/SparseCore/SparseCwiseBinaryOp.h +0 -0
  300. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/SparseCore/SparseCwiseUnaryOp.h +0 -0
  301. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/SparseCore/SparseDenseProduct.h +0 -0
  302. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/SparseCore/SparseDiagonalProduct.h +0 -0
  303. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/SparseCore/SparseDot.h +0 -0
  304. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/SparseCore/SparseFuzzy.h +0 -0
  305. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/SparseCore/SparseMap.h +0 -0
  306. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/SparseCore/SparseMatrix.h +0 -0
  307. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/SparseCore/SparseMatrixBase.h +0 -0
  308. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/SparseCore/SparsePermutation.h +0 -0
  309. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/SparseCore/SparseProduct.h +0 -0
  310. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/SparseCore/SparseRedux.h +0 -0
  311. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/SparseCore/SparseRef.h +0 -0
  312. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/SparseCore/SparseSelfAdjointView.h +0 -0
  313. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/SparseCore/SparseSolverBase.h +0 -0
  314. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/SparseCore/SparseSparseProductWithPruning.h +0 -0
  315. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/SparseCore/SparseTranspose.h +0 -0
  316. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/SparseCore/SparseTriangularView.h +0 -0
  317. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/SparseCore/SparseUtil.h +0 -0
  318. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/SparseCore/SparseVector.h +0 -0
  319. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/SparseCore/SparseView.h +0 -0
  320. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/SparseCore/TriangularSolver.h +0 -0
  321. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/SparseLU/SparseLU.h +0 -0
  322. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/SparseLU/SparseLUImpl.h +0 -0
  323. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/SparseLU/SparseLU_Memory.h +0 -0
  324. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/SparseLU/SparseLU_Structs.h +0 -0
  325. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/SparseLU/SparseLU_SupernodalMatrix.h +0 -0
  326. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/SparseLU/SparseLU_Utils.h +0 -0
  327. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/SparseLU/SparseLU_column_bmod.h +0 -0
  328. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/SparseLU/SparseLU_column_dfs.h +0 -0
  329. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/SparseLU/SparseLU_copy_to_ucol.h +0 -0
  330. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/SparseLU/SparseLU_gemm_kernel.h +0 -0
  331. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h +0 -0
  332. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/SparseLU/SparseLU_kernel_bmod.h +0 -0
  333. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/SparseLU/SparseLU_panel_bmod.h +0 -0
  334. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/SparseLU/SparseLU_panel_dfs.h +0 -0
  335. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/SparseLU/SparseLU_pivotL.h +0 -0
  336. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/SparseLU/SparseLU_pruneL.h +0 -0
  337. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/SparseLU/SparseLU_relax_snode.h +0 -0
  338. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/SparseQR/SparseQR.h +0 -0
  339. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/StlSupport/StdDeque.h +0 -0
  340. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/StlSupport/StdList.h +0 -0
  341. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/StlSupport/StdVector.h +0 -0
  342. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/StlSupport/details.h +0 -0
  343. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/SuperLUSupport/SuperLUSupport.h +0 -0
  344. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/UmfPackSupport/UmfPackSupport.h +0 -0
  345. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/misc/Image.h +0 -0
  346. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/misc/Kernel.h +0 -0
  347. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/misc/RealSvd2x2.h +0 -0
  348. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/misc/blas.h +0 -0
  349. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/misc/lapack.h +0 -0
  350. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/misc/lapacke.h +0 -0
  351. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/misc/lapacke_mangling.h +0 -0
  352. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/plugins/ArrayCwiseBinaryOps.h +0 -0
  353. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/plugins/ArrayCwiseUnaryOps.h +0 -0
  354. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/plugins/BlockMethods.h +0 -0
  355. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/plugins/CommonCwiseBinaryOps.h +0 -0
  356. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/plugins/CommonCwiseUnaryOps.h +0 -0
  357. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/plugins/IndexedViewMethods.h +0 -0
  358. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/plugins/MatrixCwiseBinaryOps.h +0 -0
  359. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/plugins/MatrixCwiseUnaryOps.h +0 -0
  360. {modcma-1.0.2 → modcma-1.0.4}/external/Eigen/src/plugins/ReshapedMethods.h +0 -0
  361. {modcma-1.0.2 → modcma-1.0.4}/include/bounds.hpp +0 -0
  362. {modcma-1.0.2 → modcma-1.0.4}/include/modules.hpp +0 -0
  363. {modcma-1.0.2 → modcma-1.0.4}/include/population.hpp +0 -0
  364. {modcma-1.0.2 → modcma-1.0.4}/include/restart.hpp +0 -0
  365. {modcma-1.0.2 → modcma-1.0.4}/include/selection.hpp +0 -0
  366. {modcma-1.0.2 → modcma-1.0.4}/include/settings.hpp +0 -0
  367. {modcma-1.0.2 → modcma-1.0.4}/include/stats.hpp +0 -0
  368. {modcma-1.0.2 → modcma-1.0.4}/include/to_string.hpp +0 -0
  369. {modcma-1.0.2 → modcma-1.0.4}/include/weights.hpp +0 -0
  370. {modcma-1.0.2 → modcma-1.0.4}/modcma/__init__.py +0 -0
  371. {modcma-1.0.2 → modcma-1.0.4}/modcma/asktellcmaes.py +0 -0
  372. {modcma-1.0.2 → modcma-1.0.4}/modcma/c_maes/__init__.py +0 -0
  373. {modcma-1.0.2 → modcma-1.0.4}/modcma/c_maes/cmaescpp/__init__.pyi +0 -0
  374. {modcma-1.0.2 → modcma-1.0.4}/modcma/c_maes/cmaescpp/bounds.pyi +0 -0
  375. {modcma-1.0.2 → modcma-1.0.4}/modcma/c_maes/cmaescpp/matrix_adaptation.pyi +0 -0
  376. {modcma-1.0.2 → modcma-1.0.4}/modcma/c_maes/cmaescpp/mutation.pyi +0 -0
  377. {modcma-1.0.2 → modcma-1.0.4}/modcma/c_maes/cmaescpp/options.pyi +0 -0
  378. {modcma-1.0.2 → modcma-1.0.4}/modcma/c_maes/cmaescpp/parameters.pyi +0 -0
  379. {modcma-1.0.2 → modcma-1.0.4}/modcma/c_maes/cmaescpp/restart.pyi +0 -0
  380. {modcma-1.0.2 → modcma-1.0.4}/modcma/c_maes/cmaescpp/sampling.pyi +0 -0
  381. {modcma-1.0.2 → modcma-1.0.4}/modcma/c_maes/cmaescpp/selection.pyi +0 -0
  382. {modcma-1.0.2 → modcma-1.0.4}/modcma/c_maes/cmaescpp/utils.pyi +0 -0
  383. {modcma-1.0.2 → modcma-1.0.4}/modcma/modularcmaes.py +0 -0
  384. {modcma-1.0.2 → modcma-1.0.4}/modcma/population.py +0 -0
  385. {modcma-1.0.2 → modcma-1.0.4}/modcma/sampling.py +0 -0
  386. {modcma-1.0.2 → modcma-1.0.4}/modcma/utils.py +0 -0
  387. {modcma-1.0.2 → modcma-1.0.4}/modcma.egg-info/SOURCES.txt +0 -0
  388. {modcma-1.0.2 → modcma-1.0.4}/modcma.egg-info/dependency_links.txt +0 -0
  389. {modcma-1.0.2 → modcma-1.0.4}/modcma.egg-info/requires.txt +0 -0
  390. {modcma-1.0.2 → modcma-1.0.4}/modcma.egg-info/top_level.txt +0 -0
  391. {modcma-1.0.2 → modcma-1.0.4}/pyproject.toml +0 -0
  392. {modcma-1.0.2 → modcma-1.0.4}/setup.cfg +0 -0
  393. {modcma-1.0.2 → modcma-1.0.4}/src/bounds.cpp +0 -0
  394. {modcma-1.0.2 → modcma-1.0.4}/src/matrix_adaptation.cpp +0 -0
  395. {modcma-1.0.2 → modcma-1.0.4}/src/ndtri.cpp +0 -0
  396. {modcma-1.0.2 → modcma-1.0.4}/src/population.cpp +0 -0
  397. {modcma-1.0.2 → modcma-1.0.4}/src/selection.cpp +0 -0
  398. {modcma-1.0.2 → modcma-1.0.4}/src/sobol.cpp +0 -0
  399. {modcma-1.0.2 → modcma-1.0.4}/src/weights.cpp +0 -0
  400. {modcma-1.0.2 → modcma-1.0.4}/tests/__init__.py +0 -0
  401. {modcma-1.0.2 → modcma-1.0.4}/tests/create_expected.py +0 -0
  402. {modcma-1.0.2 → modcma-1.0.4}/tests/test_asktellcmaes.py +0 -0
  403. {modcma-1.0.2 → modcma-1.0.4}/tests/test_c_adaptation.py +0 -0
  404. {modcma-1.0.2 → modcma-1.0.4}/tests/test_c_bounds.py +0 -0
  405. {modcma-1.0.2 → modcma-1.0.4}/tests/test_c_mutation.py +0 -0
  406. {modcma-1.0.2 → modcma-1.0.4}/tests/test_c_population.py +0 -0
  407. {modcma-1.0.2 → modcma-1.0.4}/tests/test_c_selection.py +0 -0
  408. {modcma-1.0.2 → modcma-1.0.4}/tests/test_c_utils.py +0 -0
  409. {modcma-1.0.2 → modcma-1.0.4}/tests/test_fmin.py +0 -0
  410. {modcma-1.0.2 → modcma-1.0.4}/tests/test_modularcmaes.py +0 -0
  411. {modcma-1.0.2 → modcma-1.0.4}/tests/test_parameters.py +0 -0
  412. {modcma-1.0.2 → modcma-1.0.4}/tests/test_population.py +0 -0
  413. {modcma-1.0.2 → modcma-1.0.4}/tests/test_sampling.py +0 -0
  414. {modcma-1.0.2 → modcma-1.0.4}/tests/test_utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: modcma
3
- Version: 1.0.2
3
+ Version: 1.0.4
4
4
  Summary: Package Containing Modular CMA-ES optimizer
5
5
  Author: Jacob de Nobel
6
6
  Author-email: jacobdenobel@gmail.com
@@ -481,9 +481,9 @@ For the C++ version these should be passed via the `RestartStrategy` enum, which
481
481
 
482
482
  ```python
483
483
  ...
484
- modules.restart_strategy = c_maes.options.StepSizeAdaptation.NONE
484
+ modules.restart_strategy = c_maes.options.RestartStrategy.NONE
485
485
  # or
486
- modules.restart_strategy = c_maes.options.StepSizeAdaptation.IPOP
486
+ modules.restart_strategy = c_maes.options.RestartStrategy.IPOP
487
487
  ```
488
488
 
489
489
  Note that the C++ version has an addtional option here, `STOP`, which forces the algortihm to stop whenever a restart condition is met (not to be confused with a break condition).
@@ -466,9 +466,9 @@ For the C++ version these should be passed via the `RestartStrategy` enum, which
466
466
 
467
467
  ```python
468
468
  ...
469
- modules.restart_strategy = c_maes.options.StepSizeAdaptation.NONE
469
+ modules.restart_strategy = c_maes.options.RestartStrategy.NONE
470
470
  # or
471
- modules.restart_strategy = c_maes.options.StepSizeAdaptation.IPOP
471
+ modules.restart_strategy = c_maes.options.RestartStrategy.IPOP
472
472
  ```
473
473
 
474
474
  Note that the C++ version has an addtional option here, `STOP`, which forces the algortihm to stop whenever a restart condition is met (not to be confused with a break condition).
@@ -10,10 +10,10 @@ struct ModularCMAES
10
10
 
11
11
  void recombine();
12
12
 
13
- bool step(std::function<double(Vector)> objective);
14
-
15
- void operator()(std::function<double(Vector)> objective);
13
+ bool step(FunctionType& objective);
16
14
 
15
+ void operator()(FunctionType& objective);
16
+
17
17
  bool break_conditions() const;
18
18
  };
19
19
 
@@ -21,10 +21,14 @@
21
21
  using Matrix = Eigen::MatrixXd;
22
22
  using Vector = Eigen::VectorXd;
23
23
  using Array = Eigen::ArrayXd;
24
+ using size_to = std::optional<size_t>;
24
25
 
25
26
  template <typename T>
26
27
  std::ostream &operator<<(std::ostream &os, const std::vector<T> &x);
27
28
 
29
+
30
+ using FunctionType = std::function<double(const Vector&)>;
31
+
28
32
  namespace utils
29
33
  {
30
34
  /**
@@ -38,6 +42,8 @@ namespace utils
38
42
  */
39
43
  std::vector<size_t> sort_indexes(const Vector &v);
40
44
 
45
+ std::vector<size_t> sort_indexes(const std::vector<size_t>& v);
46
+
41
47
  /**
42
48
  * @brief Concat two matrices inplace, i.e. put Y in X (colwise)
43
49
  *
@@ -14,8 +14,8 @@ namespace matrix_adaptation
14
14
  double dd;
15
15
  double chiN;
16
16
 
17
- Adaptation(const size_t dim, const Vector &x0) : m(x0), m_old(dim), dm(Vector::Zero(dim)),
18
- ps(Vector::Zero(dim)), dd(static_cast<double>(dim)),
17
+ Adaptation(const size_t dim, const Vector &x0, const Vector &ps) : m(x0), m_old(dim), dm(Vector::Zero(dim)),
18
+ ps(ps), dd(static_cast<double>(dim)),
19
19
  chiN(sqrt(dd) * (1.0 - 1.0 / (4.0 * dd) + 1.0 / (21.0 * pow(dd, 2.0)))) {}
20
20
 
21
21
  virtual void adapt_evolution_paths(const Population &pop, const parameters::Weights &w, const std::shared_ptr<mutation::Strategy> &mutation, const parameters::Stats &stats, const size_t mu, const size_t lambda) = 0;
@@ -27,7 +27,7 @@ namespace matrix_adaptation
27
27
 
28
28
  struct None : Adaptation
29
29
  {
30
- None(const size_t dim, const Vector &x0) : Adaptation(dim, x0) {}
30
+ None(const size_t dim, const Vector &x0) : Adaptation(dim, x0, Vector::Ones(dim)) {}
31
31
  virtual bool adapt_matrix(const parameters::Weights &w, const parameters::Modules &m, const Population &pop, const size_t mu, const parameters::Settings &settings) override
32
32
  {
33
33
  return true;
@@ -46,7 +46,7 @@ namespace matrix_adaptation
46
46
  Matrix inv_root_C;
47
47
  bool hs = true;
48
48
 
49
- CovarianceAdaptation(const size_t dim, const Vector &x0) : Adaptation(dim, x0), pc(Vector::Zero(dim)),
49
+ CovarianceAdaptation(const size_t dim, const Vector &x0) : Adaptation(dim, x0, Vector::Zero(dim)), pc(Vector::Zero(dim)),
50
50
  d(Vector::Ones(dim)),
51
51
  B(Matrix::Identity(dim, dim)), C(Matrix::Identity(dim, dim)),
52
52
  inv_root_C(Matrix::Identity(dim, dim))
@@ -72,8 +72,7 @@ namespace matrix_adaptation
72
72
  struct MatrixAdaptation : Adaptation
73
73
  {
74
74
  Matrix M;
75
- MatrixAdaptation(const size_t dim, const Vector &x0) : Adaptation(dim, x0), M(Matrix::Identity(dim, dim)) {
76
- ps.setConstant(1);
75
+ MatrixAdaptation(const size_t dim, const Vector &x0) : Adaptation(dim, x0, Vector::Ones(dim)), M(Matrix::Identity(dim, dim)) {
77
76
  }
78
77
 
79
78
  void adapt_evolution_paths(const Population &pop, const parameters::Weights &w, const std::shared_ptr<mutation::Strategy> &mutation, const parameters::Stats &stats, const size_t mu, const size_t lambda) override;
@@ -95,7 +95,8 @@ namespace mutation
95
95
  const std::shared_ptr<SigmaSampler> &sigma_sampler,
96
96
  const double cs, const double sigma0) : tc(threshold_covergence), sq(sequential_selection), ss(sigma_sampler), cs(cs), sigma(sigma0) {}
97
97
 
98
- virtual void mutate(std::function<double(Vector)> objective, const size_t n_offspring, parameters::Parameters &p) = 0;
98
+
99
+ virtual void mutate(FunctionType& objective, const size_t n_offspring, parameters::Parameters& p) = 0;
99
100
 
100
101
  virtual void adapt(const parameters::Weights &w, std::shared_ptr<matrix_adaptation::Adaptation> adaptation, Population &pop,
101
102
  const Population &old_pop, const parameters::Stats &stats, const size_t lambda) = 0;
@@ -110,7 +111,7 @@ namespace mutation
110
111
  const std::shared_ptr<SigmaSampler> &sigma_sampler,
111
112
  const double cs, const double damps, const double sigma0) : Strategy(threshold_covergence, sequential_selection, sigma_sampler, cs, sigma0), damps(damps) {}
112
113
 
113
- void mutate(std::function<double(Vector)> objective, const size_t n_offspring, parameters::Parameters &p) override;
114
+ void mutate(FunctionType& objective, const size_t n_offspring, parameters::Parameters& p) override;
114
115
 
115
116
  void adapt(const parameters::Weights &w, std::shared_ptr<matrix_adaptation::Adaptation> adaptation, Population &pop,
116
117
  const Population &old_pop, const parameters::Stats &stats, const size_t lambda) override;
@@ -124,7 +125,7 @@ namespace mutation
124
125
  double b_tpa = 0.0;
125
126
  double rank_tpa = 0.0;
126
127
 
127
- void mutate(std::function<double(Vector)> objective, const size_t n_offspring, parameters::Parameters &p) override;
128
+ void mutate(FunctionType& objective, const size_t n_offspring, parameters::Parameters &p) override;
128
129
 
129
130
  void adapt(const parameters::Weights &w, std::shared_ptr<matrix_adaptation::Adaptation> adaptation, Population &pop,
130
131
  const Population &old_pop, const parameters::Stats &stats, const size_t lambda) override;
@@ -141,6 +142,8 @@ namespace mutation
141
142
  struct PSR : CSA
142
143
  {
143
144
  double succes_ratio = .25;
145
+
146
+ Vector combined;
144
147
 
145
148
  using CSA::CSA;
146
149
 
@@ -10,8 +10,6 @@
10
10
  #include "selection.hpp"
11
11
  #include "weights.hpp"
12
12
 
13
- using size_to = std::optional<size_t>;
14
-
15
13
  namespace parameters
16
14
  {
17
15
  struct Parameters
@@ -133,12 +133,12 @@ namespace sampling
133
133
  */
134
134
  struct Halton : Sampler
135
135
  {
136
- Halton(const size_t d, const size_t i = 1);
136
+ Halton(const size_t d, const size_to i = std::nullopt);
137
137
 
138
138
  [[nodiscard]] Vector operator()() override;
139
139
 
140
140
  private:
141
- size_t i;
141
+ size_t seed;
142
142
  std::vector<int> primes;
143
143
 
144
144
  static double next(int index, int base);
@@ -34,4 +34,4 @@ for arg in args.pop("arguments") or []:
34
34
  exec(arg, None, args)
35
35
 
36
36
 
37
- evaluate_bbob(**args, step_size_adaptation="tpa", active=True)
37
+ evaluate_bbob(**args, active=True, step_size_adaptation="psr")
@@ -559,7 +559,7 @@ class Parameters(AnnotatedStruct):
559
559
  combined = (self.population[:n] + self.old_population[:n]).sort()
560
560
  r = np.searchsorted(combined.f, self.population.f[:n])
561
561
  r_old = np.searchsorted(combined.f, self.old_population.f[:n])
562
-
562
+
563
563
  zpsr = (r_old - r).sum() / pow(n, 2) - self.succes_ratio
564
564
  self.s = (1 - self.cs) * self.s + (self.cs * zpsr)
565
565
  self.sigma *= np.exp(self.s / self.ds)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: modcma
3
- Version: 1.0.2
3
+ Version: 1.0.4
4
4
  Summary: Package Containing Modular CMA-ES optimizer
5
5
  Author: Jacob de Nobel
6
6
  Author-email: jacobdenobel@gmail.com
@@ -481,9 +481,9 @@ For the C++ version these should be passed via the `RestartStrategy` enum, which
481
481
 
482
482
  ```python
483
483
  ...
484
- modules.restart_strategy = c_maes.options.StepSizeAdaptation.NONE
484
+ modules.restart_strategy = c_maes.options.RestartStrategy.NONE
485
485
  # or
486
- modules.restart_strategy = c_maes.options.StepSizeAdaptation.IPOP
486
+ modules.restart_strategy = c_maes.options.RestartStrategy.IPOP
487
487
  ```
488
488
 
489
489
  Note that the C++ version has an addtional option here, `STOP`, which forces the algortihm to stop whenever a restart condition is met (not to be confused with a break condition).
@@ -11,11 +11,11 @@ from pybind11.setup_helpers import Pybind11Extension, build_ext
11
11
  with open("README.md", "r", encoding="Latin-1") as fh:
12
12
  long_description = fh.read()
13
13
 
14
- __version__ = "1.0.2"
14
+ __version__ = "1.0.4"
15
15
 
16
16
  ext = Pybind11Extension(
17
17
  "modcma.c_maes.cmaescpp",
18
- glob("src/*cpp"),
18
+ [x for x in glob("src/*cpp") if "main" not in x],
19
19
  include_dirs=["include", "external"],
20
20
  cxx_std=17,
21
21
  )
@@ -0,0 +1,37 @@
1
+ #include "c_maes.hpp"
2
+
3
+ void ModularCMAES::recombine()
4
+ {
5
+ p->adaptation->m_old = p->adaptation->m;
6
+ p->adaptation->m = p->adaptation->m_old + ((p->pop.X.leftCols(p->mu).colwise() - p->adaptation->m_old) * p->weights.positive);
7
+ }
8
+
9
+ bool ModularCMAES::step(FunctionType& objective)
10
+ {
11
+ p->mutation->mutate(objective, p->lambda, *p);
12
+ p->selection->select(*p);
13
+ recombine();
14
+ p->adapt();
15
+ if (p->stats.t % (p->settings.dim * 2) == 0 and p->settings.verbose)
16
+ std::cout << p->stats << " (mu, lambda, sigma): " << p->mu
17
+ << ", " << p->lambda << ", " << p->mutation->sigma << std::endl;
18
+ return !break_conditions();
19
+ }
20
+
21
+ void ModularCMAES::operator()(FunctionType& objective)
22
+ {
23
+ while (step(objective))
24
+ ;
25
+
26
+ if (p->settings.verbose)
27
+ std::cout << p->stats << std::endl;
28
+ }
29
+
30
+ bool ModularCMAES::break_conditions() const
31
+ {
32
+ const auto target_reached = p->settings.target and p->settings.target.value() >= p->stats.fopt;
33
+ const auto budget_used_up = p->stats.evaluations >= p->settings.budget;
34
+ const auto exceed_gens = p->settings.max_generations and p->stats.t >= p->settings.max_generations;
35
+ const auto restart_strategy_criteria = p->settings.modules.restart_strategy == parameters::RestartStrategyType::STOP and p->restart->criteria.any;
36
+ return exceed_gens or target_reached or budget_used_up or restart_strategy_criteria;
37
+ }
@@ -22,6 +22,18 @@ namespace utils
22
22
  return idx;
23
23
  }
24
24
 
25
+ std::vector<size_t> sort_indexes(const std::vector<size_t> &v)
26
+ {
27
+ std::vector<size_t> idx(v.size());
28
+ std::iota(idx.begin(), idx.end(), 0);
29
+
30
+ std::stable_sort(idx.begin(), idx.end(),
31
+ [&v](size_t i1, size_t i2)
32
+ { return v[i1] < v[i2]; });
33
+
34
+ return idx;
35
+ }
36
+
25
37
  void hstack(Matrix &X, const Matrix &Y)
26
38
  {
27
39
  X.conservativeResize(Eigen::NoChange, X.cols() + Y.cols());
@@ -56,7 +68,7 @@ namespace utils
56
68
 
57
69
  namespace rng
58
70
  {
59
- int SEED = 0;
71
+ int SEED = std::random_device()();
60
72
  std::mt19937 GENERATOR(SEED);
61
73
 
62
74
  void set_seed(const int seed)
@@ -72,13 +84,15 @@ namespace rng
72
84
  }
73
85
  }
74
86
 
75
- namespace functions {
76
- double sphere(const Vector &x)
87
+ namespace functions
77
88
  {
78
- double res = 0;
79
- for (auto &xi : x)
80
- res += xi * xi;
81
- return res;
82
- }
83
-
89
+
90
+ double sphere(const Vector &x)
91
+ {
92
+ double res = 0;
93
+ for (auto &xi : x)
94
+ res += xi * xi;
95
+ return res;
96
+ }
97
+
84
98
  }
@@ -117,7 +117,7 @@ void define_samplers(py::module &main)
117
117
  .def("__call__", &Sobol::operator());
118
118
 
119
119
  py::class_<Halton, Sampler, std::shared_ptr<Halton>>(m, "Halton")
120
- .def(py::init<size_t, size_t>(), py::arg("d"), py::arg("i") = 1)
120
+ .def(py::init<size_t, size_to>(), py::arg("d"), py::arg("i") = std::nullopt)
121
121
  .def("__call__", &Halton::operator());
122
122
 
123
123
  py::class_<Mirrored, Sampler, std::shared_ptr<Mirrored>>(m, "Mirrored")
@@ -730,7 +730,7 @@ void define_cmaes(py::module &m)
730
730
  py::class_<ModularCMAES>(m, "ModularCMAES")
731
731
  .def(py::init<std::shared_ptr<parameters::Parameters>>(), py::arg("parameters"))
732
732
  .def("recombine", &ModularCMAES::recombine)
733
- .def("mutate", [](ModularCMAES &self, std::function<double(Vector)> objective)
733
+ .def("mutate", [](ModularCMAES &self, FunctionType& objective)
734
734
  { self.p->mutation->mutate(objective, self.p->lambda, *self.p); })
735
735
  .def("select", [](ModularCMAES &self)
736
736
  { self.p->selection->select(*self.p); })
@@ -756,4 +756,4 @@ PYBIND11_MODULE(cmaescpp, m)
756
756
  define_bounds(m);
757
757
  define_selection(m);
758
758
  define_cmaes(m);
759
- }
759
+ }
@@ -24,7 +24,7 @@ namespace mutation
24
24
  sigma *= std::exp((cs / damps) * ((adaptation->ps.norm() / adaptation->chiN) - 1));
25
25
  }
26
26
 
27
- void CSA::mutate(std::function<double(Vector)> objective, const size_t n_offspring, parameters::Parameters &p)
27
+ void CSA::mutate(FunctionType& objective, const size_t n_offspring, parameters::Parameters& p)
28
28
  {
29
29
  ss->sample(sigma, p.pop);
30
30
 
@@ -49,7 +49,7 @@ namespace mutation
49
49
  }
50
50
  }
51
51
 
52
- void TPA::mutate(std::function<double(Vector)> objective, const size_t n_offspring_, parameters::Parameters &p)
52
+ void TPA::mutate(FunctionType& objective, const size_t n_offspring_, parameters::Parameters& p)
53
53
  {
54
54
  CSA::mutate(objective, n_offspring_, p);
55
55
 
@@ -77,7 +77,8 @@ namespace mutation
77
77
  void MSR::adapt(const parameters::Weights &w, std::shared_ptr<matrix_adaptation::Adaptation> adaptation, Population &pop,
78
78
  const Population &old_pop, const parameters::Stats &stats, const size_t lamb)
79
79
  {
80
- if (stats.t != 0)
80
+ const auto n = std::min(pop.n_finite(), old_pop.n_finite());
81
+ if (n != 0)
81
82
  {
82
83
  const double lambda = static_cast<double>(lamb);
83
84
  const double k = (pop.f.array() < median(old_pop.f)).cast<double>().sum();
@@ -105,18 +106,23 @@ namespace mutation
105
106
  const Population &old_pop, const parameters::Stats &stats, const size_t lambda)
106
107
  {
107
108
 
108
- if (stats.t != 0)
109
+ const auto n = std::min(pop.n_finite(), old_pop.n_finite());
110
+ if (n != 0)
109
111
  {
110
- const auto n = std::min(pop.n_finite(), old_pop.n_finite());
111
- auto combined = Vector(n + n);
112
- combined << pop.f.head(n), old_pop.f.head(n);
112
+ combined.conservativeResize(n + n);
113
+ combined.head(n) = pop.f.head(n);
114
+ combined.tail(n) = old_pop.f.head(n);
113
115
  const auto idx = utils::sort_indexes(combined);
114
- combined = combined(idx).eval();
115
-
116
- auto r = searchsorted(pop.f.head(n), combined);
117
- auto r_old = searchsorted(old_pop.f.head(n), combined);
118
- const auto z = (r_old - r).sum() / std::pow(n, 2) - succes_ratio;
119
-
116
+ const auto oidx = utils::sort_indexes(idx);
117
+
118
+ double delta_r = 0.0;
119
+ for (size_t i = 0; i < n; i++) {
120
+ double r = oidx[i];
121
+ double r_old = oidx[n + i];
122
+ delta_r += (r_old - r);
123
+ }
124
+
125
+ const auto z = delta_r / std::pow(n, 2) - succes_ratio;
120
126
  s = (1.0 - cs) * s + (cs * z);
121
127
  sigma *= std::exp(s / (2.0 - (2.0 / adaptation->dd)));
122
128
  }
@@ -126,15 +132,15 @@ namespace mutation
126
132
  const Population &old_pop, const parameters::Stats &stats, const size_t lambda)
127
133
  {
128
134
 
129
- // const double z = ((std::dynamic_pointer_cast<matrix_adaptation::CovarianceAdaptation>(adaptation)->inv_root_C * pop.Y).colwise().norm().array().pow(2.) - adaptation->dd).matrix() * w.clipped();
135
+ // const double z = ((std::dynamic_pointer_cast<matrix_adaptation::CovarianceAdaptation>(adaptation)->inv_root_C * .Y).colwise().norm().array().pow(2.) - adaptation->dd).matrix() * w.clipped();
130
136
  const double z = ((pop.Z).colwise().norm().array().pow(2.) - adaptation->dd).matrix() * w.clipped();
131
137
  sigma *= std::exp((cs / std::sqrt(adaptation->dd)) * z);
132
138
  }
133
139
  void MXNES::adapt(const parameters::Weights &w, std::shared_ptr<matrix_adaptation::Adaptation> adaptation, Population &pop,
134
140
  const Population &old_pop, const parameters::Stats &stats, const size_t lambda)
135
141
  {
136
- if (stats.t != 0)
137
- {
142
+ const auto n = std::min(pop.n_finite(), old_pop.n_finite());
143
+ if (n != 0) {
138
144
  // const auto z = (w.mueff * std::pow((dynamic.inv_root_C * dynamic.dm).norm(), 2)) - dynamic.dd;
139
145
  const auto mu = pop.n - lambda;
140
146
  const auto dz = (pop.Z.leftCols(mu).array().rowwise() * w.positive.array().transpose()).rowwise().sum().matrix();
@@ -31,6 +31,7 @@ namespace parameters
31
31
  Parameters::Parameters(const size_t dim) : Parameters(Settings(dim, {})) {}
32
32
 
33
33
  void Parameters::perform_restart(const std::optional<double>& sigma) {
34
+
34
35
  weights = Weights(settings.dim, mu, lambda, settings);
35
36
  sampler = sampling::get(settings.dim, settings.modules, lambda);
36
37
 
@@ -9,8 +9,13 @@ namespace restart
9
9
  //! max - min, for the last n elements of a vector
10
10
  double ptp_tail(const std::vector<double> &v, const size_t n)
11
11
  {
12
- double min = *std::min_element(v.end() - n, v.end());
13
- double max = *std::max_element(v.end() - n, v.end());
12
+ const auto na = std::min(v.size(), n);
13
+ if (na == 1) {
14
+ return v[0];
15
+ }
16
+
17
+ double min = *std::min_element(v.end() - na, v.end());
18
+ double max = *std::max_element(v.end() - na, v.end());
14
19
  return max - min;
15
20
  }
16
21
 
@@ -42,7 +42,7 @@ namespace sampling
42
42
  return samples.col(current++);
43
43
  }
44
44
 
45
- Halton::Halton(const size_t d, const size_t i) : Sampler(d), i(i)
45
+ Halton::Halton(const size_t d, const size_to i) : Sampler(d), seed(i.value_or( rng::random_integer(1, INT_MAX)))
46
46
  {
47
47
  primes = sieve(std::max(6, static_cast<int>(d)));
48
48
  while (primes.size() < d)
@@ -54,8 +54,8 @@ namespace sampling
54
54
  {
55
55
  Vector res(d);
56
56
  for (size_t j = 0; j < d; ++j)
57
- res(j) = ppf(next(static_cast<int>(i), primes[j]));
58
- i++;
57
+ res(j) = ppf(next(static_cast<int>(seed), primes[j]));
58
+ seed++;
59
59
  return res;
60
60
  }
61
61
 
@@ -22,13 +22,17 @@ class TestSampling(unittest.TestCase):
22
22
  self.sampler_test(sampler, 1.107994899)
23
23
 
24
24
  def test_base_sampler_halton(self):
25
- sampler = sampling.Halton(5)
25
+ sampler = sampling.Halton(5, 1)
26
26
  self.sampler_test(sampler, -3.675096792)
27
27
 
28
28
  def test_base_sampler_sobol(self):
29
29
  sampler = sampling.Sobol(5)
30
30
  self.sampler_test(sampler, -1.651717819)
31
31
 
32
+ def test_samplers_are_random(self):
33
+ for sampler in (sampling.Halton, sampling.Sobol):
34
+ samples = np.array([sampler(5)() for _ in range(5)])
35
+ self.assertGreater(abs(samples[0] - samples).sum(), 1e-10)
32
36
 
33
37
  def test_mirrored(self):
34
38
  sampler = sampling.Mirrored(sampling.Gaussian(5))
@@ -1,37 +0,0 @@
1
- #include "c_maes.hpp"
2
-
3
- void ModularCMAES::recombine()
4
- {
5
- p->adaptation->m_old = p->adaptation->m;
6
- p->adaptation->m = p->adaptation->m_old + ((p->pop.X.leftCols(p->mu).colwise() - p->adaptation->m_old) * p->weights.positive);
7
- }
8
-
9
- bool ModularCMAES::step(std::function<double(Vector)> objective)
10
- {
11
- p->mutation->mutate(objective, p->lambda, *p);
12
- p->selection->select(*p);
13
- recombine();
14
- p->adapt();
15
- if (p->stats.t % (p->settings.dim * 2) == 0 and p->settings.verbose)
16
- std::cout << p->stats << " (mu, lambda, sigma): " << p->mu
17
- << ", " << p->lambda << ", " << p->mutation->sigma << std::endl;
18
- return !break_conditions();
19
- }
20
-
21
- void ModularCMAES::operator()(std::function<double(Vector)> objective)
22
- {
23
- while (step(objective));
24
-
25
- if (p->settings.verbose)
26
- std::cout << p->stats << std::endl;
27
- }
28
-
29
- bool ModularCMAES::break_conditions() const
30
- {
31
- const auto target_reached = p->settings.target and p->settings.target.value() >= p->stats.fopt;
32
- const auto budget_used_up = p->stats.evaluations >= p->settings.budget;
33
- const auto exceed_gens = p->settings.max_generations and p->stats.t >= p->settings.max_generations;
34
- const auto restart_strategy_criteria = p->settings.modules.restart_strategy == parameters::RestartStrategyType::STOP and
35
- p->restart->criteria.any;
36
- return exceed_gens or target_reached or budget_used_up or restart_strategy_criteria;
37
- }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes