Google OR-Tools v9.15
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-2025 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// This file contains a protocol buffer definition for search limits.
15
16syntax = "proto3";
17
18option java_package = "com.google.ortools.constraintsolver";
19option java_multiple_files = true;
20// We set the outer classname to something other than 'SearchLimit', which is
21// in conflict with the SWIG-generated class in the same directory (see
22// java/constraint_solver.swig).
23option java_outer_classname = "SearchLimitProtobuf";
24option csharp_namespace = "Google.OrTools.ConstraintSolver";
25
26package operations_research;
27
28// A search limit
29// The default values for int64 fields is the maxima value, i.e., 2^63-1
30message RegularLimitParameters {
31 // TODO(user): Specify the time units or switch to google.Duration proto.
32 int64 time = 1;
33 int64 branches = 2;
34 int64 failures = 3;
35 int64 solutions = 4;
36 bool smart_time_check = 5;
37 bool cumulative = 6;
38}