BioSystemsUM / MEWpy

Metabolic Engineering Workbench
https://mewpy.readthedocs.io
GNU General Public License v3.0
37 stars 12 forks source link

error run OptRAM #21

Closed maozhitao closed 2 years ago

maozhitao commented 2 years ago

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

vmspereira commented 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.

vmspereira commented 2 years ago

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.