Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
search_limit.proto
Go to the documentation of this file.
1// Copyright 2010-2024 Google LLC
2// Licensed under the Apache License, Version 2.0 (the "License");
3// you may not use this file except in compliance with the License.
4// You may obtain a copy of the License at
5//
6// http://www.apache.org/licenses/LICENSE-2.0
7//
8// Unless required by applicable law or agreed to in writing, software
9// distributed under the License is distributed on an "AS IS" BASIS,
10// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11// See the License for the specific language governing permissions and
12// limitations under the License.
13
14//
15// This file contains a protocol buffer definition for search limits.
16
17syntax = "proto3";
18
19option java_package = "com.google.ortools.constraintsolver";
20option java_multiple_files = true;
21// We set the outer classname to something other than 'SearchLimit', which is
22// in conflict with the SWIG-generated class in the same directory (see
23// java/constraint_solver.i).
24option java_outer_classname = "SearchLimitProtobuf";
25option csharp_namespace = "Google.OrTools.ConstraintSolver";
26
27package operations_research;
28
29// A search limit
30// The default values for int64 fields is the maxima value, i.e., 2^63-1
31message RegularLimitParameters {
32 // TODO(user): Specify the time units or switch to google.Duration proto.
33 int64 time = 1;
34 int64 branches = 2;
35 int64 failures = 3;
36 int64 solutions = 4;
37 bool smart_time_check = 5;
38 bool cumulative = 6;
39}