Closed maozhitao closed 2 years ago
Hi,
This error occurs during the simplification of the final solutions, which involves an encoding and decoding process of solutions. This might not always be possible, and it is the reason for the error. You might want to run the optimization process without simplifying the final solutions, that is, passing the no simplify parameter when running the EA: final_pop= ea.run(simplify=False)
.
If you have any additional questions please let me know.
On this issue, the new MEWpy version #22 will skip from simplifying solutions that result in errors. Please do not set the simplify flag to False for such a result. Otherwise, MEWpy will perform no simplification.
I ran the example of OptRAM in the documentation (https://mewpy.readthedocs.io/en/latest/problems.html) and the examples in the code (the two codes are slightly different), both runs resulted in errors, what is the reason?![20220107095304](https://user-images.githubusercontent.com/3759962/148479335-352ad27e-196d-4741-8a19-1c5d9c1a7fce.png)