Exemple #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)
Exemple #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")
Exemple #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
Exemple #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)
Exemple #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")
Exemple #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)
Exemple #7
0
 def load(self, repn):
     # delete key from dictionary, call base class load, handle variable loading.
     if "Variable" in repn:
         tmp_ = repn["Variable"]
         del repn["Variable"]
         self.variable = tmp_
     if "Constraint" in repn:
         tmp_ = repn["Constraint"]
         del repn["Constraint"]
         self.constraint = tmp_
     if "Problem" in repn:
         tmp_ = repn["Problem"]
         del repn["Problem"]
         self.problem = tmp_
     if "Objective" in repn:
         tmp_ = repn["Objective"]
         del repn["Objective"]
         self.objective = tmp_
     MapContainer.load(self, repn)
Exemple #8
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)
Exemple #9
0
 def __init__(self):
     MapContainer.__init__(self)
     self.declare("branch_and_bound",
                  value=BranchAndBoundStats(),
                  active=False)
     self.declare("black_box", value=BlackBoxStats(), active=False)
Exemple #10
0
 def __init__(self):
     MapContainer.__init__(self)
     self.declare('number of function evaluations')
     self.declare('number of gradient evaluations')
     self.declare('number of iterations')
Exemple #11
0
 def __init__(self):
     MapContainer.__init__(self)
     self.declare('number of bounded subproblems')
     self.declare('number of created subproblems')
Exemple #12
0
 def __init__(self):
     MapContainer.__init__(self)
     self.declare("branch_and_bound", value=BranchAndBoundStats(),
                  active=False)
     self.declare("black_box", value=BlackBoxStats(), active=False)
Exemple #13
0
 def __init__(self):
     MapContainer.__init__(self)
     self.declare('number of function evaluations')
     self.declare('number of gradient evaluations')
     self.declare('number of iterations')
Exemple #14
0
 def __init__(self):
     MapContainer.__init__(self)
     self.declare('number of bounded subproblems')
     self.declare('number of created subproblems')