A Python version of the code reproduction for A Two-Phase Differential Evolution for Uniform Designs in Constrained Experimental Domains, and using the A Two-dimensional Example in the paper as an example.
If you want to sample data in different constrained domains, you should modify the fitness1 function in ToPDE.py.
numpy == 1.23.3
Wang Y, Xu B, Sun G, et al. A two-phase differential evolution for uniform designs in constrained experimental domains[J]. IEEE Transactions on Evolutionary Computation, 2017, 21(5): 665-680.