![]() |
Google OR-Tools v9.12
a fast and portable software suite for combinatorial optimization
|
Classes | |
class | Builder |
enum | ThreadSynchronizationType |
Static Public Member Functions | |
static final com.google.protobuf.Descriptors.Descriptor | getDescriptor () |
static com.google.ortools.bop.BopParameters | parseFrom (java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException |
static com.google.ortools.bop.BopParameters | parseFrom (java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException |
static com.google.ortools.bop.BopParameters | parseFrom (com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException |
static com.google.ortools.bop.BopParameters | parseFrom (com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException |
static com.google.ortools.bop.BopParameters | parseFrom (byte[] data) throws com.google.protobuf.InvalidProtocolBufferException |
static com.google.ortools.bop.BopParameters | parseFrom (byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException |
static com.google.ortools.bop.BopParameters | parseFrom (java.io.InputStream input) throws java.io.IOException |
static com.google.ortools.bop.BopParameters | parseFrom (java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException |
static com.google.ortools.bop.BopParameters | parseDelimitedFrom (java.io.InputStream input) throws java.io.IOException |
static com.google.ortools.bop.BopParameters | parseDelimitedFrom (java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException |
static com.google.ortools.bop.BopParameters | parseFrom (com.google.protobuf.CodedInputStream input) throws java.io.IOException |
static com.google.ortools.bop.BopParameters | parseFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException |
static Builder | newBuilder () |
static Builder | newBuilder (com.google.ortools.bop.BopParameters prototype) |
static com.google.ortools.bop.BopParameters | getDefaultInstance () |
static com.google.protobuf.Parser< BopParameters > | parser () |
Protected Member Functions | |
com.google.protobuf.GeneratedMessage.FieldAccessorTable | internalGetFieldAccessorTable () |
Builder | newBuilderForType (com.google.protobuf.GeneratedMessage.BuilderParent parent) |
Contains the definitions for all the bop algorithm parameters and their default values. NEXT TAG: 42
Protobuf type operations_research.bop.BopParameters
Definition at line 18 of file BopParameters.java.
boolean com.google.ortools.bop.BopParameters.equals | ( | final java.lang.Object | obj | ) |
Definition at line 1749 of file BopParameters.java.
boolean com.google.ortools.bop.BopParameters.getComputeEstimatedImpact | ( | ) |
Compute estimated impact at each iteration when true; only once when false.
optional bool compute_estimated_impact = 3 [default = true];
Implements com.google.ortools.bop.BopParametersOrBuilder.
Definition at line 550 of file BopParameters.java.
double com.google.ortools.bop.BopParameters.getDecomposedProblemMinTimeInSeconds | ( | ) |
HACK. To avoid spending too little time on small problems, spend at least this time solving each of the decomposed sub-problem. This only make sense if num_bop_solvers_used_by_decomposition is greater than 1 so that the overhead can be "absorbed" by the other threads.
optional double decomposed_problem_min_time_in_seconds = 36 [default = 0];
Implements com.google.ortools.bop.BopParametersOrBuilder.
Definition at line 1394 of file BopParameters.java.
int com.google.ortools.bop.BopParameters.getDecomposerNumVariablesThreshold | ( | ) |
Only try to decompose the problem when the number of variables is greater than the threshold.
optional int32 decomposer_num_variables_threshold = 30 [default = 50];
Implements com.google.ortools.bop.BopParametersOrBuilder.
Definition at line 1330 of file BopParameters.java.
|
static |
Definition at line 5553 of file BopParameters.java.
com.google.ortools.bop.BopParameters com.google.ortools.bop.BopParameters.getDefaultInstanceForType | ( | ) |
Definition at line 5589 of file BopParameters.java.
java.lang.String com.google.ortools.bop.BopParameters.getDefaultSolverOptimizerSets | ( | ) |
optional string default_solver_optimizer_sets = 33 [default = "methods:{type:LOCAL_SEARCH } methods:{type:RANDOM_FIRST_SOLUTION } methods:{type:LINEAR_RELAXATION } methods:{type:LP_FIRST_SOLUTION } methods:{type:OBJECTIVE_FIRST_SOLUTION } methods:{type:USER_GUIDED_FIRST_SOLUTION } methods:{type:RANDOM_CONSTRAINT_LNS_GUIDED_BY_LP } methods:{type:RANDOM_VARIABLE_LNS_GUIDED_BY_LP } methods:{type:RELATION_GRAPH_LNS } methods:{type:RELATION_GRAPH_LNS_GUIDED_BY_LP } methods:{type:RANDOM_CONSTRAINT_LNS } methods:{type:RANDOM_VARIABLE_LNS } methods:{type:SAT_CORE_BASED } methods:{type:COMPLETE_LNS } "];
Implements com.google.ortools.bop.BopParametersOrBuilder.
Definition at line 1229 of file BopParameters.java.
com.google.protobuf.ByteString com.google.ortools.bop.BopParameters.getDefaultSolverOptimizerSetsBytes | ( | ) |
optional string default_solver_optimizer_sets = 33 [default = "methods:{type:LOCAL_SEARCH } methods:{type:RANDOM_FIRST_SOLUTION } methods:{type:LINEAR_RELAXATION } methods:{type:LP_FIRST_SOLUTION } methods:{type:OBJECTIVE_FIRST_SOLUTION } methods:{type:USER_GUIDED_FIRST_SOLUTION } methods:{type:RANDOM_CONSTRAINT_LNS_GUIDED_BY_LP } methods:{type:RANDOM_VARIABLE_LNS_GUIDED_BY_LP } methods:{type:RELATION_GRAPH_LNS } methods:{type:RELATION_GRAPH_LNS_GUIDED_BY_LP } methods:{type:RANDOM_CONSTRAINT_LNS } methods:{type:RANDOM_VARIABLE_LNS } methods:{type:SAT_CORE_BASED } methods:{type:COMPLETE_LNS } "];
Implements com.google.ortools.bop.BopParametersOrBuilder.
Definition at line 1249 of file BopParameters.java.
|
static |
Definition at line 67 of file BopParameters.java.
boolean com.google.ortools.bop.BopParameters.getExploitSymmetryInSatFirstSolution | ( | ) |
If true, find and exploit symmetries in proving satisfiability in the first problem. This feature is experimental. On some problems, computing symmetries may run forever. You may also run into unforseen problems as this feature was not extensively tested.
optional bool exploit_symmetry_in_sat_first_solution = 40 [default = false];
Implements com.google.ortools.bop.BopParametersOrBuilder.
Definition at line 933 of file BopParameters.java.
int com.google.ortools.bop.BopParameters.getGuidedSatConflictsChunk | ( | ) |
The first solutions based on guided SAT will work in chunk of that many conflicts at the time. This allows to simulate parallelism between the different guiding strategy on a single core.
optional int32 guided_sat_conflicts_chunk = 34 [default = 1000];
Implements com.google.ortools.bop.BopParametersOrBuilder.
Definition at line 1425 of file BopParameters.java.
boolean com.google.ortools.bop.BopParameters.getLogSearchProgress | ( | ) |
Whether the solver should log the search progress to LOG(INFO).
optional bool log_search_progress = 14 [default = false];
Implements com.google.ortools.bop.BopParametersOrBuilder.
Definition at line 523 of file BopParameters.java.
double com.google.ortools.bop.BopParameters.getLpMaxDeterministicTime | ( | ) |
The max deterministic time given to the LP solver each time it is called. If this is not enough to solve the LP at hand, it will simply be called again later (and the solve will resume from where it stopped).
optional double lp_max_deterministic_time = 37 [default = 1];
Implements com.google.ortools.bop.BopParametersOrBuilder.
Definition at line 366 of file BopParameters.java.
double com.google.ortools.bop.BopParameters.getMaxDeterministicTime | ( | ) |
Maximum time allowed in deterministic time to solve a problem. The deterministic time should be correlated with the real time used by the solver, the time unit being roughly the order of magnitude of a second. The counter will starts as soon as SetParameters() or SolveWithTimeLimit() is called.
optional double max_deterministic_time = 27 [default = inf];
Implements com.google.ortools.bop.BopParametersOrBuilder.
Definition at line 335 of file BopParameters.java.
int com.google.ortools.bop.BopParameters.getMaxLpSolveForFeasibilityProblems | ( | ) |
The maximum number of time the LP solver will run to feasibility for pure feasibility problems (with a constant-valued objective function). Set this to a small value, e.g., 1, if fractional solutions offer useful guidance to other solvers in the portfolio. A negative value means no limit.
optional int32 max_lp_solve_for_feasibility_problems = 41 [default = 0];
Implements com.google.ortools.bop.BopParametersOrBuilder.
Definition at line 1458 of file BopParameters.java.
long com.google.ortools.bop.BopParameters.getMaxNumberOfBacktracksInLs | ( | ) |
Maximum number of backtracks times the number of variables in Local Search, ie. max num backtracks == max_number_of_backtracks_in_ls / num variables.
optional int64 max_number_of_backtracks_in_ls = 11 [default = 100000000];
Implements com.google.ortools.bop.BopParametersOrBuilder.
Definition at line 780 of file BopParameters.java.
int com.google.ortools.bop.BopParameters.getMaxNumberOfConflictsForQuickCheck | ( | ) |
The number of conflicts the SAT solver has to solve a random LNS subproblem for the quick check of infeasibility.
optional int32 max_number_of_conflicts_for_quick_check = 16 [default = 10];
Implements com.google.ortools.bop.BopParametersOrBuilder.
Definition at line 863 of file BopParameters.java.
int com.google.ortools.bop.BopParameters.getMaxNumberOfConflictsInRandomLns | ( | ) |
The number of conflicts the SAT solver has to solve a random LNS subproblem.
optional int32 max_number_of_conflicts_in_random_lns = 9 [default = 2500];
Implements com.google.ortools.bop.BopParametersOrBuilder.
Definition at line 724 of file BopParameters.java.
int com.google.ortools.bop.BopParameters.getMaxNumberOfConflictsInRandomSolutionGeneration | ( | ) |
The number of conflicts the SAT solver has to generate a random solution.
optional int32 max_number_of_conflicts_in_random_solution_generation = 20 [default = 500];
Implements com.google.ortools.bop.BopParametersOrBuilder.
Definition at line 960 of file BopParameters.java.
int com.google.ortools.bop.BopParameters.getMaxNumberOfConsecutiveFailingOptimizerCalls | ( | ) |
Maximum number of consecutive optimizer calls without improving the current solution. If this number is reached, the search will be aborted. Note that this parameter only applies when an initial solution has been found or is provided. Also note that there is no limit to the number of calls, when the parameter is not set.
optional int32 max_number_of_consecutive_failing_optimizer_calls = 35;
Implements com.google.ortools.bop.BopParametersOrBuilder.
Definition at line 401 of file BopParameters.java.
long com.google.ortools.bop.BopParameters.getMaxNumberOfExploredAssignmentsPerTryInLs | ( | ) |
The maximum number of assignments the Local Search iterates on during one try. Note that if the Local Search is called again on the same solution it will not restart from scratch but will iterate on the next max_number_of_explored_assignments_per_try_in_ls assignments.
optional int64 max_number_of_explored_assignments_per_try_in_ls = 21 [default = 10000];
Implements com.google.ortools.bop.BopParametersOrBuilder.
Definition at line 993 of file BopParameters.java.
int com.google.ortools.bop.BopParameters.getMaxNumBrokenConstraintsInLs | ( | ) |
Abort the LS search tree as soon as strictly more than this number of constraints are broken. The default is a large value which basically disable this heuristic.
optional int32 max_num_broken_constraints_in_ls = 38 [default = 2147483647];
Implements com.google.ortools.bop.BopParametersOrBuilder.
Definition at line 496 of file BopParameters.java.
int com.google.ortools.bop.BopParameters.getMaxNumDecisionsInLs | ( | ) |
Maximum number of cascading decisions the solver might use to repair the current solution in the LS.
optional int32 max_num_decisions_in_ls = 2 [default = 4];
Implements com.google.ortools.bop.BopParametersOrBuilder.
Definition at line 465 of file BopParameters.java.
double com.google.ortools.bop.BopParameters.getMaxTimeInSeconds | ( | ) |
Maximum time allowed in seconds to solve a problem. The counter will starts as soon as Solve() is called.
optional double max_time_in_seconds = 1 [default = inf];
Implements com.google.ortools.bop.BopParametersOrBuilder.
Definition at line 300 of file BopParameters.java.
int com.google.ortools.bop.BopParameters.getNumberOfSolvers | ( | ) |
The number of solvers used to run Bop. Note that one thread will be created per solver. The type of communication between solvers is specified by the synchronization_type parameter.
optional int32 number_of_solvers = 24 [default = 1];
Implements com.google.ortools.bop.BopParametersOrBuilder.
Definition at line 1115 of file BopParameters.java.
int com.google.ortools.bop.BopParameters.getNumBopSolversUsedByDecomposition | ( | ) |
The number of BopSolver created (thread pool workers) used by the integral solver to solve a decomposed problem. TODO(user): Merge this with the number_of_solvers parameter.
optional int32 num_bop_solvers_used_by_decomposition = 31 [default = 1];
Implements com.google.ortools.bop.BopParametersOrBuilder.
Definition at line 1361 of file BopParameters.java.
int com.google.ortools.bop.BopParameters.getNumRandomLnsTries | ( | ) |
Number of tries in the random lns.
optional int32 num_random_lns_tries = 10 [default = 1];
Implements com.google.ortools.bop.BopParametersOrBuilder.
Definition at line 751 of file BopParameters.java.
int com.google.ortools.bop.BopParameters.getNumRelaxedVars | ( | ) |
Number of variables to relax in the exhaustive Large Neighborhood Search.
optional int32 num_relaxed_vars = 8 [default = 10];
Implements com.google.ortools.bop.BopParametersOrBuilder.
Definition at line 695 of file BopParameters.java.
com.google.protobuf.Parser< BopParameters > com.google.ortools.bop.BopParameters.getParserForType | ( | ) |
Definition at line 5584 of file BopParameters.java.
boolean com.google.ortools.bop.BopParameters.getPruneSearchTree | ( | ) |
Avoid exploring both branches (b, a, ...) and (a, b, ...).
optional bool prune_search_tree = 4 [default = false];
Implements com.google.ortools.bop.BopParametersOrBuilder.
Definition at line 577 of file BopParameters.java.
int com.google.ortools.bop.BopParameters.getRandomSeed | ( | ) |
The seed used to initialize the random generator. TODO(user): Some of our client test fail depending on this value! we need to fix them and ideally randomize our behavior from on test to the next so that this doesn't happen in the future.
optional int32 random_seed = 7 [default = 8];
Implements com.google.ortools.bop.BopParametersOrBuilder.
Definition at line 668 of file BopParameters.java.
double com.google.ortools.bop.BopParameters.getRelativeGapLimit | ( | ) |
Limit used to stop the optimization as soon as the relative gap is smaller than the given value. The relative gap is defined as: abs(solution_cost - best_bound) / max(abs(solution_cost), abs(best_bound)).
optional double relative_gap_limit = 28 [default = 0.0001];
Implements com.google.ortools.bop.BopParametersOrBuilder.
Definition at line 436 of file BopParameters.java.
int com.google.ortools.bop.BopParameters.getSerializedSize | ( | ) |
Definition at line 1591 of file BopParameters.java.
com.google.ortools.bop.BopSolverOptimizerSet com.google.ortools.bop.BopParameters.getSolverOptimizerSets | ( | int | index | ) |
List of set of optimizers to be run by the solvers. Note that the i_th solver will run the min(i, solver_optimizer_sets_size())_th optimizer set. The default is defined by default_solver_optimizer_sets (only one set).
repeated .operations_research.bop.BopSolverOptimizerSet solver_optimizer_sets = 26;
Implements com.google.ortools.bop.BopParametersOrBuilder.
Definition at line 1194 of file BopParameters.java.
int com.google.ortools.bop.BopParameters.getSolverOptimizerSetsCount | ( | ) |
List of set of optimizers to be run by the solvers. Note that the i_th solver will run the min(i, solver_optimizer_sets_size())_th optimizer set. The default is defined by default_solver_optimizer_sets (only one set).
repeated .operations_research.bop.BopSolverOptimizerSet solver_optimizer_sets = 26;
Implements com.google.ortools.bop.BopParametersOrBuilder.
Definition at line 1180 of file BopParameters.java.
java.util.List< com.google.ortools.bop.BopSolverOptimizerSet > com.google.ortools.bop.BopParameters.getSolverOptimizerSetsList | ( | ) |
List of set of optimizers to be run by the solvers. Note that the i_th solver will run the min(i, solver_optimizer_sets_size())_th optimizer set. The default is defined by default_solver_optimizer_sets (only one set).
repeated .operations_research.bop.BopSolverOptimizerSet solver_optimizer_sets = 26;
Implements com.google.ortools.bop.BopParametersOrBuilder.
Definition at line 1151 of file BopParameters.java.
com.google.ortools.bop.BopSolverOptimizerSetOrBuilder com.google.ortools.bop.BopParameters.getSolverOptimizerSetsOrBuilder | ( | int | index | ) |
List of set of optimizers to be run by the solvers. Note that the i_th solver will run the min(i, solver_optimizer_sets_size())_th optimizer set. The default is defined by default_solver_optimizer_sets (only one set).
repeated .operations_research.bop.BopSolverOptimizerSet solver_optimizer_sets = 26;
Implements com.google.ortools.bop.BopParametersOrBuilder.
Definition at line 1208 of file BopParameters.java.
java.util.List<? extends com.google.ortools.bop.BopSolverOptimizerSetOrBuilder > com.google.ortools.bop.BopParameters.getSolverOptimizerSetsOrBuilderList | ( | ) |
List of set of optimizers to be run by the solvers. Note that the i_th solver will run the min(i, solver_optimizer_sets_size())_th optimizer set. The default is defined by default_solver_optimizer_sets (only one set).
repeated .operations_research.bop.BopSolverOptimizerSet solver_optimizer_sets = 26;
Implements com.google.ortools.bop.BopParametersOrBuilder.
Definition at line 1166 of file BopParameters.java.
boolean com.google.ortools.bop.BopParameters.getSortConstraintsByNumTerms | ( | ) |
Sort constraints by increasing total number of terms instead of number of contributing terms.
optional bool sort_constraints_by_num_terms = 5 [default = false];
Implements com.google.ortools.bop.BopParametersOrBuilder.
Definition at line 606 of file BopParameters.java.
com.google.ortools.bop.BopParameters.ThreadSynchronizationType com.google.ortools.bop.BopParameters.getSynchronizationType | ( | ) |
optional .operations_research.bop.BopParameters.ThreadSynchronizationType synchronization_type = 25 [default = NO_SYNCHRONIZATION];
Implements com.google.ortools.bop.BopParametersOrBuilder.
Definition at line 1132 of file BopParameters.java.
boolean com.google.ortools.bop.BopParameters.getUseLearnedBinaryClausesInLp | ( | ) |
Whether we use the learned binary clauses in the Linear Relaxation.
optional bool use_learned_binary_clauses_in_lp = 23 [default = true];
Implements com.google.ortools.bop.BopParametersOrBuilder.
Definition at line 1084 of file BopParameters.java.
boolean com.google.ortools.bop.BopParameters.getUseLpLns | ( | ) |
Use Large Neighborhood Search based on the LP relaxation.
optional bool use_lp_lns = 12 [default = true];
Implements com.google.ortools.bop.BopParametersOrBuilder.
Definition at line 807 of file BopParameters.java.
boolean com.google.ortools.bop.BopParameters.getUseLpStrongBranching | ( | ) |
Use strong branching in the linear relaxation optimizer. The strong branching is a what-if analysis on each variable v, i.e. compute the best bound when v is assigned to true, compute the best bound when v is assigned to false, and then use those best bounds to improve the overall best bound. This is useful to improve the best_bound, but also to fix some variables during search. Note that using probing might be time consuming as it runs the LP solver 2 * num_variables times.
optional bool use_lp_strong_branching = 29 [default = false];
Implements com.google.ortools.bop.BopParametersOrBuilder.
Definition at line 1301 of file BopParameters.java.
boolean com.google.ortools.bop.BopParameters.getUsePotentialOneFlipRepairsInLs | ( | ) |
Whether we keep a list of variable that can potentially repair in one flip all the current infeasible constraints (such variable must at least appear in all the infeasible constraints for this to happen).
optional bool use_potential_one_flip_repairs_in_ls = 39 [default = false];
Implements com.google.ortools.bop.BopParametersOrBuilder.
Definition at line 1057 of file BopParameters.java.
boolean com.google.ortools.bop.BopParameters.getUseRandomLns | ( | ) |
Use the random Large Neighborhood Search instead of the exhaustive one.
optional bool use_random_lns = 6 [default = true];
Implements com.google.ortools.bop.BopParametersOrBuilder.
Definition at line 633 of file BopParameters.java.
boolean com.google.ortools.bop.BopParameters.getUseSatToChooseLnsNeighbourhood | ( | ) |
Whether we use sat propagation to choose the lns neighbourhood.
optional bool use_sat_to_choose_lns_neighbourhood = 15 [default = true];
Implements com.google.ortools.bop.BopParametersOrBuilder.
Definition at line 834 of file BopParameters.java.
boolean com.google.ortools.bop.BopParameters.getUseSymmetry | ( | ) |
If true, find and exploit the eventual symmetries of the problem. TODO(user): turn this on by default once the symmetry finder becomes fast enough to be negligeable for most problem. Or at least support a time limit.
optional bool use_symmetry = 17 [default = false];
Implements com.google.ortools.bop.BopParametersOrBuilder.
Definition at line 898 of file BopParameters.java.
boolean com.google.ortools.bop.BopParameters.getUseTranspositionTableInLs | ( | ) |
Whether we use an hash set during the LS to avoid exploring more than once the "same" state. Note that because the underlying SAT solver may learn information in the middle of the LS, this may make the LS slightly less "complete", but it should be faster.
optional bool use_transposition_table_in_ls = 22 [default = true];
Implements com.google.ortools.bop.BopParametersOrBuilder.
Definition at line 1026 of file BopParameters.java.
boolean com.google.ortools.bop.BopParameters.hasComputeEstimatedImpact | ( | ) |
Compute estimated impact at each iteration when true; only once when false.
optional bool compute_estimated_impact = 3 [default = true];
Implements com.google.ortools.bop.BopParametersOrBuilder.
Definition at line 538 of file BopParameters.java.
boolean com.google.ortools.bop.BopParameters.hasDecomposedProblemMinTimeInSeconds | ( | ) |
HACK. To avoid spending too little time on small problems, spend at least this time solving each of the decomposed sub-problem. This only make sense if num_bop_solvers_used_by_decomposition is greater than 1 so that the overhead can be "absorbed" by the other threads.
optional double decomposed_problem_min_time_in_seconds = 36 [default = 0];
Implements com.google.ortools.bop.BopParametersOrBuilder.
Definition at line 1379 of file BopParameters.java.
boolean com.google.ortools.bop.BopParameters.hasDecomposerNumVariablesThreshold | ( | ) |
Only try to decompose the problem when the number of variables is greater than the threshold.
optional int32 decomposer_num_variables_threshold = 30 [default = 50];
Implements com.google.ortools.bop.BopParametersOrBuilder.
Definition at line 1317 of file BopParameters.java.
boolean com.google.ortools.bop.BopParameters.hasDefaultSolverOptimizerSets | ( | ) |
optional string default_solver_optimizer_sets = 33 [default = "methods:{type:LOCAL_SEARCH } methods:{type:RANDOM_FIRST_SOLUTION } methods:{type:LINEAR_RELAXATION } methods:{type:LP_FIRST_SOLUTION } methods:{type:OBJECTIVE_FIRST_SOLUTION } methods:{type:USER_GUIDED_FIRST_SOLUTION } methods:{type:RANDOM_CONSTRAINT_LNS_GUIDED_BY_LP } methods:{type:RANDOM_VARIABLE_LNS_GUIDED_BY_LP } methods:{type:RELATION_GRAPH_LNS } methods:{type:RELATION_GRAPH_LNS_GUIDED_BY_LP } methods:{type:RANDOM_CONSTRAINT_LNS } methods:{type:RANDOM_VARIABLE_LNS } methods:{type:SAT_CORE_BASED } methods:{type:COMPLETE_LNS } "];
Implements com.google.ortools.bop.BopParametersOrBuilder.
Definition at line 1221 of file BopParameters.java.
boolean com.google.ortools.bop.BopParameters.hasExploitSymmetryInSatFirstSolution | ( | ) |
If true, find and exploit symmetries in proving satisfiability in the first problem. This feature is experimental. On some problems, computing symmetries may run forever. You may also run into unforseen problems as this feature was not extensively tested.
optional bool exploit_symmetry_in_sat_first_solution = 40 [default = false];
Implements com.google.ortools.bop.BopParametersOrBuilder.
Definition at line 917 of file BopParameters.java.
boolean com.google.ortools.bop.BopParameters.hasGuidedSatConflictsChunk | ( | ) |
The first solutions based on guided SAT will work in chunk of that many conflicts at the time. This allows to simulate parallelism between the different guiding strategy on a single core.
optional int32 guided_sat_conflicts_chunk = 34 [default = 1000];
Implements com.google.ortools.bop.BopParametersOrBuilder.
Definition at line 1411 of file BopParameters.java.
int com.google.ortools.bop.BopParameters.hashCode | ( | ) |
Definition at line 1949 of file BopParameters.java.
boolean com.google.ortools.bop.BopParameters.hasLogSearchProgress | ( | ) |
Whether the solver should log the search progress to LOG(INFO).
optional bool log_search_progress = 14 [default = false];
Implements com.google.ortools.bop.BopParametersOrBuilder.
Definition at line 511 of file BopParameters.java.
boolean com.google.ortools.bop.BopParameters.hasLpMaxDeterministicTime | ( | ) |
The max deterministic time given to the LP solver each time it is called. If this is not enough to solve the LP at hand, it will simply be called again later (and the solve will resume from where it stopped).
optional double lp_max_deterministic_time = 37 [default = 1];
Implements com.google.ortools.bop.BopParametersOrBuilder.
Definition at line 352 of file BopParameters.java.
boolean com.google.ortools.bop.BopParameters.hasMaxDeterministicTime | ( | ) |
Maximum time allowed in deterministic time to solve a problem. The deterministic time should be correlated with the real time used by the solver, the time unit being roughly the order of magnitude of a second. The counter will starts as soon as SetParameters() or SolveWithTimeLimit() is called.
optional double max_deterministic_time = 27 [default = inf];
Implements com.google.ortools.bop.BopParametersOrBuilder.
Definition at line 319 of file BopParameters.java.
boolean com.google.ortools.bop.BopParameters.hasMaxLpSolveForFeasibilityProblems | ( | ) |
The maximum number of time the LP solver will run to feasibility for pure feasibility problems (with a constant-valued objective function). Set this to a small value, e.g., 1, if fractional solutions offer useful guidance to other solvers in the portfolio. A negative value means no limit.
optional int32 max_lp_solve_for_feasibility_problems = 41 [default = 0];
Implements com.google.ortools.bop.BopParametersOrBuilder.
Definition at line 1443 of file BopParameters.java.
boolean com.google.ortools.bop.BopParameters.hasMaxNumberOfBacktracksInLs | ( | ) |
Maximum number of backtracks times the number of variables in Local Search, ie. max num backtracks == max_number_of_backtracks_in_ls / num variables.
optional int64 max_number_of_backtracks_in_ls = 11 [default = 100000000];
Implements com.google.ortools.bop.BopParametersOrBuilder.
Definition at line 767 of file BopParameters.java.
boolean com.google.ortools.bop.BopParameters.hasMaxNumberOfConflictsForQuickCheck | ( | ) |
The number of conflicts the SAT solver has to solve a random LNS subproblem for the quick check of infeasibility.
optional int32 max_number_of_conflicts_for_quick_check = 16 [default = 10];
Implements com.google.ortools.bop.BopParametersOrBuilder.
Definition at line 850 of file BopParameters.java.
boolean com.google.ortools.bop.BopParameters.hasMaxNumberOfConflictsInRandomLns | ( | ) |
The number of conflicts the SAT solver has to solve a random LNS subproblem.
optional int32 max_number_of_conflicts_in_random_lns = 9 [default = 2500];
Implements com.google.ortools.bop.BopParametersOrBuilder.
Definition at line 711 of file BopParameters.java.
boolean com.google.ortools.bop.BopParameters.hasMaxNumberOfConflictsInRandomSolutionGeneration | ( | ) |
The number of conflicts the SAT solver has to generate a random solution.
optional int32 max_number_of_conflicts_in_random_solution_generation = 20 [default = 500];
Implements com.google.ortools.bop.BopParametersOrBuilder.
Definition at line 948 of file BopParameters.java.
boolean com.google.ortools.bop.BopParameters.hasMaxNumberOfConsecutiveFailingOptimizerCalls | ( | ) |
Maximum number of consecutive optimizer calls without improving the current solution. If this number is reached, the search will be aborted. Note that this parameter only applies when an initial solution has been found or is provided. Also note that there is no limit to the number of calls, when the parameter is not set.
optional int32 max_number_of_consecutive_failing_optimizer_calls = 35;
Implements com.google.ortools.bop.BopParametersOrBuilder.
Definition at line 385 of file BopParameters.java.
boolean com.google.ortools.bop.BopParameters.hasMaxNumberOfExploredAssignmentsPerTryInLs | ( | ) |
The maximum number of assignments the Local Search iterates on during one try. Note that if the Local Search is called again on the same solution it will not restart from scratch but will iterate on the next max_number_of_explored_assignments_per_try_in_ls assignments.
optional int64 max_number_of_explored_assignments_per_try_in_ls = 21 [default = 10000];
Implements com.google.ortools.bop.BopParametersOrBuilder.
Definition at line 978 of file BopParameters.java.
boolean com.google.ortools.bop.BopParameters.hasMaxNumBrokenConstraintsInLs | ( | ) |
Abort the LS search tree as soon as strictly more than this number of constraints are broken. The default is a large value which basically disable this heuristic.
optional int32 max_num_broken_constraints_in_ls = 38 [default = 2147483647];
Implements com.google.ortools.bop.BopParametersOrBuilder.
Definition at line 482 of file BopParameters.java.
boolean com.google.ortools.bop.BopParameters.hasMaxNumDecisionsInLs | ( | ) |
Maximum number of cascading decisions the solver might use to repair the current solution in the LS.
optional int32 max_num_decisions_in_ls = 2 [default = 4];
Implements com.google.ortools.bop.BopParametersOrBuilder.
Definition at line 452 of file BopParameters.java.
boolean com.google.ortools.bop.BopParameters.hasMaxTimeInSeconds | ( | ) |
Maximum time allowed in seconds to solve a problem. The counter will starts as soon as Solve() is called.
optional double max_time_in_seconds = 1 [default = inf];
Implements com.google.ortools.bop.BopParametersOrBuilder.
Definition at line 287 of file BopParameters.java.
boolean com.google.ortools.bop.BopParameters.hasNumberOfSolvers | ( | ) |
The number of solvers used to run Bop. Note that one thread will be created per solver. The type of communication between solvers is specified by the synchronization_type parameter.
optional int32 number_of_solvers = 24 [default = 1];
Implements com.google.ortools.bop.BopParametersOrBuilder.
Definition at line 1101 of file BopParameters.java.
boolean com.google.ortools.bop.BopParameters.hasNumBopSolversUsedByDecomposition | ( | ) |
The number of BopSolver created (thread pool workers) used by the integral solver to solve a decomposed problem. TODO(user): Merge this with the number_of_solvers parameter.
optional int32 num_bop_solvers_used_by_decomposition = 31 [default = 1];
Implements com.google.ortools.bop.BopParametersOrBuilder.
Definition at line 1347 of file BopParameters.java.
boolean com.google.ortools.bop.BopParameters.hasNumRandomLnsTries | ( | ) |
Number of tries in the random lns.
optional int32 num_random_lns_tries = 10 [default = 1];
Implements com.google.ortools.bop.BopParametersOrBuilder.
Definition at line 739 of file BopParameters.java.
boolean com.google.ortools.bop.BopParameters.hasNumRelaxedVars | ( | ) |
Number of variables to relax in the exhaustive Large Neighborhood Search.
optional int32 num_relaxed_vars = 8 [default = 10];
Implements com.google.ortools.bop.BopParametersOrBuilder.
Definition at line 683 of file BopParameters.java.
boolean com.google.ortools.bop.BopParameters.hasPruneSearchTree | ( | ) |
Avoid exploring both branches (b, a, ...) and (a, b, ...).
optional bool prune_search_tree = 4 [default = false];
Implements com.google.ortools.bop.BopParametersOrBuilder.
Definition at line 565 of file BopParameters.java.
boolean com.google.ortools.bop.BopParameters.hasRandomSeed | ( | ) |
The seed used to initialize the random generator. TODO(user): Some of our client test fail depending on this value! we need to fix them and ideally randomize our behavior from on test to the next so that this doesn't happen in the future.
optional int32 random_seed = 7 [default = 8];
Implements com.google.ortools.bop.BopParametersOrBuilder.
Definition at line 652 of file BopParameters.java.
boolean com.google.ortools.bop.BopParameters.hasRelativeGapLimit | ( | ) |
Limit used to stop the optimization as soon as the relative gap is smaller than the given value. The relative gap is defined as: abs(solution_cost - best_bound) / max(abs(solution_cost), abs(best_bound)).
optional double relative_gap_limit = 28 [default = 0.0001];
Implements com.google.ortools.bop.BopParametersOrBuilder.
Definition at line 420 of file BopParameters.java.
boolean com.google.ortools.bop.BopParameters.hasSortConstraintsByNumTerms | ( | ) |
Sort constraints by increasing total number of terms instead of number of contributing terms.
optional bool sort_constraints_by_num_terms = 5 [default = false];
Implements com.google.ortools.bop.BopParametersOrBuilder.
Definition at line 593 of file BopParameters.java.
boolean com.google.ortools.bop.BopParameters.hasSynchronizationType | ( | ) |
optional .operations_research.bop.BopParameters.ThreadSynchronizationType synchronization_type = 25 [default = NO_SYNCHRONIZATION];
Implements com.google.ortools.bop.BopParametersOrBuilder.
Definition at line 1125 of file BopParameters.java.
boolean com.google.ortools.bop.BopParameters.hasUseLearnedBinaryClausesInLp | ( | ) |
Whether we use the learned binary clauses in the Linear Relaxation.
optional bool use_learned_binary_clauses_in_lp = 23 [default = true];
Implements com.google.ortools.bop.BopParametersOrBuilder.
Definition at line 1072 of file BopParameters.java.
boolean com.google.ortools.bop.BopParameters.hasUseLpLns | ( | ) |
Use Large Neighborhood Search based on the LP relaxation.
optional bool use_lp_lns = 12 [default = true];
Implements com.google.ortools.bop.BopParametersOrBuilder.
Definition at line 795 of file BopParameters.java.
boolean com.google.ortools.bop.BopParameters.hasUseLpStrongBranching | ( | ) |
Use strong branching in the linear relaxation optimizer. The strong branching is a what-if analysis on each variable v, i.e. compute the best bound when v is assigned to true, compute the best bound when v is assigned to false, and then use those best bounds to improve the overall best bound. This is useful to improve the best_bound, but also to fix some variables during search. Note that using probing might be time consuming as it runs the LP solver 2 * num_variables times.
optional bool use_lp_strong_branching = 29 [default = false];
Implements com.google.ortools.bop.BopParametersOrBuilder.
Definition at line 1281 of file BopParameters.java.
boolean com.google.ortools.bop.BopParameters.hasUsePotentialOneFlipRepairsInLs | ( | ) |
Whether we keep a list of variable that can potentially repair in one flip all the current infeasible constraints (such variable must at least appear in all the infeasible constraints for this to happen).
optional bool use_potential_one_flip_repairs_in_ls = 39 [default = false];
Implements com.google.ortools.bop.BopParametersOrBuilder.
Definition at line 1043 of file BopParameters.java.
boolean com.google.ortools.bop.BopParameters.hasUseRandomLns | ( | ) |
Use the random Large Neighborhood Search instead of the exhaustive one.
optional bool use_random_lns = 6 [default = true];
Implements com.google.ortools.bop.BopParametersOrBuilder.
Definition at line 621 of file BopParameters.java.
boolean com.google.ortools.bop.BopParameters.hasUseSatToChooseLnsNeighbourhood | ( | ) |
Whether we use sat propagation to choose the lns neighbourhood.
optional bool use_sat_to_choose_lns_neighbourhood = 15 [default = true];
Implements com.google.ortools.bop.BopParametersOrBuilder.
Definition at line 822 of file BopParameters.java.
boolean com.google.ortools.bop.BopParameters.hasUseSymmetry | ( | ) |
If true, find and exploit the eventual symmetries of the problem. TODO(user): turn this on by default once the symmetry finder becomes fast enough to be negligeable for most problem. Or at least support a time limit.
optional bool use_symmetry = 17 [default = false];
Implements com.google.ortools.bop.BopParametersOrBuilder.
Definition at line 882 of file BopParameters.java.
boolean com.google.ortools.bop.BopParameters.hasUseTranspositionTableInLs | ( | ) |
Whether we use an hash set during the LS to avoid exploring more than once the "same" state. Note that because the underlying SAT solver may learn information in the middle of the LS, this may make the LS slightly less "complete", but it should be faster.
optional bool use_transposition_table_in_ls = 22 [default = true];
Implements com.google.ortools.bop.BopParametersOrBuilder.
Definition at line 1011 of file BopParameters.java.
|
protected |
Definition at line 73 of file BopParameters.java.
final boolean com.google.ortools.bop.BopParameters.isInitialized | ( | ) |
Definition at line 1464 of file BopParameters.java.
|
static |
Definition at line 2202 of file BopParameters.java.
|
static |
Definition at line 2205 of file BopParameters.java.
Builder com.google.ortools.bop.BopParameters.newBuilderForType | ( | ) |
Definition at line 2201 of file BopParameters.java.
|
protected |
Definition at line 2215 of file BopParameters.java.
|
static |
Definition at line 2173 of file BopParameters.java.
|
static |
Definition at line 2179 of file BopParameters.java.
|
static |
Definition at line 2150 of file BopParameters.java.
|
static |
Definition at line 2154 of file BopParameters.java.
|
static |
Definition at line 2139 of file BopParameters.java.
|
static |
Definition at line 2144 of file BopParameters.java.
|
static |
Definition at line 2186 of file BopParameters.java.
|
static |
Definition at line 2192 of file BopParameters.java.
|
static |
Definition at line 2160 of file BopParameters.java.
|
static |
Definition at line 2165 of file BopParameters.java.
|
static |
Definition at line 2128 of file BopParameters.java.
|
static |
Definition at line 2133 of file BopParameters.java.
|
static |
Definition at line 5579 of file BopParameters.java.
Builder com.google.ortools.bop.BopParameters.toBuilder | ( | ) |
Definition at line 2209 of file BopParameters.java.
void com.google.ortools.bop.BopParameters.writeTo | ( | com.google.protobuf.CodedOutputStream | output | ) | throws java.io.IOException |
Definition at line 1474 of file BopParameters.java.
|
static |
Definition at line 527 of file BopParameters.java.
|
static |
Definition at line 1365 of file BopParameters.java.
|
static |
Definition at line 1305 of file BopParameters.java.
|
static |
Definition at line 1213 of file BopParameters.java.
|
static |
Definition at line 902 of file BopParameters.java.
|
static |
Definition at line 1398 of file BopParameters.java.
|
static |
Definition at line 500 of file BopParameters.java.
|
static |
Definition at line 339 of file BopParameters.java.
|
static |
Definition at line 304 of file BopParameters.java.
|
static |
Definition at line 1429 of file BopParameters.java.
|
static |
Definition at line 469 of file BopParameters.java.
|
static |
Definition at line 440 of file BopParameters.java.
|
static |
Definition at line 755 of file BopParameters.java.
|
static |
Definition at line 838 of file BopParameters.java.
|
static |
Definition at line 699 of file BopParameters.java.
|
static |
Definition at line 937 of file BopParameters.java.
|
static |
Definition at line 370 of file BopParameters.java.
|
static |
Definition at line 964 of file BopParameters.java.
|
static |
Definition at line 275 of file BopParameters.java.
|
static |
Definition at line 1334 of file BopParameters.java.
|
static |
Definition at line 728 of file BopParameters.java.
|
static |
Definition at line 672 of file BopParameters.java.
|
static |
Definition at line 1088 of file BopParameters.java.
|
static |
Definition at line 554 of file BopParameters.java.
|
static |
Definition at line 637 of file BopParameters.java.
|
static |
Definition at line 405 of file BopParameters.java.
|
static |
Definition at line 1137 of file BopParameters.java.
|
static |
Definition at line 581 of file BopParameters.java.
|
static |
Definition at line 1119 of file BopParameters.java.
|
static |
Definition at line 1061 of file BopParameters.java.
|
static |
Definition at line 784 of file BopParameters.java.
|
static |
Definition at line 1262 of file BopParameters.java.
|
static |
Definition at line 1030 of file BopParameters.java.
|
static |
Definition at line 610 of file BopParameters.java.
|
static |
Definition at line 811 of file BopParameters.java.
|
static |
Definition at line 867 of file BopParameters.java.
|
static |
Definition at line 997 of file BopParameters.java.