Beispiel #1
0
 def __init__(self):
     MapContainer.__init__(self)
     self.declare('name')
     self.declare('status', value=SolverStatus.ok)
     # Semantics: the integer return code from the shell in which the solver
     # is launched.
     self.declare('return_code')
     self.declare('message')
     self.declare('user_time', type=ScalarType.time)
     self.declare('deterministic_time', type=ScalarType.float)
     self.declare('system_time', type=ScalarType.time)
     self.declare('wallclock_time', type=ScalarType.time)
     # Semantics: The specific condition that caused the solver to
     # terminate.
     self.declare('termination_condition',
                  value=TerminationCondition.unknown)
     # Semantics: A string printed by the solver that summarizes the
     # termination status.
     self.declare('termination_message')
     self.declare('statistics', value=SolverStatistics(), active=False)
     self.declare('warm_start_objective_value', type=ScalarType.float)
     # Semantics: The total time spent processing the root node.
     self.declare('root_node_processing_time', type=ScalarType.time)
     # Semantics: The total time spent processing the MIP search tree.
     self.declare('tree_processing_time', type=ScalarType.time)
     # Semantics: The number of feasible solutions found.
     self.declare('n_solutions_found', type=ScalarType.int)
     # Semantics: If mip start was attempted but failed to provide a feasible solution.
     self.declare('mip_start_failed', type=bool)
Beispiel #2
0
 def __init__(self):
     MapContainer.__init__(self)
     self._sections = []
     self._descriptions = {}
     self.add('problem',
              ListContainer(pyomo.opt.results.problem.ProblemInformation),
              False, "Problem Information")
     self.add('solver',
              ListContainer(pyomo.opt.results.solver.SolverInformation),
              False, "Solver Information")
     self.add('solution', pyomo.opt.results.solution.SolutionSet(), False,
              "Solution Information")
Beispiel #3
0
    def __init__(self):
        MapContainer.__init__(self)

        self.declare('gap')
        self.declare('status', value=SolutionStatus.unknown)
        self.declare('message')

        self.declare('problem', value={})
        self.declare('objective', value={})
        self.declare('variable', value={})
        self.declare('constraint', value={})

        self._option = default_print_options
Beispiel #4
0
 def __init__(self):
     MapContainer.__init__(self)
     self.declare('name')
     self.declare('lower_bound', value=float('-inf'))
     self.declare('upper_bound', value=float('inf'))
     self.declare('number_of_objectives', value=1, required=True)
     self.declare('number_of_constraints', value=0)
     self.declare('number_of_variables', value=0)
     self.declare('number_of_binary_variables')
     self.declare('number_of_integer_variables')
     self.declare('number_of_continuous_variables')
     self.declare('number_of_nonzeros')
     self.declare('sense', value=ProblemSense.unknown, required=True)
Beispiel #5
0
 def __init__(self):
     MapContainer.__init__(self)
     self._sections = []
     self._descriptions = {}
     self.add('problem',
              ListContainer(pyomo.opt.results.problem.ProblemInformation),
              False,
              "Problem Information")
     self.add('solver',
              ListContainer(pyomo.opt.results.solver.SolverInformation),
              False,
              "Solver Information")
     self.add('solution',
              pyomo.opt.results.solution.SolutionSet(),
              False,
              "Solution Information")
Beispiel #6
0
 def __init__(self):
     MapContainer.__init__(self)
     self.declare('name')
     self.declare('status', value=SolverStatus.ok)
     # Semantics: the integer return code from the shell in which the solver
     # is launched.
     self.declare('return_code')
     self.declare('message')
     self.declare('user_time', type=ScalarType.time)
     self.declare('system_time', type=ScalarType.time)
     self.declare('wallclock_time', type=ScalarType.time)
     # Semantics: The specific condition that caused the solver to
     # terminate.
     self.declare('termination_condition',
                  value=TerminationCondition.unknown)
     # Semantics: A string printed by the solver that summarizes the
     # termination status.
     self.declare('termination_message')
     self.declare('statistics', value=SolverStatistics(), active=False)
Beispiel #7
0
 def __init__(self):
     MapContainer.__init__(self)
     self.declare('name')
     self.declare('status', value=SolverStatus.ok)
     # Semantics: the integer return code from the shell in which the solver
     # is launched.
     self.declare('return_code')
     self.declare('message')
     self.declare('user_time', type=ScalarType.time)
     self.declare('system_time', type=ScalarType.time)
     self.declare('wallclock_time', type=ScalarType.time)
     # Semantics: The specific condition that caused the solver to
     # terminate.
     self.declare('termination_condition',
                  value=TerminationCondition.unknown)
     # Semantics: A string printed by the solver that summarizes the
     # termination status.
     self.declare('termination_message')
     self.declare('statistics', value=SolverStatistics(), active=False)
Beispiel #8
0
 def __init__(self):
     MapContainer.__init__(self)
     self.declare("branch_and_bound",
                  value=BranchAndBoundStats(),
                  active=False)
     self.declare("black_box", value=BlackBoxStats(), active=False)
Beispiel #9
0
 def __init__(self):
     MapContainer.__init__(self)
     self.declare('number of function evaluations')
     self.declare('number of gradient evaluations')
     self.declare('number of iterations')
Beispiel #10
0
 def __init__(self):
     MapContainer.__init__(self)
     self.declare('number of bounded subproblems')
     self.declare('number of created subproblems')
Beispiel #11
0
 def __init__(self):
     MapContainer.__init__(self)
     self.declare("branch_and_bound", value=BranchAndBoundStats(),
                  active=False)
     self.declare("black_box", value=BlackBoxStats(), active=False)
Beispiel #12
0
 def __init__(self):
     MapContainer.__init__(self)
     self.declare('number of function evaluations')
     self.declare('number of gradient evaluations')
     self.declare('number of iterations')
Beispiel #13
0
 def __init__(self):
     MapContainer.__init__(self)
     self.declare('number of bounded subproblems')
     self.declare('number of created subproblems')