qpots 1.0.6__py3-none-any.whl

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 (116) hide show
  1. qpots/TS-EMO/BC_function.py +18 -0
  2. qpots/TS-EMO/BC_wrapper.m~ +15 -0
  3. qpots/TS-EMO/ChangeLog.md +16 -0
  4. qpots/TS-EMO/Direct/DIRECT Optimization Algorithm User Guide.pdf +0 -0
  5. qpots/TS-EMO/Direct/Direct.m +730 -0
  6. qpots/TS-EMO/Direct/LICENSE +1 -0
  7. qpots/TS-EMO/Direct/README.md +12 -0
  8. qpots/TS-EMO/LICENSE +25 -0
  9. qpots/TS-EMO/Mex_files/hypervolume/LICENSE +289 -0
  10. qpots/TS-EMO/Mex_files/hypervolume/README.md +25 -0
  11. qpots/TS-EMO/Mex_files/hypervolume/hypervolume2D.m +45 -0
  12. qpots/TS-EMO/Mex_files/hypervolume/hypervolume2D.mexw64 +0 -0
  13. qpots/TS-EMO/Mex_files/hypervolume/hypervolume3D.m +153 -0
  14. qpots/TS-EMO/Mex_files/hypervolume/hypervolume3D.mexw64 +0 -0
  15. qpots/TS-EMO/Mex_files/invchol/LICENSE +24 -0
  16. qpots/TS-EMO/Mex_files/invchol/README.md +16 -0
  17. qpots/TS-EMO/Mex_files/invchol/invChol.m +6 -0
  18. qpots/TS-EMO/Mex_files/invchol/invChol.mexw64 +0 -0
  19. qpots/TS-EMO/Mex_files/invchol/invChol_mex.c +163 -0
  20. qpots/TS-EMO/Mex_files/invchol/run_to_compile_and_test.m +79 -0
  21. qpots/TS-EMO/Mex_files/pareto front/LICENSE +24 -0
  22. qpots/TS-EMO/Mex_files/pareto front/README.md +13 -0
  23. qpots/TS-EMO/Mex_files/pareto front/paretofront.m +50 -0
  24. qpots/TS-EMO/Mex_files/pareto front/paretofront.mexw64 +0 -0
  25. qpots/TS-EMO/NGPM_v1.4/LICENSE +24 -0
  26. qpots/TS-EMO/NGPM_v1.4/NGPM manual v1.4.pdf +0 -0
  27. qpots/TS-EMO/NGPM_v1.4/README.md +12 -0
  28. qpots/TS-EMO/NGPM_v1.4/callOutputfuns.m +24 -0
  29. qpots/TS-EMO/NGPM_v1.4/crossoverOp.m +95 -0
  30. qpots/TS-EMO/NGPM_v1.4/evaluate.m +81 -0
  31. qpots/TS-EMO/NGPM_v1.4/extractPop.m +54 -0
  32. qpots/TS-EMO/NGPM_v1.4/initpop.m +177 -0
  33. qpots/TS-EMO/NGPM_v1.4/loadpopfile.m +176 -0
  34. qpots/TS-EMO/NGPM_v1.4/mutationOp.m +108 -0
  35. qpots/TS-EMO/NGPM_v1.4/ndsort.m +380 -0
  36. qpots/TS-EMO/NGPM_v1.4/nsga2.m +150 -0
  37. qpots/TS-EMO/NGPM_v1.4/nsgaopt.m +47 -0
  38. qpots/TS-EMO/NGPM_v1.4/output2file.m +105 -0
  39. qpots/TS-EMO/NGPM_v1.4/plotnsga.fig +0 -0
  40. qpots/TS-EMO/NGPM_v1.4/plotnsga.m +359 -0
  41. qpots/TS-EMO/NGPM_v1.4/selectOp.m +81 -0
  42. qpots/TS-EMO/NGPM_v1.4/statpop.m +18 -0
  43. qpots/TS-EMO/NGPM_v1.4/varlimit.m +17 -0
  44. qpots/TS-EMO/NGPM_v1.4/verifyOpt.m +73 -0
  45. qpots/TS-EMO/Old_versions/Images/GP_sample_graphs.jpg +0 -0
  46. qpots/TS-EMO/Old_versions/Images/README.md +1 -0
  47. qpots/TS-EMO/Old_versions/README.md +1 -0
  48. qpots/TS-EMO/Old_versions/TSEMO_V1.m +688 -0
  49. qpots/TS-EMO/Old_versions/TSEMO_V2.m +958 -0
  50. qpots/TS-EMO/Old_versions/TSEMO_V3.m +985 -0
  51. qpots/TS-EMO/README.md +43 -0
  52. qpots/TS-EMO/TSEMO_Example.m +71 -0
  53. qpots/TS-EMO/TSEMO_V4.m +1008 -0
  54. qpots/TS-EMO/TSEMO_log.txt +1557 -0
  55. qpots/TS-EMO/TSEMO_options.m +16 -0
  56. qpots/TS-EMO/TSEMO_run.m +19 -0
  57. qpots/TS-EMO/TSEMO_run.m~ +28 -0
  58. qpots/TS-EMO/Test_functions/BC_wrapper.m +16 -0
  59. qpots/TS-EMO/Test_functions/README.md +5 -0
  60. qpots/TS-EMO/Test_functions/dtlz1a.m +13 -0
  61. qpots/TS-EMO/Test_functions/dtlz2a.m +16 -0
  62. qpots/TS-EMO/Test_functions/dtlz4a.m +16 -0
  63. qpots/TS-EMO/Test_functions/dtlz7a.m +21 -0
  64. qpots/TS-EMO/Test_functions/kno1.m +8 -0
  65. qpots/TS-EMO/Test_functions/oka1.m +8 -0
  66. qpots/TS-EMO/Test_functions/oka2.m +4 -0
  67. qpots/TS-EMO/Test_functions/vlmop2.m +10 -0
  68. qpots/TS-EMO/Test_functions/vlmop3.m +5 -0
  69. qpots/TS-EMO/X_20.npy +0 -0
  70. qpots/TS-EMO/Y_20.npy +0 -0
  71. qpots/TS-EMO/__pycache__/BC_function.cpython-310.pyc +0 -0
  72. qpots/TS-EMO/__pycache__/BC_function.cpython-38.pyc +0 -0
  73. qpots/TS-EMO/__pycache__/dh1_func.cpython-38.pyc +0 -0
  74. qpots/TS-EMO/__pycache__/dtlz1_func.cpython-38.pyc +0 -0
  75. qpots/TS-EMO/__pycache__/dtlz3.cpython-38.pyc +0 -0
  76. qpots/TS-EMO/__pycache__/dtlz7.cpython-38.pyc +0 -0
  77. qpots/TS-EMO/__pycache__/penicillin_func.cpython-38.pyc +0 -0
  78. qpots/TS-EMO/branincurrin.m +15 -0
  79. qpots/TS-EMO/carside.m +7 -0
  80. qpots/TS-EMO/carside.py +9 -0
  81. qpots/TS-EMO/dh1.m +10 -0
  82. qpots/TS-EMO/dh1.m~ +5 -0
  83. qpots/TS-EMO/dh1_func.py +13 -0
  84. qpots/TS-EMO/dh1_func.py~ +13 -0
  85. qpots/TS-EMO/dtlz1.m +9 -0
  86. qpots/TS-EMO/dtlz1.m~ +9 -0
  87. qpots/TS-EMO/dtlz1_func.py +12 -0
  88. qpots/TS-EMO/dtlz1_func.py~ +12 -0
  89. qpots/TS-EMO/dtlz3.m +11 -0
  90. qpots/TS-EMO/dtlz3.m~ +3 -0
  91. qpots/TS-EMO/dtlz3.py +13 -0
  92. qpots/TS-EMO/dtlz3.py~ +13 -0
  93. qpots/TS-EMO/dtlz7.m +11 -0
  94. qpots/TS-EMO/dtlz7.m~ +2 -0
  95. qpots/TS-EMO/dtlz7.py +12 -0
  96. qpots/TS-EMO/dtlz7.py~ +12 -0
  97. qpots/TS-EMO/penicillin.m +8 -0
  98. qpots/TS-EMO/penicillin_func.py +15 -0
  99. qpots/TS-EMO/penicllin.m~ +6 -0
  100. qpots/TS-EMO/pennicilin_func.py~ +15 -0
  101. qpots/TS-EMO/startup.m +7 -0
  102. qpots/TS-EMO/times_20.npy +0 -0
  103. qpots/TS-EMO/vehicle.m +7 -0
  104. qpots/TS-EMO/vehiclesafety.py +9 -0
  105. qpots/__init__.py +3 -0
  106. qpots/acquisition.py +603 -0
  107. qpots/function.py +146 -0
  108. qpots/model_object.py +114 -0
  109. qpots/tsemo_runner.py +182 -0
  110. qpots/utils/pymoo_problem.py +103 -0
  111. qpots/utils/utils.py +191 -0
  112. qpots-1.0.6.dist-info/LICENSE +674 -0
  113. qpots-1.0.6.dist-info/METADATA +800 -0
  114. qpots-1.0.6.dist-info/RECORD +116 -0
  115. qpots-1.0.6.dist-info/WHEEL +5 -0
  116. qpots-1.0.6.dist-info/top_level.txt +1 -0
