Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
Classes | |
class | ModelSolveParameters |
class | SolutionHint |
Functions | |
SolutionHint | parse_solution_hint (model_parameters_pb2.SolutionHintProto hint_proto, model.Model mod) |
Model specific solver configuration (e.g. starting basis).
SolutionHint ortools.math_opt.python.model_parameters.parse_solution_hint | ( | model_parameters_pb2.SolutionHintProto | hint_proto, |
model.Model | mod ) |
Returns an equivalent SolutionHint to `hint_proto`. Args: hint_proto: The solution, as encoded by the ids of the variables and constraints. mod: A MathOpt Model that must contain variables and linear constraints with the ids from hint_proto. Returns: A SolutionHint equivalent. Raises: ValueError if hint_proto is invalid or refers to variables or constraints not in mod.
Definition at line 73 of file model_parameters.py.