B _v@sddlZddlZddlZddlZddlZddlmZddlTddl Tddl Tddl m Z e dZejdddGd d d e ZdS) N) SolverFactory)*)ASLz pyomo.solverspathzNonlinear MCP solver)docc@s(eZdZdZddZddZddZdS) PATHAMPLz$An interface to the PATH MCP solver.cKs4d|d<tj|f|d|_tj|_d|j_dS)NrtypeFT)r__init__Z _metasolverpyutilibmiscOptionsZ _capabilitiesZlinear)selfkwdsr?/tmp/pip-unpacked-wheel-d4p3hk07/pyomo/mpec/plugins/pathampl.pyr s  zPATHAMPL.__init__cCs2tjd}|s*td|jd|_dS|S)NpathamplzKCould not locate the 'pathampl' executable, which is required for solver %sF)ZpyomocommonZ Executableloggerwarningnameenabler)r executablerrr_default_executable,s  zPATHAMPL._default_executablecCsd|j_t|||S)Nr)optionsZsolverrcreate_command_line)r rZ problem_filesrrrr5szPATHAMPL.create_command_lineN)__name__ __module__ __qualname____doc__r rrrrrrrs  r)loggingossixZpyutilib.servicesr Z pyutilib.miscZpyomo.opt.base.solversrZpyomo.opt.baseZpyomo.opt.resultsZpyomo.opt.solverZ!pyomo.solvers.plugins.solvers.ASLr getLoggerrregisterrrrrr s