Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
com.google.ortools.sat.SymmetryProto Class Reference
Inheritance diagram for com.google.ortools.sat.SymmetryProto:
com.google.ortools.sat.SymmetryProtoOrBuilder

Classes

class  Builder
 

Public Member Functions

java.util.List< com.google.ortools.sat.SparsePermutationProtogetPermutationsList ()
 
java.util.List<? extends com.google.ortools.sat.SparsePermutationProtoOrBuildergetPermutationsOrBuilderList ()
 
int getPermutationsCount ()
 
com.google.ortools.sat.SparsePermutationProto getPermutations (int index)
 
com.google.ortools.sat.SparsePermutationProtoOrBuilder getPermutationsOrBuilder (int index)
 
java.util.List< com.google.ortools.sat.DenseMatrixProtogetOrbitopesList ()
 
java.util.List<? extends com.google.ortools.sat.DenseMatrixProtoOrBuildergetOrbitopesOrBuilderList ()
 
int getOrbitopesCount ()
 
com.google.ortools.sat.DenseMatrixProto getOrbitopes (int index)
 
com.google.ortools.sat.DenseMatrixProtoOrBuilder getOrbitopesOrBuilder (int index)
 
final boolean isInitialized ()
 
void writeTo (com.google.protobuf.CodedOutputStream output) throws java.io.IOException
 
int getSerializedSize ()
 
boolean equals (final java.lang.Object obj)
 
int hashCode ()
 
Builder newBuilderForType ()
 
Builder toBuilder ()
 
com.google.protobuf.Parser< SymmetryProtogetParserForType ()
 
com.google.ortools.sat.SymmetryProto getDefaultInstanceForType ()
 
- Public Member Functions inherited from com.google.ortools.sat.SymmetryProtoOrBuilder

Static Public Member Functions

static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()
 
