Class ConstraintSolverParameters.Builder

    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ConstraintSolverParameters.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ConstraintSolverParameters.Builder>
      • getDefaultInstanceForType

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

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

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

        public ConstraintSolverParameters.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                   int index,
                                                                   java.lang.Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ConstraintSolverParameters.Builder>
      • addRepeatedField

        public ConstraintSolverParameters.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                   java.lang.Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ConstraintSolverParameters.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ConstraintSolverParameters.Builder>
      • mergeFrom

        public ConstraintSolverParameters.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                     throws java.io.IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ConstraintSolverParameters.Builder>
        Throws:
        java.io.IOException
      • 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.
      • setCompressTrailValue

        public ConstraintSolverParameters.Builder setCompressTrailValue​(int value)
         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;
        Parameters:
        value - The enum numeric value on the wire for compressTrail to set.
        Returns:
        This builder for chaining.
      • setCompressTrail

        public ConstraintSolverParameters.Builder setCompressTrail​(ConstraintSolverParameters.TrailCompression value)
         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;
        Parameters:
        value - The compressTrail to set.
        Returns:
        This builder for chaining.
      • clearCompressTrail

        public ConstraintSolverParameters.Builder clearCompressTrail()
         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;
        Returns:
        This builder for chaining.
      • 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.
      • setTrailBlockSize

        public ConstraintSolverParameters.Builder setTrailBlockSize​(int value)
         This parameter indicates the default size of a block of the trail.
         Compression applies at the block level.
         
        int32 trail_block_size = 2;
        Parameters:
        value - The trailBlockSize to set.
        Returns:
        This builder for chaining.
      • clearTrailBlockSize

        public ConstraintSolverParameters.Builder clearTrailBlockSize()
         This parameter indicates the default size of a block of the trail.
         Compression applies at the block level.
         
        int32 trail_block_size = 2;
        Returns:
        This builder for chaining.
      • 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.
      • setArraySplitSize

        public ConstraintSolverParameters.Builder setArraySplitSize​(int value)
         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;
        Parameters:
        value - The arraySplitSize to set.
        Returns:
        This builder for chaining.
      • clearArraySplitSize

        public ConstraintSolverParameters.Builder clearArraySplitSize()
         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;
        Returns:
        This builder for chaining.
      • 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.
      • setStoreNames

        public ConstraintSolverParameters.Builder setStoreNames​(boolean value)
         This parameters indicates if the solver should store the names of
         the objets it manages.
         
        bool store_names = 4;
        Parameters:
        value - The storeNames to set.
        Returns:
        This builder for chaining.
      • clearStoreNames

        public ConstraintSolverParameters.Builder clearStoreNames()
         This parameters indicates if the solver should store the names of
         the objets it manages.
         
        bool store_names = 4;
        Returns:
        This builder for chaining.
      • setNameCastVariables

        public ConstraintSolverParameters.Builder setNameCastVariables​(boolean value)
         Create names for cast variables.
         
        bool name_cast_variables = 5;
        Parameters:
        value - The nameCastVariables to set.
        Returns:
        This builder for chaining.
      • clearNameCastVariables

        public ConstraintSolverParameters.Builder clearNameCastVariables()
         Create names for cast variables.
         
        bool name_cast_variables = 5;
        Returns:
        This builder for chaining.
      • setNameAllVariables

        public ConstraintSolverParameters.Builder setNameAllVariables​(boolean value)
         Should anonymous variables be given a name.
         
        bool name_all_variables = 6;
        Parameters:
        value - The nameAllVariables to set.
        Returns:
        This builder for chaining.
      • clearNameAllVariables

        public ConstraintSolverParameters.Builder clearNameAllVariables()
         Should anonymous variables be given a name.
         
        bool name_all_variables = 6;
        Returns:
        This builder for chaining.
      • setProfilePropagation

        public ConstraintSolverParameters.Builder setProfilePropagation​(boolean value)
         Activate propagation profiling.
         
        bool profile_propagation = 7;
        Parameters:
        value - The profilePropagation to set.
        Returns:
        This builder for chaining.
      • clearProfilePropagation

        public ConstraintSolverParameters.Builder clearProfilePropagation()
         Activate propagation profiling.
         
        bool profile_propagation = 7;
        Returns:
        This builder for chaining.
      • 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.
      • setProfileFile

        public ConstraintSolverParameters.Builder setProfileFile​(java.lang.String value)
         Export propagation profiling data to file.
         
        string profile_file = 8;
        Parameters:
        value - The profileFile to set.
        Returns:
        This builder for chaining.
      • clearProfileFile

        public ConstraintSolverParameters.Builder clearProfileFile()
         Export propagation profiling data to file.
         
        string profile_file = 8;
        Returns:
        This builder for chaining.
      • setProfileFileBytes

        public ConstraintSolverParameters.Builder setProfileFileBytes​(com.google.protobuf.ByteString value)
         Export propagation profiling data to file.
         
        string profile_file = 8;
        Parameters:
        value - The bytes for profileFile to set.
        Returns:
        This builder for chaining.
      • setProfileLocalSearch

        public ConstraintSolverParameters.Builder setProfileLocalSearch​(boolean value)
         Activate local search profiling.
         
        bool profile_local_search = 16;
        Parameters:
        value - The profileLocalSearch to set.
        Returns:
        This builder for chaining.
      • clearProfileLocalSearch

        public ConstraintSolverParameters.Builder clearProfileLocalSearch()
         Activate local search profiling.
         
        bool profile_local_search = 16;
        Returns:
        This builder for chaining.
      • setPrintLocalSearchProfile

        public ConstraintSolverParameters.Builder setPrintLocalSearchProfile​(boolean value)
         Print local search profiling data after solving.
         
        bool print_local_search_profile = 17;
        Parameters:
        value - The printLocalSearchProfile to set.
        Returns:
        This builder for chaining.
      • clearPrintLocalSearchProfile

        public ConstraintSolverParameters.Builder clearPrintLocalSearchProfile()
         Print local search profiling data after solving.
         
        bool print_local_search_profile = 17;
        Returns:
        This builder for chaining.
      • setTracePropagation

        public ConstraintSolverParameters.Builder setTracePropagation​(boolean value)
         Activate propagate tracing.
         
        bool trace_propagation = 9;
        Parameters:
        value - The tracePropagation to set.
        Returns:
        This builder for chaining.
      • clearTracePropagation

        public ConstraintSolverParameters.Builder clearTracePropagation()
         Activate propagate tracing.
         
        bool trace_propagation = 9;
        Returns:
        This builder for chaining.
      • setTraceSearch

        public ConstraintSolverParameters.Builder setTraceSearch​(boolean value)
         Trace search.
         
        bool trace_search = 10;
        Parameters:
        value - The traceSearch to set.
        Returns:
        This builder for chaining.
      • setPrintModel

        public ConstraintSolverParameters.Builder setPrintModel​(boolean value)
         Print the model before solving.
         
        bool print_model = 11;
        Parameters:
        value - The printModel to set.
        Returns:
        This builder for chaining.
      • clearPrintModel

        public ConstraintSolverParameters.Builder clearPrintModel()
         Print the model before solving.
         
        bool print_model = 11;
        Returns:
        This builder for chaining.
      • setPrintModelStats

        public ConstraintSolverParameters.Builder setPrintModelStats​(boolean value)
         Print model statistics before solving.
         
        bool print_model_stats = 12;
        Parameters:
        value - The printModelStats to set.
        Returns:
        This builder for chaining.
      • clearPrintModelStats

        public ConstraintSolverParameters.Builder clearPrintModelStats()
         Print model statistics before solving.
         
        bool print_model_stats = 12;
        Returns:
        This builder for chaining.
      • setPrintAddedConstraints

        public ConstraintSolverParameters.Builder setPrintAddedConstraints​(boolean value)
         Print added constraints.
         
        bool print_added_constraints = 13;
        Parameters:
        value - The printAddedConstraints to set.
        Returns:
        This builder for chaining.
      • clearPrintAddedConstraints

        public ConstraintSolverParameters.Builder clearPrintAddedConstraints()
         Print added constraints.
         
        bool print_added_constraints = 13;
        Returns:
        This builder for chaining.
      • setDisableSolve

        public ConstraintSolverParameters.Builder setDisableSolve​(boolean value)
        bool disable_solve = 15;
        Parameters:
        value - The disableSolve to set.
        Returns:
        This builder for chaining.
      • setUseSmallTable

        public ConstraintSolverParameters.Builder setUseSmallTable​(boolean value)
        
         Control the implementation of the table constraint.
         
        bool use_small_table = 101;
        Parameters:
        value - The useSmallTable to set.
        Returns:
        This builder for chaining.
      • clearUseSmallTable

        public ConstraintSolverParameters.Builder clearUseSmallTable()
        
         Control the implementation of the table constraint.
         
        bool use_small_table = 101;
        Returns:
        This builder for chaining.
      • setUseCumulativeEdgeFinder

        public ConstraintSolverParameters.Builder setUseCumulativeEdgeFinder​(boolean value)
        
         Control the propagation of the cumulative constraint.
         
        bool use_cumulative_edge_finder = 105;
        Parameters:
        value - The useCumulativeEdgeFinder to set.
        Returns:
        This builder for chaining.
      • clearUseCumulativeEdgeFinder

        public ConstraintSolverParameters.Builder clearUseCumulativeEdgeFinder()
        
         Control the propagation of the cumulative constraint.
         
        bool use_cumulative_edge_finder = 105;
        Returns:
        This builder for chaining.
      • setUseCumulativeTimeTable

        public ConstraintSolverParameters.Builder setUseCumulativeTimeTable​(boolean value)
        bool use_cumulative_time_table = 106;
        Parameters:
        value - The useCumulativeTimeTable to set.
        Returns:
        This builder for chaining.
      • clearUseCumulativeTimeTable

        public ConstraintSolverParameters.Builder clearUseCumulativeTimeTable()
        bool use_cumulative_time_table = 106;
        Returns:
        This builder for chaining.
      • setUseCumulativeTimeTableSync

        public ConstraintSolverParameters.Builder setUseCumulativeTimeTableSync​(boolean value)
        bool use_cumulative_time_table_sync = 112;
        Parameters:
        value - The useCumulativeTimeTableSync to set.
        Returns:
        This builder for chaining.
      • clearUseCumulativeTimeTableSync

        public ConstraintSolverParameters.Builder clearUseCumulativeTimeTableSync()
        bool use_cumulative_time_table_sync = 112;
        Returns:
        This builder for chaining.
      • setUseSequenceHighDemandTasks

        public ConstraintSolverParameters.Builder setUseSequenceHighDemandTasks​(boolean value)
        bool use_sequence_high_demand_tasks = 107;
        Parameters:
        value - The useSequenceHighDemandTasks to set.
        Returns:
        This builder for chaining.
      • clearUseSequenceHighDemandTasks

        public ConstraintSolverParameters.Builder clearUseSequenceHighDemandTasks()
        bool use_sequence_high_demand_tasks = 107;
        Returns:
        This builder for chaining.
      • setUseAllPossibleDisjunctions

        public ConstraintSolverParameters.Builder setUseAllPossibleDisjunctions​(boolean value)
        bool use_all_possible_disjunctions = 108;
        Parameters:
        value - The useAllPossibleDisjunctions to set.
        Returns:
        This builder for chaining.
      • clearUseAllPossibleDisjunctions

        public ConstraintSolverParameters.Builder clearUseAllPossibleDisjunctions()
        bool use_all_possible_disjunctions = 108;
        Returns:
        This builder for chaining.
      • setMaxEdgeFinderSize

        public ConstraintSolverParameters.Builder setMaxEdgeFinderSize​(int value)
        int32 max_edge_finder_size = 109;
        Parameters:
        value - The maxEdgeFinderSize to set.
        Returns:
        This builder for chaining.
      • setDiffnUseCumulative

        public ConstraintSolverParameters.Builder setDiffnUseCumulative​(boolean value)
        
         Control the propagation of the diffn constraint.
         
        bool diffn_use_cumulative = 110;
        Parameters:
        value - The diffnUseCumulative to set.
        Returns:
        This builder for chaining.
      • clearDiffnUseCumulative

        public ConstraintSolverParameters.Builder clearDiffnUseCumulative()
        
         Control the propagation of the diffn constraint.
         
        bool diffn_use_cumulative = 110;
        Returns:
        This builder for chaining.
      • setUseElementRmq

        public ConstraintSolverParameters.Builder setUseElementRmq​(boolean value)
        
         Control the implementation of the element constraint.
         
        bool use_element_rmq = 111;
        Parameters:
        value - The useElementRmq to set.
        Returns:
        This builder for chaining.
      • clearUseElementRmq

        public ConstraintSolverParameters.Builder clearUseElementRmq()
        
         Control the implementation of the element constraint.
         
        bool use_element_rmq = 111;
        Returns:
        This builder for chaining.
      • 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.
      • setSkipLocallyOptimalPaths

        public ConstraintSolverParameters.Builder setSkipLocallyOptimalPaths​(boolean value)
        
         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;
        Parameters:
        value - The skipLocallyOptimalPaths to set.
        Returns:
        This builder for chaining.
      • clearSkipLocallyOptimalPaths

        public ConstraintSolverParameters.Builder clearSkipLocallyOptimalPaths()
        
         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;
        Returns:
        This builder for chaining.
      • setCheckSolutionPeriod

        public ConstraintSolverParameters.Builder setCheckSolutionPeriod​(int value)
        
         Control the behavior of local search.
         
        int32 check_solution_period = 114;
        Parameters:
        value - The checkSolutionPeriod to set.
        Returns:
        This builder for chaining.
      • clearCheckSolutionPeriod

        public ConstraintSolverParameters.Builder clearCheckSolutionPeriod()
        
         Control the behavior of local search.
         
        int32 check_solution_period = 114;
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final ConstraintSolverParameters.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ConstraintSolverParameters.Builder>
      • mergeUnknownFields

        public final ConstraintSolverParameters.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ConstraintSolverParameters.Builder>