B
@`! @ s d Z ddddgZddlZddlZddlZddlmZ ddlmZm Z G d d de
ejZG d
d de
ZG dd deZG dd deZdS )
zx
Utilities to support the definition of optimization applications that
can be optimized with the Acro COLIN optimizers.
OptProblemRealOptProblemMixedIntOptProblem
response_enum N)BlackBoxOptProblemIOFactory)MixedIntVarsRealVarsc @ s, e Zd ZdZdZdZdZdZdZdd Z d S )
r
FunctionValueFunctionValuesGradientHessianNonlinearConstraintValuesJacobianc C s | j S )N)value)self r >/tmp/pip-unpacked-wheel-bi3529v6/pyomo/opt/blackbox/problem.py__str__' s zresponse_enum.__str__N)
__name__
__module____qualname__r r
r r r
r r r r r r r s c @ sr e Zd ZdZdd ZdddZdd Zd d
Zdd Zd
d Z dd Z
dd Zdd Zdd Z
dd Zdd ZdS )r zn
A class that defines an application that can be optimized
by a COLIN optimizer via system calls.
c C s t jg| _dS )z
The constructor. Derived classes should define the response types.
By default, only function evaluations are supported in an OptProblem
instance.
N)r r response_types)r r r r __init__1 s zOptProblem.__init__colinc C s t |dk r&t|d d td ttt| j| _t |}|dkrXt
dt| tj
|d sxtd|d | |d | }||d |\}}| | | ||}||d | dS ) ze
The main routine for parsing the command-line and executing
the evaluation.
r z