@@ -0,0 +1,18 @@
1
+ # Assuming BC_function.py contains the necessary imports and the BraninCurrin class definition
2
+
3
+ import torch
4
+ import numpy as np
5
+ from botorch.test_functions import BraninCurrin
6
+
7
+ def BC_evaluate(x):
8
+ # Convert numpy array input to a PyTorch tensor
9
+ X = torch.tensor(x, dtype=torch.float32)
10
+
11
+ # Instantiate BraninCurrin problem
12
+ problem = BraninCurrin()
13
+
14
+ # Evaluate the problem with the given inputs
15
+ result = problem.evaluate_true(X)
16
+
17
+ # Convert the result back to a numpy array and return
18
+ return result.numpy()
@@ -0,0 +1,15 @@
1
+ function y = BC_wrapper(x)
2
+ % Ensure the Python script directory is in the Python search path
3
+ insert(py.sys.path, int32(0), '/storage/home/kkc5441/work/mobo/TS-EMO/BC_function.py');
4
+
5
+ BCModule = py.importlib.import_module('BC_function');
6
+
7
+ % Prepare input as a 2D numpy array. Reshape x if necessary.
8
+ py_x = py.numpy.array(reshape(x, [], 2));
9
+
10
+ % Call the Python function
11
+ py_y = BCModule.BC_evaluate(py_x);
12
+
13
+ % Convert the Python output (numpy array) to a MATLAB array
14
+ y = double(py.array.array('d', py.numpy.nditer(py_y)));
15
+ end
@@ -0,0 +1,16 @@
1
+ Changes TSEMO version 1 to version 2
2
+
3
+ - Added small offset to nadir point as reference point to give boundary points in the candidate set a non-zero hypervolume
4
+ - Added as algorithm outputs the final hyperparameters for analysis
5
+ - Added the Pareto set of the final GP model as output
6
+ - TS-EMO now creates a log file that contains all relevant information over the entire algorithm run.
7
+ ___________________________________________________________________________________________________________________________________________
8
+ Changes TSEMO version 2 to version 3
9
+
10
+ - Changed sampling of vector "b" for spectral sampling using Latin hypercube rather than Monte Carlo
11
+ - Changed sampling of matrix "W" for spectral sampling using Latin hypercube rather than Monte Carlo
12
+
13
+ Changes TSEMO version 3 to version 4
14
+
15
+ - Added warm-start to NSGA-II algorithm, i.e. the previous final population is now used as the initial population in the next iteration.
16
+ - Added output "YParetoGPstd", which gives the standard deviations of the GP pareto front. These can be used as an uncertainty measure for the Pareto front.