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

Detailed Description

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

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, *, bool validate=True)

Variables

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

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 1010 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 1002 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 1021 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 162 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 99 of file result.py.

◆ parse_solve_result()

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

Definition at line 1033 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 201 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 343 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 31 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 28 of file result.py.