Remove Optlang object from COBRApy model

9 views
Skip to first unread message

Nicholas Y

unread,
Nov 19, 2025, 1:35:42 PM (14 days ago) Nov 19
to COBRA Toolbox
Hi,

My name is Nick, and I have a question regarding the COBRApy Python package. 

I understand that COBRApy models contain an optlang object within them. I was wondering if it is possible to remove this optlang object from COBRApy models, or to create models without the optlang object. 

The reason for this is I would like to be able to represent a very large genome scale model in COBRApy, and I want to be able to pickle this model for fast save/reload. However, because COBRApy models contain optlang objects, I am running into issues loading the model from a pickle file. Is it possible to remove an optlang object from a COBRApy model and if so, how do I do it? Thanks!

Best regards,
Nick Yousefi
Reply all
Reply to author
Forward
0 new messages