B _@s^dddddgZddlmZedZGdddeZed ZGd ddeZGd ddeZd S) AbstractProblemWriter WriterFactoryProblemConfigFactoryBaseProblemConfigBranchDirection)Factoryzproblem configuration objectc@seZdZdZddZdS)rz8Base class for plugins generating problem configurationscCsdS)N)selfrr:/tmp/pip-unpacked-wheel-d4p3hk07/pyomo/opt/base/problem.py config_blockszBaseProblemConfig.config_blockN)__name__ __module__ __qualname____doc__r rrrr rszproblem writerc@s0eZdZdZddZddZddZdd Zd S) rz0Base class that can write optimization problems.cCs ||_dS)N)format)r Zproblem_formatrrr __init__&szAbstractProblemWriter.__init__cKstdt|jdS)Nz/Method __call__ undefined in writer for format ) TypeErrorstrr)r modelfilenameZsolver_capabilitykwdsrrr __call__)szAbstractProblemWriter.__call__cCs|S)Nr)r rrr __enter__/szAbstractProblemWriter.__enter__cCsdS)Nr)r tv tracebackrrr __exit__2szAbstractProblemWriter.__exit__N)r r rrrrrrrrrr r#s c@s&eZdZdZdZdZdZeeehZdS)rz\ Allowed values for MIP variable branching directions in the `direction` Suffix of a model. rN)r r rrdefaultZdownZupALLrrrr r6s N) __all__Z pyomo.commonrrobjectrrrrrrrr  s