Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
assignment.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
14syntax = "proto3";
15
16package operations_research;
17
18// Storage for IntVars.
19message IntVarAssignment {
20 string var_id = 1;
21 int64 min = 2;
22 int64 max = 3;
23 bool active = 4;
24}
25
26// Storage for IntervalVars.
27message IntervalVarAssignment {
28 string var_id = 1;
29 int64 start_min = 2;
30 int64 start_max = 3;
31 int64 duration_min = 4;
32 int64 duration_max = 5;
33 int64 end_min = 6;
34 int64 end_max = 7;
35 int64 performed_min = 8;
36 int64 performed_max = 9;
37 bool active = 10;
38}
39
40// Storage for SequenceVars.
41message SequenceVarAssignment {
42 string var_id = 1;
43 repeated int32 forward_sequence = 2;
44 repeated int32 backward_sequence = 3;
45 repeated int32 unperformed = 4;
46 bool active = 5;
47}
48
49// This message indicates how the assignment was produced.
50message WorkerInfo {
51 int32 worker_id = 1;
52 string bns = 2;
53}
54
55// Global container for all assignment variables and objective
56message AssignmentProto {
57 repeated IntVarAssignment int_var_assignment = 1;
58 repeated IntervalVarAssignment interval_var_assignment = 2;
59 repeated SequenceVarAssignment sequence_var_assignment = 6;
60 repeated IntVarAssignment objective = 3;
61 WorkerInfo worker_info = 4;
62 bool is_valid = 5;
63}