Files
ortools-clone/constraint_solver/assignment.proto
lperron@google.com 98bbbfd36b update licenses
2011-04-11 15:00:18 +00:00

59 lines
1.7 KiB
Protocol Buffer

// Copyright 2010-2011 Google
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
syntax = "proto2";
package operations_research;
// Storage for IntVars
message IntVarAssignmentProto {
required string var_id = 1;
required int64 min = 2;
required int64 max = 3;
required bool active = 4;
}
// Storage for IntervalVars
message IntervalVarAssignmentProto {
required string var_id = 1;
required int64 start_min = 2;
required int64 start_max = 3;
required int64 duration_min = 4;
required int64 duration_max = 5;
required int64 end_min = 6;
required int64 end_max = 7;
required int64 performed_min = 8;
required int64 performed_max = 9;
required bool active = 10;
}
// This optional message indicates how the assignment was produced.
message WorkerInfo {
optional int32 worker_id = 1;
optional string bns = 2;
}
message NeighborsInfo {
repeated WorkerInfo neighbor = 1;
}
// Global container for all assignment variables and objective
message AssignmentProto {
repeated IntVarAssignmentProto int_var_assignment = 1;
repeated IntervalVarAssignmentProto interval_var_assignment = 2;
optional IntVarAssignmentProto objective = 3;
optional WorkerInfo worker_info = 4;
optional bool is_valid = 5 [default = true];
}