Class ConstraintSolverParameters

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.ortools.constraintsolver.ConstraintSolverParameters
All Implemented Interfaces:
ConstraintSolverParametersOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class ConstraintSolverParameters extends com.google.protobuf.GeneratedMessage implements ConstraintSolverParametersOrBuilder
 Solver parameters.
 
Protobuf type operations_research.ConstraintSolverParameters
See Also:
  • Field Details

    • COMPRESS_TRAIL_FIELD_NUMBER

      public static final int COMPRESS_TRAIL_FIELD_NUMBER
      See Also:
    • TRAIL_BLOCK_SIZE_FIELD_NUMBER

      public static final int TRAIL_BLOCK_SIZE_FIELD_NUMBER
      See Also:
    • ARRAY_SPLIT_SIZE_FIELD_NUMBER

      public static final int ARRAY_SPLIT_SIZE_FIELD_NUMBER
      See Also:
    • STORE_NAMES_FIELD_NUMBER

      public static final int STORE_NAMES_FIELD_NUMBER
      See Also:
    • NAME_CAST_VARIABLES_FIELD_NUMBER

      public static final int NAME_CAST_VARIABLES_FIELD_NUMBER
      See Also:
    • NAME_ALL_VARIABLES_FIELD_NUMBER

      public static final int NAME_ALL_VARIABLES_FIELD_NUMBER
      See Also:
    • PROFILE_PROPAGATION_FIELD_NUMBER

      public static final int PROFILE_PROPAGATION_FIELD_NUMBER
      See Also:
    • PROFILE_FILE_FIELD_NUMBER

      public static final int PROFILE_FILE_FIELD_NUMBER
      See Also:
    • PROFILE_LOCAL_SEARCH_FIELD_NUMBER

      public static final int PROFILE_LOCAL_SEARCH_FIELD_NUMBER
      See Also:
    • TRACE_PROPAGATION_FIELD_NUMBER

      public static final int TRACE_PROPAGATION_FIELD_NUMBER
      See Also:
    • TRACE_SEARCH_FIELD_NUMBER

      public static final int TRACE_SEARCH_FIELD_NUMBER
      See Also:
    • DISABLE_SOLVE_FIELD_NUMBER

      public static final int DISABLE_SOLVE_FIELD_NUMBER
      See Also:
    • USE_SMALL_TABLE_FIELD_NUMBER

      public static final int USE_SMALL_TABLE_FIELD_NUMBER
      See Also:
    • USE_CUMULATIVE_EDGE_FINDER_FIELD_NUMBER

      public static final int USE_CUMULATIVE_EDGE_FINDER_FIELD_NUMBER
      See Also:
    • USE_CUMULATIVE_TIME_TABLE_FIELD_NUMBER

      public static final int USE_CUMULATIVE_TIME_TABLE_FIELD_NUMBER
      See Also:
    • USE_CUMULATIVE_TIME_TABLE_SYNC_FIELD_NUMBER

      public static final int USE_CUMULATIVE_TIME_TABLE_SYNC_FIELD_NUMBER
      See Also:
    • USE_SEQUENCE_HIGH_DEMAND_TASKS_FIELD_NUMBER

      public static final int USE_SEQUENCE_HIGH_DEMAND_TASKS_FIELD_NUMBER
      See Also:
    • USE_ALL_POSSIBLE_DISJUNCTIONS_FIELD_NUMBER

      public static final int USE_ALL_POSSIBLE_DISJUNCTIONS_FIELD_NUMBER
      See Also:
    • MAX_EDGE_FINDER_SIZE_FIELD_NUMBER

      public static final int MAX_EDGE_FINDER_SIZE_FIELD_NUMBER
      See Also:
    • DIFFN_USE_CUMULATIVE_FIELD_NUMBER

      public static final int DIFFN_USE_CUMULATIVE_FIELD_NUMBER
      See Also:
    • USE_ELEMENT_RMQ_FIELD_NUMBER

      public static final int USE_ELEMENT_RMQ_FIELD_NUMBER
      See Also:
    • SKIP_LOCALLY_OPTIMAL_PATHS_FIELD_NUMBER

      public static final int SKIP_LOCALLY_OPTIMAL_PATHS_FIELD_NUMBER
      See Also:
    • CHECK_SOLUTION_PERIOD_FIELD_NUMBER

      public static final int CHECK_SOLUTION_PERIOD_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getCompressTrailValue

      public int getCompressTrailValue()
       This parameter indicates if the solver should compress the trail
       during the search. No compression means that the solver will be faster,
       but will use more memory.
       
      .operations_research.ConstraintSolverParameters.TrailCompression compress_trail = 1;
      Specified by:
      getCompressTrailValue in interface ConstraintSolverParametersOrBuilder
      Returns:
      The enum numeric value on the wire for compressTrail.
    • getCompressTrail

       This parameter indicates if the solver should compress the trail
       during the search. No compression means that the solver will be faster,
       but will use more memory.
       
      .operations_research.ConstraintSolverParameters.TrailCompression compress_trail = 1;
      Specified by:
      getCompressTrail in interface ConstraintSolverParametersOrBuilder
      Returns:
      The compressTrail.
    • getTrailBlockSize

      public int getTrailBlockSize()
       This parameter indicates the default size of a block of the trail.
       Compression applies at the block level.
       
      int32 trail_block_size = 2;
      Specified by:
      getTrailBlockSize in interface ConstraintSolverParametersOrBuilder
      Returns:
      The trailBlockSize.
    • getArraySplitSize

      public int getArraySplitSize()
       When a sum/min/max operation is applied on a large array, this
       array is recursively split into blocks of size 'array_split_size'.
       
      int32 array_split_size = 3;
      Specified by:
      getArraySplitSize in interface ConstraintSolverParametersOrBuilder
      Returns:
      The arraySplitSize.
    • getStoreNames

      public boolean getStoreNames()
       This parameters indicates if the solver should store the names of
       the objets it manages.
       
      bool store_names = 4;
      Specified by:
      getStoreNames in interface ConstraintSolverParametersOrBuilder
      Returns:
      The storeNames.
    • getNameCastVariables

      public boolean getNameCastVariables()
       Create names for cast variables.
       
      bool name_cast_variables = 5;
      Specified by:
      getNameCastVariables in interface ConstraintSolverParametersOrBuilder
      Returns:
      The nameCastVariables.
    • getNameAllVariables

      public boolean getNameAllVariables()
       Should anonymous variables be given a name.
       
      bool name_all_variables = 6;
      Specified by:
      getNameAllVariables in interface ConstraintSolverParametersOrBuilder
      Returns:
      The nameAllVariables.
    • getProfilePropagation

      public boolean getProfilePropagation()
       Activate propagation profiling.
       
      bool profile_propagation = 7;
      Specified by:
      getProfilePropagation in interface ConstraintSolverParametersOrBuilder
      Returns:
      The profilePropagation.
    • getProfileFile

      public String getProfileFile()
       Export propagation profiling data to file.
       
      string profile_file = 8;
      Specified by:
      getProfileFile in interface ConstraintSolverParametersOrBuilder
      Returns:
      The profileFile.
    • getProfileFileBytes

      public com.google.protobuf.ByteString getProfileFileBytes()
       Export propagation profiling data to file.
       
      string profile_file = 8;
      Specified by:
      getProfileFileBytes in interface ConstraintSolverParametersOrBuilder
      Returns:
      The bytes for profileFile.
    • getProfileLocalSearch

      public boolean getProfileLocalSearch()
       Activate local search profiling.
       
      bool profile_local_search = 16;
      Specified by:
      getProfileLocalSearch in interface ConstraintSolverParametersOrBuilder
      Returns:
      The profileLocalSearch.
    • getPrintLocalSearchProfile

      public boolean getPrintLocalSearchProfile()
       Print local search profiling data after solving.
       
      bool print_local_search_profile = 17;
      Specified by:
      getPrintLocalSearchProfile in interface ConstraintSolverParametersOrBuilder
      Returns:
      The printLocalSearchProfile.
    • getTracePropagation

      public boolean getTracePropagation()
       Activate propagate tracing.
       
      bool trace_propagation = 9;
      Specified by:
      getTracePropagation in interface ConstraintSolverParametersOrBuilder
      Returns:
      The tracePropagation.
    • getTraceSearch

      public boolean getTraceSearch()
       Trace search.
       
      bool trace_search = 10;
      Specified by:
      getTraceSearch in interface ConstraintSolverParametersOrBuilder
      Returns:
      The traceSearch.
    • getPrintModel

      public boolean getPrintModel()
       Print the model before solving.
       
      bool print_model = 11;
      Specified by:
      getPrintModel in interface ConstraintSolverParametersOrBuilder
      Returns:
      The printModel.
    • getPrintModelStats

      public boolean getPrintModelStats()
       Print model statistics before solving.
       
      bool print_model_stats = 12;
      Specified by:
      getPrintModelStats in interface ConstraintSolverParametersOrBuilder
      Returns:
      The printModelStats.
    • getPrintAddedConstraints

      public boolean getPrintAddedConstraints()
       Print added constraints.
       
      bool print_added_constraints = 13;
      Specified by:
      getPrintAddedConstraints in interface ConstraintSolverParametersOrBuilder
      Returns:
      The printAddedConstraints.
    • getDisableSolve

      public boolean getDisableSolve()
      bool disable_solve = 15;
      Specified by:
      getDisableSolve in interface ConstraintSolverParametersOrBuilder
      Returns:
      The disableSolve.
    • getUseSmallTable

      public boolean getUseSmallTable()
      
       Control the implementation of the table constraint.
       
      bool use_small_table = 101;
      Specified by:
      getUseSmallTable in interface ConstraintSolverParametersOrBuilder
      Returns:
      The useSmallTable.
    • getUseCumulativeEdgeFinder

      public boolean getUseCumulativeEdgeFinder()
      
       Control the propagation of the cumulative constraint.
       
      bool use_cumulative_edge_finder = 105;
      Specified by:
      getUseCumulativeEdgeFinder in interface ConstraintSolverParametersOrBuilder
      Returns:
      The useCumulativeEdgeFinder.
    • getUseCumulativeTimeTable

      public boolean getUseCumulativeTimeTable()
      bool use_cumulative_time_table = 106;
      Specified by:
      getUseCumulativeTimeTable in interface ConstraintSolverParametersOrBuilder
      Returns:
      The useCumulativeTimeTable.
    • getUseCumulativeTimeTableSync

      public boolean getUseCumulativeTimeTableSync()
      bool use_cumulative_time_table_sync = 112;
      Specified by:
      getUseCumulativeTimeTableSync in interface ConstraintSolverParametersOrBuilder
      Returns:
      The useCumulativeTimeTableSync.
    • getUseSequenceHighDemandTasks

      public boolean getUseSequenceHighDemandTasks()
      bool use_sequence_high_demand_tasks = 107;
      Specified by:
      getUseSequenceHighDemandTasks in interface ConstraintSolverParametersOrBuilder
      Returns:
      The useSequenceHighDemandTasks.
    • getUseAllPossibleDisjunctions

      public boolean getUseAllPossibleDisjunctions()
      bool use_all_possible_disjunctions = 108;
      Specified by:
      getUseAllPossibleDisjunctions in interface ConstraintSolverParametersOrBuilder
      Returns:
      The useAllPossibleDisjunctions.
    • getMaxEdgeFinderSize

      public int getMaxEdgeFinderSize()
      int32 max_edge_finder_size = 109;
      Specified by:
      getMaxEdgeFinderSize in interface ConstraintSolverParametersOrBuilder
      Returns:
      The maxEdgeFinderSize.
    • getDiffnUseCumulative

      public boolean getDiffnUseCumulative()
      
       Control the propagation of the diffn constraint.
       
      bool diffn_use_cumulative = 110;
      Specified by:
      getDiffnUseCumulative in interface ConstraintSolverParametersOrBuilder
      Returns:
      The diffnUseCumulative.
    • getUseElementRmq

      public boolean getUseElementRmq()
      
       Control the implementation of the element constraint.
       
      bool use_element_rmq = 111;
      Specified by:
      getUseElementRmq in interface ConstraintSolverParametersOrBuilder
      Returns:
      The useElementRmq.
    • getSkipLocallyOptimalPaths

      public boolean getSkipLocallyOptimalPaths()
      
       Skip locally optimal pairs of paths in PathOperators. Setting this
       parameter to true might skip valid neighbors if there are constraints
       linking paths together (such as precedences). In any other case this
       should only speed up the search without omitting any neighbors.
       
      bool skip_locally_optimal_paths = 113;
      Specified by:
      getSkipLocallyOptimalPaths in interface ConstraintSolverParametersOrBuilder
      Returns:
      The skipLocallyOptimalPaths.
    • getCheckSolutionPeriod

      public int getCheckSolutionPeriod()
      
       Control the behavior of local search.
       
      int32 check_solution_period = 114;
      Specified by:
      getCheckSolutionPeriod in interface ConstraintSolverParametersOrBuilder
      Returns:
      The checkSolutionPeriod.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static ConstraintSolverParameters parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ConstraintSolverParameters parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ConstraintSolverParameters parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ConstraintSolverParameters parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ConstraintSolverParameters parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ConstraintSolverParameters parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ConstraintSolverParameters parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ConstraintSolverParameters parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ConstraintSolverParameters parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ConstraintSolverParameters parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ConstraintSolverParameters parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ConstraintSolverParameters parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public ConstraintSolverParameters.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static ConstraintSolverParameters.Builder newBuilder()
    • newBuilder

      public static ConstraintSolverParameters.Builder newBuilder(ConstraintSolverParameters prototype)
    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected ConstraintSolverParameters.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static ConstraintSolverParameters getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<ConstraintSolverParameters> parser()
    • getParserForType

      public com.google.protobuf.Parser<ConstraintSolverParameters> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public ConstraintSolverParameters getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder