@classmethod<EOL><INDENT>def load_model(cls, database, reaction_iter=None, exchange=None,<EOL>limits=None, v_max=None):<DEDENT>
model_args = {}<EOL>if v_max is not None:<EOL><INDENT>model_args['<STR_LIT>'] = v_max<EOL><DEDENT>model = cls(database, **model_args)<EOL>if reaction_iter is None:<EOL><INDENT>reaction_iter = iter(database.reactions)<EOL><DEDENT>for reaction_id in reaction_iter:<EOL><INDENT>model.add_reaction(reaction_id)<EOL><DEDENT>if limits is not None:<EOL><INDENT>for reaction_id, lower, upper in limits:<EOL><INDENT>if lower is not None:<EOL><INDENT>model.limits[reaction_id].lower = lower<EOL><DEDENT>if upper is not None:<EOL><INDENT>model.limits[reaction_id].upper = upper<EOL><DEDENT><DEDENT><DEDENT>if exchange is not None:<EOL><INDENT>for compound, reaction_id, lower, upper in exchange:<EOL><INDENT>if reaction_id is None:<EOL><INDENT>reaction_id = create_exchange_id(<EOL>model.database.reactions, compound)<EOL><DEDENT>model.database.set_reaction(<EOL>reaction_id, Reaction(Direction.Both, {compound: -<NUM_LIT:1>}))<EOL>model.add_reaction(reaction_id)<EOL>if lower is not None:<EOL><INDENT>model.limits[reaction_id].lower = lower<EOL><DEDENT>if upper is not None:<EOL><INDENT>model.limits[reaction_id].upper = upper<EOL><DEDENT><DEDENT><DEDENT>return model<EOL>
Get model from reaction name iterator.

        The model will contain all reactions of the iterator.