static com.google.ortools.sat.SymmetryProto parseFrom (java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.sat.SymmetryProto parseFrom (java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.sat.SymmetryProto parseFrom (com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.sat.SymmetryProto parseFrom (com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.sat.SymmetryProto parseFrom (byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.sat.SymmetryProto parseFrom (byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.sat.SymmetryProto parseFrom (java.io.InputStream input) throws java.io.IOException
 
static com.google.ortools.sat.SymmetryProto parseFrom (java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
 
static com.google.ortools.sat.SymmetryProto parseDelimitedFrom (java.io.InputStream input) throws java.io.IOException
 
static com.google.ortools.sat.SymmetryProto parseDelimitedFrom (java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
 
static com.google.ortools.sat.SymmetryProto parseFrom (com.google.protobuf.CodedInputStream input) throws java.io.IOException
 
static com.google.ortools.sat.SymmetryProto parseFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
 
static Builder newBuilder ()
 
static Builder newBuilder (com.google.ortools.sat.SymmetryProto prototype)
 
static com.google.ortools.sat.SymmetryProto getDefaultInstance ()
 
static com.google.protobuf.Parser< SymmetryProtoparser ()
 

Static Public Attributes

static final int PERMUTATIONS_FIELD_NUMBER = 1
 
static final int ORBITOPES_FIELD_NUMBER = 2
 

Protected Member Functions

com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable ()
 
Builder newBuilderForType (com.google.protobuf.GeneratedMessage.BuilderParent parent)
 

Detailed Description

EXPERIMENTAL. For now, this is meant to be used by the solver and not filled
by clients.

Hold symmetry information about the set of feasible solutions. If we permute
the variable values of any feasible solution using one of the permutation
described here, we should always get another feasible solution.

We usually also enforce that the objective of the new solution is the same.

The group of permutations encoded here is usually computed from the encoding
of the model, so it is not meant to be a complete representation of the
feasible solution symmetries, just a valid subgroup.

Protobuf type operations_research.sat.SymmetryProto

Definition at line 25 of file SymmetryProto.java.

Member Function Documentation

◆ equals()

boolean com.google.ortools.sat.SymmetryProto.equals ( final java.lang.Object obj)

Definition at line 276 of file SymmetryProto.java.

◆ getDefaultInstance()

static com.google.ortools.sat.SymmetryProto com.google.ortools.sat.SymmetryProto.getDefaultInstance ( )
static

Definition at line 1471 of file SymmetryProto.java.

◆ getDefaultInstanceForType()

com.google.ortools.sat.SymmetryProto com.google.ortools.sat.SymmetryProto.getDefaultInstanceForType ( )

Definition at line 1507 of file SymmetryProto.java.

◆ getDescriptor()

static final com.google.protobuf.Descriptors.Descriptor com.google.ortools.sat.SymmetryProto.getDescriptor ( )
static

Definition at line 49 of file SymmetryProto.java.

◆ getOrbitopes()

com.google.ortools.sat.DenseMatrixProto com.google.ortools.sat.SymmetryProto.getOrbitopes ( int index)
An orbitope is a special symmetry structure of the solution space. If the
variable indices are arranged in a matrix (with no duplicates), then any
permutation of the columns will be a valid permutation of the feasible
space.

This arise quite often. The typical example is a graph coloring problem
where for each node i, you have j booleans to indicate its color. If the
variables color_of_i_is_j are arranged in a matrix[i][j], then any columns
permutations leave the problem invariant.

repeated .operations_research.sat.DenseMatrixProto orbitopes = 2;

Implements com.google.ortools.sat.SymmetryProtoOrBuilder.

Definition at line 209 of file SymmetryProto.java.

◆ getOrbitopesCount()

int com.google.ortools.sat.SymmetryProto.getOrbitopesCount ( )
An orbitope is a special symmetry structure of the solution space. If the
variable indices are arranged in a matrix (with no duplicates), then any
permutation of the columns will be a valid permutation of the feasible
space.

This arise quite often. The typical example is a graph coloring problem
where for each node i, you have j booleans to indicate its color. If the
variables color_of_i_is_j are arranged in a matrix[i][j], then any columns
permutations leave the problem invariant.

repeated .operations_research.sat.DenseMatrixProto orbitopes = 2;

Implements com.google.ortools.sat.SymmetryProtoOrBuilder.

Definition at line 190 of file SymmetryProto.java.

◆ getOrbitopesList()

java.util.List< com.google.ortools.sat.DenseMatrixProto > com.google.ortools.sat.SymmetryProto.getOrbitopesList ( )
An orbitope is a special symmetry structure of the solution space. If the
variable indices are arranged in a matrix (with no duplicates), then any
permutation of the columns will be a valid permutation of the feasible
space.

This arise quite often. The typical example is a graph coloring problem
where for each node i, you have j booleans to indicate its color. If the
variables color_of_i_is_j are arranged in a matrix[i][j], then any columns
permutations leave the problem invariant.

repeated .operations_research.sat.DenseMatrixProto orbitopes = 2;

Implements com.google.ortools.sat.SymmetryProtoOrBuilder.

Definition at line 151 of file SymmetryProto.java.

◆ getOrbitopesOrBuilder()

com.google.ortools.sat.DenseMatrixProtoOrBuilder com.google.ortools.sat.SymmetryProto.getOrbitopesOrBuilder ( int index)
An orbitope is a special symmetry structure of the solution space. If the
variable indices are arranged in a matrix (with no duplicates), then any
permutation of the columns will be a valid permutation of the feasible
space.

This arise quite often. The typical example is a graph coloring problem
where for each node i, you have j booleans to indicate its color. If the
variables color_of_i_is_j are arranged in a matrix[i][j], then any columns
permutations leave the problem invariant.

repeated .operations_research.sat.DenseMatrixProto orbitopes = 2;

Implements com.google.ortools.sat.SymmetryProtoOrBuilder.

Definition at line 228 of file SymmetryProto.java.

◆ getOrbitopesOrBuilderList()

java.util.List<? extends com.google.ortools.sat.DenseMatrixProtoOrBuilder > com.google.ortools.sat.SymmetryProto.getOrbitopesOrBuilderList ( )
An orbitope is a special symmetry structure of the solution space. If the
variable indices are arranged in a matrix (with no duplicates), then any
permutation of the columns will be a valid permutation of the feasible
space.

This arise quite often. The typical example is a graph coloring problem
where for each node i, you have j booleans to indicate its color. If the
variables color_of_i_is_j are arranged in a matrix[i][j], then any columns
permutations leave the problem invariant.

repeated .operations_research.sat.DenseMatrixProto orbitopes = 2;

Implements com.google.ortools.sat.SymmetryProtoOrBuilder.

Definition at line 171 of file SymmetryProto.java.

◆ getParserForType()

com.google.protobuf.Parser< SymmetryProto > com.google.ortools.sat.SymmetryProto.getParserForType ( )

Definition at line 1502 of file SymmetryProto.java.

◆ getPermutations()

com.google.ortools.sat.SparsePermutationProto com.google.ortools.sat.SymmetryProto.getPermutations ( int index)
A list of variable indices permutations that leave the feasible space of
solution invariant. Usually, we only encode a set of generators of the
group.

repeated .operations_research.sat.SparsePermutationProto permutations = 1;

Implements com.google.ortools.sat.SymmetryProtoOrBuilder.

Definition at line 114 of file SymmetryProto.java.

◆ getPermutationsCount()

int com.google.ortools.sat.SymmetryProto.getPermutationsCount ( )
A list of variable indices permutations that leave the feasible space of
solution invariant. Usually, we only encode a set of generators of the
group.

repeated .operations_research.sat.SparsePermutationProto permutations = 1;

Implements com.google.ortools.sat.SymmetryProtoOrBuilder.

Definition at line 101 of file SymmetryProto.java.

◆ getPermutationsList()

java.util.List< com.google.ortools.sat.SparsePermutationProto > com.google.ortools.sat.SymmetryProto.getPermutationsList ( )
A list of variable indices permutations that leave the feasible space of
solution invariant. Usually, we only encode a set of generators of the
group.

repeated .operations_research.sat.SparsePermutationProto permutations = 1;

Implements com.google.ortools.sat.SymmetryProtoOrBuilder.

Definition at line 74 of file SymmetryProto.java.

◆ getPermutationsOrBuilder()

com.google.ortools.sat.SparsePermutationProtoOrBuilder com.google.ortools.sat.SymmetryProto.getPermutationsOrBuilder ( int index)
A list of variable indices permutations that leave the feasible space of
solution invariant. Usually, we only encode a set of generators of the
group.

repeated .operations_research.sat.SparsePermutationProto permutations = 1;

Implements com.google.ortools.sat.SymmetryProtoOrBuilder.

Definition at line 127 of file SymmetryProto.java.

◆ getPermutationsOrBuilderList()

java.util.List<? extends com.google.ortools.sat.SparsePermutationProtoOrBuilder > com.google.ortools.sat.SymmetryProto.getPermutationsOrBuilderList ( )
A list of variable indices permutations that leave the feasible space of
solution invariant. Usually, we only encode a set of generators of the
group.

repeated .operations_research.sat.SparsePermutationProto permutations = 1;

Implements com.google.ortools.sat.SymmetryProtoOrBuilder.

Definition at line 88 of file SymmetryProto.java.

◆ getSerializedSize()

int com.google.ortools.sat.SymmetryProto.getSerializedSize ( )

Definition at line 257 of file SymmetryProto.java.

◆ hashCode()

int com.google.ortools.sat.SymmetryProto.hashCode ( )

Definition at line 294 of file SymmetryProto.java.

◆ internalGetFieldAccessorTable()

com.google.protobuf.GeneratedMessage.FieldAccessorTable com.google.ortools.sat.SymmetryProto.internalGetFieldAccessorTable ( )
protected

Definition at line 55 of file SymmetryProto.java.

◆ isInitialized()

final boolean com.google.ortools.sat.SymmetryProto.isInitialized ( )

Definition at line 235 of file SymmetryProto.java.

◆ newBuilder() [1/2]

static Builder com.google.ortools.sat.SymmetryProto.newBuilder ( )
static

Definition at line 387 of file SymmetryProto.java.

◆ newBuilder() [2/2]

static Builder com.google.ortools.sat.SymmetryProto.newBuilder ( com.google.ortools.sat.SymmetryProto prototype)
static

Definition at line 390 of file SymmetryProto.java.

◆ newBuilderForType() [1/2]

Builder com.google.ortools.sat.SymmetryProto.newBuilderForType ( )

Definition at line 386 of file SymmetryProto.java.

◆ newBuilderForType() [2/2]

Builder com.google.ortools.sat.SymmetryProto.newBuilderForType ( com.google.protobuf.GeneratedMessage.BuilderParent parent)
protected

Definition at line 400 of file SymmetryProto.java.

◆ parseDelimitedFrom() [1/2]

static com.google.ortools.sat.SymmetryProto com.google.ortools.sat.SymmetryProto.parseDelimitedFrom ( java.io.InputStream input) throws java.io.IOException
static

Definition at line 358 of file SymmetryProto.java.

◆ parseDelimitedFrom() [2/2]

static com.google.ortools.sat.SymmetryProto com.google.ortools.sat.SymmetryProto.parseDelimitedFrom ( java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry ) throws java.io.IOException
static

Definition at line 364 of file SymmetryProto.java.

◆ parseFrom() [1/10]

static com.google.ortools.sat.SymmetryProto com.google.ortools.sat.SymmetryProto.parseFrom ( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 335 of file SymmetryProto.java.

◆ parseFrom() [2/10]

static com.google.ortools.sat.SymmetryProto com.google.ortools.sat.SymmetryProto.parseFrom ( byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry ) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 339 of file SymmetryProto.java.

◆ parseFrom() [3/10]

static com.google.ortools.sat.SymmetryProto com.google.ortools.sat.SymmetryProto.parseFrom ( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 324 of file SymmetryProto.java.

◆ parseFrom() [4/10]

static com.google.ortools.sat.SymmetryProto com.google.ortools.sat.SymmetryProto.parseFrom ( com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry ) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 329 of file SymmetryProto.java.

◆ parseFrom() [5/10]

static com.google.ortools.sat.SymmetryProto com.google.ortools.sat.SymmetryProto.parseFrom ( com.google.protobuf.CodedInputStream input) throws java.io.IOException
static

Definition at line 371 of file SymmetryProto.java.

◆ parseFrom() [6/10]

static com.google.ortools.sat.SymmetryProto com.google.ortools.sat.SymmetryProto.parseFrom ( com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry ) throws java.io.IOException
static

Definition at line 377 of file SymmetryProto.java.

◆ parseFrom() [7/10]

static com.google.ortools.sat.SymmetryProto com.google.ortools.sat.SymmetryProto.parseFrom ( java.io.InputStream input) throws java.io.IOException
static

Definition at line 345 of file SymmetryProto.java.

◆ parseFrom() [8/10]

static com.google.ortools.sat.SymmetryProto com.google.ortools.sat.SymmetryProto.parseFrom ( java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry ) throws java.io.IOException
static

Definition at line 350 of file SymmetryProto.java.

◆ parseFrom() [9/10]

static com.google.ortools.sat.SymmetryProto com.google.ortools.sat.SymmetryProto.parseFrom ( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 313 of file SymmetryProto.java.

◆ parseFrom() [10/10]

static com.google.ortools.sat.SymmetryProto com.google.ortools.sat.SymmetryProto.parseFrom ( java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry ) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 318 of file SymmetryProto.java.

◆ parser()

static com.google.protobuf.Parser< SymmetryProto > com.google.ortools.sat.SymmetryProto.parser ( )
static

Definition at line 1497 of file SymmetryProto.java.

◆ toBuilder()

Builder com.google.ortools.sat.SymmetryProto.toBuilder ( )

Definition at line 394 of file SymmetryProto.java.

◆ writeTo()

void com.google.ortools.sat.SymmetryProto.writeTo ( com.google.protobuf.CodedOutputStream output) throws java.io.IOException

Definition at line 245 of file SymmetryProto.java.

Member Data Documentation

◆ ORBITOPES_FIELD_NUMBER

final int com.google.ortools.sat.SymmetryProto.ORBITOPES_FIELD_NUMBER = 2
static

Definition at line 132 of file SymmetryProto.java.

◆ PERMUTATIONS_FIELD_NUMBER

final int com.google.ortools.sat.SymmetryProto.PERMUTATIONS_FIELD_NUMBER = 1
static

Definition at line 61 of file SymmetryProto.java.


The documentation for this class was generated from the following file: