Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
ortools.math_opt.python.result Namespace Reference

Classes

class  FeasibilityStatus
 
class  Limit
 
class  ObjectiveBounds
 
class  ProblemStatus
 
class  SolveResult
 
class  SolveStats
 
class  Termination
 
class  TerminationReason
 

Functions

ProblemStatus parse_problem_status (result_pb2.ProblemStatusProto proto)
 
ObjectiveBounds parse_objective_bounds (result_pb2.ObjectiveBoundsProto proto)
 
SolveStats parse_solve_stats (result_pb2.SolveStatsProto proto)
 
Termination parse_termination (result_pb2.TerminationProto termination_proto)
 
result_pb2.ProblemStatusProto _get_problem_status (result_pb2.SolveResultProto result_proto)
 
result_pb2.ObjectiveBoundsProto _get_objective_bounds (result_pb2.SolveResultProto result_proto)
 
result_pb2.TerminationProto _upgrade_termination (result_pb2.SolveResultProto result_proto)
 
SolveResult parse_solve_result (result_pb2.SolveResultProto proto, model.Model mod)
 

Variables

tuple _NO_DUAL_SOLUTION_ERROR
 
str _NO_BASIS_ERROR = "Best solution does not have an associated basis."
 

Detailed Description

The output from solving a mathematical optimization problem from model.py.

Function Documentation

◆ _get_objective_bounds()

result_pb2.ObjectiveBoundsProto ortools.math_opt.python.result._get_objective_bounds ( result_pb2.SolveResultProto result_proto)
protected

Definition at line 942 of file result.py.

◆ _get_problem_status()

result_pb2.ProblemStatusProto ortools.math_opt.python.result._get_problem_status ( result_pb2.SolveResultProto result_proto)
protected

Definition at line 934 of file result.py.

◆ _upgrade_termination()

result_pb2.TerminationProto ortools.math_opt.python.result._upgrade_termination ( result_pb2.SolveResultProto result_proto)
protected

Definition at line 953 of file result.py.

◆ parse_objective_bounds()

ObjectiveBounds ortools.math_opt.python.result.parse_objective_bounds ( result_pb2.ObjectiveBoundsProto proto)
Returns an equivalent ObjectiveBounds from the input proto.

Definition at line 160 of file result.py.

◆ parse_problem_status()

ProblemStatus ortools.math_opt.python.result.parse_problem_status ( result_pb2.ProblemStatusProto proto)
Returns an equivalent ProblemStatus from the input proto.

Definition at line 97 of file result.py.

◆ parse_solve_result()

SolveResult ortools.math_opt.python.result.parse_solve_result ( result_pb2.SolveResultProto proto,
model.Model mod )
Returns a SolveResult equivalent to the input proto.

Definition at line 965 of file result.py.

◆ parse_solve_stats()

SolveStats ortools.math_opt.python.result.parse_solve_stats ( result_pb2.SolveStatsProto proto)
Returns an equivalent SolveStats from the input proto.

Definition at line 199 of file result.py.

◆ parse_termination()

Termination ortools.math_opt.python.result.parse_termination ( result_pb2.TerminationProto termination_proto)
Returns a Termination that is equivalent to termination_proto.

Definition at line 329 of file result.py.

Variable Documentation

◆ _NO_BASIS_ERROR

str ortools.math_opt.python.result._NO_BASIS_ERROR = "Best solution does not have an associated basis."
protected

Definition at line 29 of file result.py.

◆ _NO_DUAL_SOLUTION_ERROR

tuple ortools.math_opt.python.result._NO_DUAL_SOLUTION_ERROR
protected
Initial value:
1= (
2 "Best solution does not have an associated dual feasible solution."
3)

Definition at line 26 of file result.py.