![]() |
Google OR-Tools v9.12
a fast and portable software suite for combinatorial optimization
|
Static Public Member Functions | |
static final com.google.protobuf.Descriptors.Descriptor | getDescriptor () |
Protected Member Functions | |
com.google.protobuf.GeneratedMessage.FieldAccessorTable | internalGetFieldAccessorTable () |
The response returned by a solver trying to solve a CpModelProto. Next id: 32
Protobuf type operations_research.sat.CpSolverResponse
Definition at line 1290 of file CpSolverResponse.java.
Builder com.google.ortools.sat.CpSolverResponse.Builder.addAdditionalSolutions | ( | com.google.ortools.sat.CpSolverSolution | value | ) |
If the parameter fill_additional_solutions_in_response is set, then we copy all the solutions from our internal solution pool here. Note that the one returned in the solution field will likely appear here too. Do not rely on the solutions order as it depends on our internal representation (after postsolve).
repeated .operations_research.sat.CpSolverSolution additional_solutions = 27;
Definition at line 2291 of file CpSolverResponse.java.
Builder com.google.ortools.sat.CpSolverResponse.Builder.addAdditionalSolutions | ( | com.google.ortools.sat.CpSolverSolution.Builder | builderForValue | ) |
If the parameter fill_additional_solutions_in_response is set, then we copy all the solutions from our internal solution pool here. Note that the one returned in the solution field will likely appear here too. Do not rely on the solutions order as it depends on our internal representation (after postsolve).
repeated .operations_research.sat.CpSolverSolution additional_solutions = 27;
Definition at line 2342 of file CpSolverResponse.java.
Builder com.google.ortools.sat.CpSolverResponse.Builder.addAdditionalSolutions | ( | int | index, |
com.google.ortools.sat.CpSolverSolution | value ) |
If the parameter fill_additional_solutions_in_response is set, then we copy all the solutions from our internal solution pool here. Note that the one returned in the solution field will likely appear here too. Do not rely on the solutions order as it depends on our internal representation (after postsolve).
repeated .operations_research.sat.CpSolverSolution additional_solutions = 27;
Definition at line 2316 of file CpSolverResponse.java.
Builder com.google.ortools.sat.CpSolverResponse.Builder.addAdditionalSolutions | ( | int | index, |
com.google.ortools.sat.CpSolverSolution.Builder | builderForValue ) |
If the parameter fill_additional_solutions_in_response is set, then we copy all the solutions from our internal solution pool here. Note that the one returned in the solution field will likely appear here too. Do not rely on the solutions order as it depends on our internal representation (after postsolve).
repeated .operations_research.sat.CpSolverSolution additional_solutions = 27;
Definition at line 2365 of file CpSolverResponse.java.
com.google.ortools.sat.CpSolverSolution.Builder com.google.ortools.sat.CpSolverResponse.Builder.addAdditionalSolutionsBuilder | ( | ) |
If the parameter fill_additional_solutions_in_response is set, then we copy all the solutions from our internal solution pool here. Note that the one returned in the solution field will likely appear here too. Do not rely on the solutions order as it depends on our internal representation (after postsolve).
repeated .operations_research.sat.CpSolverSolution additional_solutions = 27;
Definition at line 2511 of file CpSolverResponse.java.
com.google.ortools.sat.CpSolverSolution.Builder com.google.ortools.sat.CpSolverResponse.Builder.addAdditionalSolutionsBuilder | ( | int | index | ) |
If the parameter fill_additional_solutions_in_response is set, then we copy all the solutions from our internal solution pool here. Note that the one returned in the solution field will likely appear here too. Do not rely on the solutions order as it depends on our internal representation (after postsolve).
repeated .operations_research.sat.CpSolverSolution additional_solutions = 27;
Definition at line 2527 of file CpSolverResponse.java.
Builder com.google.ortools.sat.CpSolverResponse.Builder.addAllAdditionalSolutions | ( | java.lang.Iterable<? extends com.google.ortools.sat.CpSolverSolution > | values | ) |
If the parameter fill_additional_solutions_in_response is set, then we copy all the solutions from our internal solution pool here. Note that the one returned in the solution field will likely appear here too. Do not rely on the solutions order as it depends on our internal representation (after postsolve).
repeated .operations_research.sat.CpSolverSolution additional_solutions = 27;
Definition at line 2388 of file CpSolverResponse.java.
Builder com.google.ortools.sat.CpSolverResponse.Builder.addAllSolution | ( | java.lang.Iterable<? extends java.lang.Long > | values | ) |
A feasible solution to the given problem. Depending on the returned status it may be optimal or just feasible. This is in one-to-one correspondence with a CpModelProto::variables repeated field and list the values of all the variables.
repeated int64 solution = 2;
values | The solution to add. |
Definition at line 2031 of file CpSolverResponse.java.
Builder com.google.ortools.sat.CpSolverResponse.Builder.addAllSufficientAssumptionsForInfeasibility | ( | java.lang.Iterable<? extends java.lang.Integer > | values | ) |
A subset of the model "assumptions" field. This will only be filled if the status is INFEASIBLE. This subset of assumption will be enough to still get an infeasible problem. This is related to what is called the irreducible inconsistent subsystem or IIS. Except one is only concerned by the provided assumptions. There is also no guarantee that we return an irreducible (aka minimal subset). However, this is based on SAT explanation and there is a good chance it is not too large. If you really want a minimal subset, a possible way to get one is by changing your model to minimize the number of assumptions at false, but this is likely an harder problem to solve. Important: Currently, this is minimized only in single-thread and if the problem is not an optimization problem, otherwise, it will always include all the assumptions. TODO(user): Allows for returning multiple core at once.
repeated int32 sufficient_assumptions_for_infeasibility = 23;
values | The sufficientAssumptionsForInfeasibility to add. |
Definition at line 3341 of file CpSolverResponse.java.
Builder com.google.ortools.sat.CpSolverResponse.Builder.addAllTightenedVariables | ( | java.lang.Iterable<? extends com.google.ortools.sat.IntegerVariableProto > | values | ) |
Advanced usage. If the option fill_tightened_domains_in_response is set, then this field will be a copy of the CpModelProto.variables where each domain has been reduced using the information the solver was able to derive. Note that this is only filled with the info derived during a normal search and we do not have any dedicated algorithm to improve it. Warning: if you didn't set keep_all_feasible_solutions_in_presolve, then these domains might exclude valid feasible solution. Otherwise for a feasibility problem, all feasible solution should be there. Warning: For an optimization problem, these will correspond to valid bounds for the problem of finding an improving solution to the best one found so far. It might be better to solve a feasibility version if one just want to explore the feasible region.
repeated .operations_research.sat.IntegerVariableProto tightened_variables = 21;
Definition at line 2890 of file CpSolverResponse.java.
Builder com.google.ortools.sat.CpSolverResponse.Builder.addSolution | ( | long | value | ) |
A feasible solution to the given problem. Depending on the returned status it may be optimal or just feasible. This is in one-to-one correspondence with a CpModelProto::variables repeated field and list the values of all the variables.
repeated int64 solution = 2;
value | The solution to add. |
Definition at line 2011 of file CpSolverResponse.java.
Builder com.google.ortools.sat.CpSolverResponse.Builder.addSufficientAssumptionsForInfeasibility | ( | int | value | ) |
A subset of the model "assumptions" field. This will only be filled if the status is INFEASIBLE. This subset of assumption will be enough to still get an infeasible problem. This is related to what is called the irreducible inconsistent subsystem or IIS. Except one is only concerned by the provided assumptions. There is also no guarantee that we return an irreducible (aka minimal subset). However, this is based on SAT explanation and there is a good chance it is not too large. If you really want a minimal subset, a possible way to get one is by changing your model to minimize the number of assumptions at false, but this is likely an harder problem to solve. Important: Currently, this is minimized only in single-thread and if the problem is not an optimization problem, otherwise, it will always include all the assumptions. TODO(user): Allows for returning multiple core at once.
repeated int32 sufficient_assumptions_for_infeasibility = 23;
value | The sufficientAssumptionsForInfeasibility to add. |
Definition at line 3306 of file CpSolverResponse.java.
Builder com.google.ortools.sat.CpSolverResponse.Builder.addTightenedVariables | ( | com.google.ortools.sat.IntegerVariableProto | value | ) |
Advanced usage. If the option fill_tightened_domains_in_response is set, then this field will be a copy of the CpModelProto.variables where each domain has been reduced using the information the solver was able to derive. Note that this is only filled with the info derived during a normal search and we do not have any dedicated algorithm to improve it. Warning: if you didn't set keep_all_feasible_solutions_in_presolve, then these domains might exclude valid feasible solution. Otherwise for a feasibility problem, all feasible solution should be there. Warning: For an optimization problem, these will correspond to valid bounds for the problem of finding an improving solution to the best one found so far. It might be better to solve a feasibility version if one just want to explore the feasible region.
repeated .operations_research.sat.IntegerVariableProto tightened_variables = 21;
Definition at line 2753 of file CpSolverResponse.java.
Builder com.google.ortools.sat.CpSolverResponse.Builder.addTightenedVariables | ( | com.google.ortools.sat.IntegerVariableProto.Builder | builderForValue | ) |
Advanced usage. If the option fill_tightened_domains_in_response is set, then this field will be a copy of the CpModelProto.variables where each domain has been reduced using the information the solver was able to derive. Note that this is only filled with the info derived during a normal search and we do not have any dedicated algorithm to improve it. Warning: if you didn't set keep_all_feasible_solutions_in_presolve, then these domains might exclude valid feasible solution. Otherwise for a feasibility problem, all feasible solution should be there. Warning: For an optimization problem, these will correspond to valid bounds for the problem of finding an improving solution to the best one found so far. It might be better to solve a feasibility version if one just want to explore the feasible region.
repeated .operations_research.sat.IntegerVariableProto tightened_variables = 21;
Definition at line 2824 of file CpSolverResponse.java.
Builder com.google.ortools.sat.CpSolverResponse.Builder.addTightenedVariables | ( | int | index, |
com.google.ortools.sat.IntegerVariableProto | value ) |
Advanced usage. If the option fill_tightened_domains_in_response is set, then this field will be a copy of the CpModelProto.variables where each domain has been reduced using the information the solver was able to derive. Note that this is only filled with the info derived during a normal search and we do not have any dedicated algorithm to improve it. Warning: if you didn't set keep_all_feasible_solutions_in_presolve, then these domains might exclude valid feasible solution. Otherwise for a feasibility problem, all feasible solution should be there. Warning: For an optimization problem, these will correspond to valid bounds for the problem of finding an improving solution to the best one found so far. It might be better to solve a feasibility version if one just want to explore the feasible region.
repeated .operations_research.sat.IntegerVariableProto tightened_variables = 21;
Definition at line 2788 of file CpSolverResponse.java.
Builder com.google.ortools.sat.CpSolverResponse.Builder.addTightenedVariables | ( | int | index, |
com.google.ortools.sat.IntegerVariableProto.Builder | builderForValue ) |
Advanced usage. If the option fill_tightened_domains_in_response is set, then this field will be a copy of the CpModelProto.variables where each domain has been reduced using the information the solver was able to derive. Note that this is only filled with the info derived during a normal search and we do not have any dedicated algorithm to improve it. Warning: if you didn't set keep_all_feasible_solutions_in_presolve, then these domains might exclude valid feasible solution. Otherwise for a feasibility problem, all feasible solution should be there. Warning: For an optimization problem, these will correspond to valid bounds for the problem of finding an improving solution to the best one found so far. It might be better to solve a feasibility version if one just want to explore the feasible region.
repeated .operations_research.sat.IntegerVariableProto tightened_variables = 21;
Definition at line 2857 of file CpSolverResponse.java.
com.google.ortools.sat.IntegerVariableProto.Builder com.google.ortools.sat.CpSolverResponse.Builder.addTightenedVariablesBuilder | ( | ) |
Advanced usage. If the option fill_tightened_domains_in_response is set, then this field will be a copy of the CpModelProto.variables where each domain has been reduced using the information the solver was able to derive. Note that this is only filled with the info derived during a normal search and we do not have any dedicated algorithm to improve it. Warning: if you didn't set keep_all_feasible_solutions_in_presolve, then these domains might exclude valid feasible solution. Otherwise for a feasibility problem, all feasible solution should be there. Warning: For an optimization problem, these will correspond to valid bounds for the problem of finding an improving solution to the best one found so far. It might be better to solve a feasibility version if one just want to explore the feasible region.
repeated .operations_research.sat.IntegerVariableProto tightened_variables = 21;
Definition at line 3073 of file CpSolverResponse.java.
com.google.ortools.sat.IntegerVariableProto.Builder com.google.ortools.sat.CpSolverResponse.Builder.addTightenedVariablesBuilder | ( | int | index | ) |
Advanced usage. If the option fill_tightened_domains_in_response is set, then this field will be a copy of the CpModelProto.variables where each domain has been reduced using the information the solver was able to derive. Note that this is only filled with the info derived during a normal search and we do not have any dedicated algorithm to improve it. Warning: if you didn't set keep_all_feasible_solutions_in_presolve, then these domains might exclude valid feasible solution. Otherwise for a feasibility problem, all feasible solution should be there. Warning: For an optimization problem, these will correspond to valid bounds for the problem of finding an improving solution to the best one found so far. It might be better to solve a feasibility version if one just want to explore the feasible region.
repeated .operations_research.sat.IntegerVariableProto tightened_variables = 21;
Definition at line 3099 of file CpSolverResponse.java.
com.google.ortools.sat.CpSolverResponse com.google.ortools.sat.CpSolverResponse.Builder.build | ( | ) |
Definition at line 1384 of file CpSolverResponse.java.
com.google.ortools.sat.CpSolverResponse com.google.ortools.sat.CpSolverResponse.Builder.buildPartial | ( | ) |
Definition at line 1393 of file CpSolverResponse.java.
Builder com.google.ortools.sat.CpSolverResponse.Builder.clear | ( | ) |
Definition at line 1326 of file CpSolverResponse.java.
Builder com.google.ortools.sat.CpSolverResponse.Builder.clearAdditionalSolutions | ( | ) |
If the parameter fill_additional_solutions_in_response is set, then we copy all the solutions from our internal solution pool here. Note that the one returned in the solution field will likely appear here too. Do not rely on the solutions order as it depends on our internal representation (after postsolve).
repeated .operations_research.sat.CpSolverSolution additional_solutions = 27;
Definition at line 2412 of file CpSolverResponse.java.
Builder com.google.ortools.sat.CpSolverResponse.Builder.clearBestObjectiveBound | ( | ) |
Only make sense for an optimization problem. A proven lower-bound on the objective for a minimization problem, or a proven upper-bound for a maximization problem.
double best_objective_bound = 4;
Definition at line 2154 of file CpSolverResponse.java.
Builder com.google.ortools.sat.CpSolverResponse.Builder.clearDeterministicTime | ( | ) |
double deterministic_time = 17;
Definition at line 4030 of file CpSolverResponse.java.
Builder com.google.ortools.sat.CpSolverResponse.Builder.clearGapIntegral | ( | ) |
The integral of log(1 + absolute_objective_gap) over time.
double gap_integral = 22;
Definition at line 4074 of file CpSolverResponse.java.
Builder com.google.ortools.sat.CpSolverResponse.Builder.clearInnerObjectiveLowerBound | ( | ) |
Advanced usage. A lower bound on the inner integer expression of the objective. This is either a bound on the expression in the returned integer_objective or on the integer expression of the original objective if the problem already has an integer objective.
int64 inner_objective_lower_bound = 29;
Definition at line 3610 of file CpSolverResponse.java.
Builder com.google.ortools.sat.CpSolverResponse.Builder.clearIntegerObjective | ( | ) |
Contains the integer objective optimized internally. This is only filled if the problem had a floating point objective, and on the final response, not the ones given to callbacks.
.operations_research.sat.CpObjectiveProto integer_objective = 28;
Definition at line 3494 of file CpSolverResponse.java.
Builder com.google.ortools.sat.CpSolverResponse.Builder.clearNumBinaryPropagations | ( | ) |
int64 num_binary_propagations = 13;
Definition at line 3826 of file CpSolverResponse.java.
Builder com.google.ortools.sat.CpSolverResponse.Builder.clearNumBooleans | ( | ) |
int64 num_booleans = 10;
Definition at line 3698 of file CpSolverResponse.java.
Builder com.google.ortools.sat.CpSolverResponse.Builder.clearNumBranches | ( | ) |
int64 num_branches = 12;
Definition at line 3794 of file CpSolverResponse.java.
Builder com.google.ortools.sat.CpSolverResponse.Builder.clearNumConflicts | ( | ) |
int64 num_conflicts = 11;
Definition at line 3762 of file CpSolverResponse.java.
Builder com.google.ortools.sat.CpSolverResponse.Builder.clearNumFixedBooleans | ( | ) |
int64 num_fixed_booleans = 31;
Definition at line 3730 of file CpSolverResponse.java.
Builder com.google.ortools.sat.CpSolverResponse.Builder.clearNumIntegerPropagations | ( | ) |
int64 num_integer_propagations = 14;
Definition at line 3858 of file CpSolverResponse.java.
Builder com.google.ortools.sat.CpSolverResponse.Builder.clearNumIntegers | ( | ) |
Some statistics about the solve. Important: in multithread, this correspond the statistics of the first subsolver. Which is usually the one with the user defined parameters. Or the default-search if none are specified.
int64 num_integers = 30;
Definition at line 3666 of file CpSolverResponse.java.
Builder com.google.ortools.sat.CpSolverResponse.Builder.clearNumLpIterations | ( | ) |
int64 num_lp_iterations = 25;
Definition at line 3922 of file CpSolverResponse.java.
Builder com.google.ortools.sat.CpSolverResponse.Builder.clearNumRestarts | ( | ) |
int64 num_restarts = 24;
Definition at line 3890 of file CpSolverResponse.java.
Builder com.google.ortools.sat.CpSolverResponse.Builder.clearObjectiveValue | ( | ) |
Only make sense for an optimization problem. The objective value of the returned solution if it is non-empty. If there is no solution, then for a minimization problem, this will be an upper-bound of the objective of any feasible solution, and a lower-bound for a maximization problem.
double objective_value = 3;
Definition at line 2104 of file CpSolverResponse.java.
Builder com.google.ortools.sat.CpSolverResponse.Builder.clearSolution | ( | ) |
A feasible solution to the given problem. Depending on the returned status it may be optimal or just feasible. This is in one-to-one correspondence with a CpModelProto::variables repeated field and list the values of all the variables.
repeated int64 solution = 2;
Definition at line 2051 of file CpSolverResponse.java.
Builder com.google.ortools.sat.CpSolverResponse.Builder.clearSolutionInfo | ( | ) |
Additional information about how the solution was found. It also stores model or parameters errors that caused the model to be invalid.
string solution_info = 20;
Definition at line 4152 of file CpSolverResponse.java.
Builder com.google.ortools.sat.CpSolverResponse.Builder.clearSolveLog | ( | ) |
The solve log will be filled if the parameter log_to_response is set to true.
string solve_log = 26;
Definition at line 4249 of file CpSolverResponse.java.
Builder com.google.ortools.sat.CpSolverResponse.Builder.clearStatus | ( | ) |
The status of the solve.
.operations_research.sat.CpSolverStatus status = 1;
Definition at line 1918 of file CpSolverResponse.java.
Builder com.google.ortools.sat.CpSolverResponse.Builder.clearSufficientAssumptionsForInfeasibility | ( | ) |
A subset of the model "assumptions" field. This will only be filled if the status is INFEASIBLE. This subset of assumption will be enough to still get an infeasible problem. This is related to what is called the irreducible inconsistent subsystem or IIS. Except one is only concerned by the provided assumptions. There is also no guarantee that we return an irreducible (aka minimal subset). However, this is based on SAT explanation and there is a good chance it is not too large. If you really want a minimal subset, a possible way to get one is by changing your model to minimize the number of assumptions at false, but this is likely an harder problem to solve. Important: Currently, this is minimized only in single-thread and if the problem is not an optimization problem, otherwise, it will always include all the assumptions. TODO(user): Allows for returning multiple core at once.
repeated int32 sufficient_assumptions_for_infeasibility = 23;
Definition at line 3376 of file CpSolverResponse.java.
Builder com.google.ortools.sat.CpSolverResponse.Builder.clearTightenedVariables | ( | ) |
Advanced usage. If the option fill_tightened_domains_in_response is set, then this field will be a copy of the CpModelProto.variables where each domain has been reduced using the information the solver was able to derive. Note that this is only filled with the info derived during a normal search and we do not have any dedicated algorithm to improve it. Warning: if you didn't set keep_all_feasible_solutions_in_presolve, then these domains might exclude valid feasible solution. Otherwise for a feasibility problem, all feasible solution should be there. Warning: For an optimization problem, these will correspond to valid bounds for the problem of finding an improving solution to the best one found so far. It might be better to solve a feasibility version if one just want to explore the feasible region.
repeated .operations_research.sat.IntegerVariableProto tightened_variables = 21;
Definition at line 2924 of file CpSolverResponse.java.
Builder com.google.ortools.sat.CpSolverResponse.Builder.clearUserTime | ( | ) |
double user_time = 16;
Definition at line 3998 of file CpSolverResponse.java.
Builder com.google.ortools.sat.CpSolverResponse.Builder.clearWallTime | ( | ) |
The time counted from the beginning of the Solve() call.
double wall_time = 15;
Definition at line 3966 of file CpSolverResponse.java.
com.google.ortools.sat.CpSolverSolution com.google.ortools.sat.CpSolverResponse.Builder.getAdditionalSolutions | ( | int | index | ) |
If the parameter fill_additional_solutions_in_response is set, then we copy all the solutions from our internal solution pool here. Note that the one returned in the solution field will likely appear here too. Do not rely on the solutions order as it depends on our internal representation (after postsolve).
repeated .operations_research.sat.CpSolverSolution additional_solutions = 27;
Implements com.google.ortools.sat.CpSolverResponseOrBuilder.
Definition at line 2223 of file CpSolverResponse.java.
com.google.ortools.sat.CpSolverSolution.Builder com.google.ortools.sat.CpSolverResponse.Builder.getAdditionalSolutionsBuilder | ( | int | index | ) |
If the parameter fill_additional_solutions_in_response is set, then we copy all the solutions from our internal solution pool here. Note that the one returned in the solution field will likely appear here too. Do not rely on the solutions order as it depends on our internal representation (after postsolve).
repeated .operations_research.sat.CpSolverSolution additional_solutions = 27;
Definition at line 2456 of file CpSolverResponse.java.
java.util.List< com.google.ortools.sat.CpSolverSolution.Builder > com.google.ortools.sat.CpSolverResponse.Builder.getAdditionalSolutionsBuilderList | ( | ) |
If the parameter fill_additional_solutions_in_response is set, then we copy all the solutions from our internal solution pool here. Note that the one returned in the solution field will likely appear here too. Do not rely on the solutions order as it depends on our internal representation (after postsolve).
repeated .operations_research.sat.CpSolverSolution additional_solutions = 27;
Definition at line 2545 of file CpSolverResponse.java.
int com.google.ortools.sat.CpSolverResponse.Builder.getAdditionalSolutionsCount | ( | ) |
If the parameter fill_additional_solutions_in_response is set, then we copy all the solutions from our internal solution pool here. Note that the one returned in the solution field will likely appear here too. Do not rely on the solutions order as it depends on our internal representation (after postsolve).
repeated .operations_research.sat.CpSolverSolution additional_solutions = 27;
Implements com.google.ortools.sat.CpSolverResponseOrBuilder.
Definition at line 2204 of file CpSolverResponse.java.
java.util.List< com.google.ortools.sat.CpSolverSolution > com.google.ortools.sat.CpSolverResponse.Builder.getAdditionalSolutionsList | ( | ) |
If the parameter fill_additional_solutions_in_response is set, then we copy all the solutions from our internal solution pool here. Note that the one returned in the solution field will likely appear here too. Do not rely on the solutions order as it depends on our internal representation (after postsolve).
repeated .operations_research.sat.CpSolverSolution additional_solutions = 27;
Implements com.google.ortools.sat.CpSolverResponseOrBuilder.
Definition at line 2185 of file CpSolverResponse.java.
com.google.ortools.sat.CpSolverSolutionOrBuilder com.google.ortools.sat.CpSolverResponse.Builder.getAdditionalSolutionsOrBuilder | ( | int | index | ) |
If the parameter fill_additional_solutions_in_response is set, then we copy all the solutions from our internal solution pool here. Note that the one returned in the solution field will likely appear here too. Do not rely on the solutions order as it depends on our internal representation (after postsolve).
repeated .operations_research.sat.CpSolverSolution additional_solutions = 27;
Implements com.google.ortools.sat.CpSolverResponseOrBuilder.
Definition at line 2472 of file CpSolverResponse.java.
java.util.List<? extends com.google.ortools.sat.CpSolverSolutionOrBuilder > com.google.ortools.sat.CpSolverResponse.Builder.getAdditionalSolutionsOrBuilderList | ( | ) |
If the parameter fill_additional_solutions_in_response is set, then we copy all the solutions from our internal solution pool here. Note that the one returned in the solution field will likely appear here too. Do not rely on the solutions order as it depends on our internal representation (after postsolve).
repeated .operations_research.sat.CpSolverSolution additional_solutions = 27;
Implements com.google.ortools.sat.CpSolverResponseOrBuilder.
Definition at line 2492 of file CpSolverResponse.java.
double com.google.ortools.sat.CpSolverResponse.Builder.getBestObjectiveBound | ( | ) |
Only make sense for an optimization problem. A proven lower-bound on the objective for a minimization problem, or a proven upper-bound for a maximization problem.
double best_objective_bound = 4;
Implements com.google.ortools.sat.CpSolverResponseOrBuilder.
Definition at line 2123 of file CpSolverResponse.java.
com.google.ortools.sat.CpSolverResponse com.google.ortools.sat.CpSolverResponse.Builder.getDefaultInstanceForType | ( | ) |
Definition at line 1379 of file CpSolverResponse.java.
|
static |
Definition at line 1295 of file CpSolverResponse.java.
com.google.protobuf.Descriptors.Descriptor com.google.ortools.sat.CpSolverResponse.Builder.getDescriptorForType | ( | ) |
Definition at line 1374 of file CpSolverResponse.java.
double com.google.ortools.sat.CpSolverResponse.Builder.getDeterministicTime | ( | ) |
double deterministic_time = 17;
Implements com.google.ortools.sat.CpSolverResponseOrBuilder.
Definition at line 4011 of file CpSolverResponse.java.
double com.google.ortools.sat.CpSolverResponse.Builder.getGapIntegral | ( | ) |
The integral of log(1 + absolute_objective_gap) over time.
double gap_integral = 22;
Implements com.google.ortools.sat.CpSolverResponseOrBuilder.
Definition at line 4047 of file CpSolverResponse.java.
long com.google.ortools.sat.CpSolverResponse.Builder.getInnerObjectiveLowerBound | ( | ) |
Advanced usage. A lower bound on the inner integer expression of the objective. This is either a bound on the expression in the returned integer_objective or on the integer expression of the original objective if the problem already has an integer objective.
int64 inner_objective_lower_bound = 29;
Implements com.google.ortools.sat.CpSolverResponseOrBuilder.
Definition at line 3573 of file CpSolverResponse.java.
com.google.ortools.sat.CpObjectiveProto com.google.ortools.sat.CpSolverResponse.Builder.getIntegerObjective | ( | ) |
Contains the integer objective optimized internally. This is only filled if the problem had a floating point objective, and on the final response, not the ones given to callbacks.
.operations_research.sat.CpObjectiveProto integer_objective = 28;
Implements com.google.ortools.sat.CpSolverResponseOrBuilder.
Definition at line 3409 of file CpSolverResponse.java.
com.google.ortools.sat.CpObjectiveProto.Builder com.google.ortools.sat.CpSolverResponse.Builder.getIntegerObjectiveBuilder | ( | ) |
Contains the integer objective optimized internally. This is only filled if the problem had a floating point objective, and on the final response, not the ones given to callbacks.
.operations_research.sat.CpObjectiveProto integer_objective = 28;
Definition at line 3513 of file CpSolverResponse.java.
com.google.ortools.sat.CpObjectiveProtoOrBuilder com.google.ortools.sat.CpSolverResponse.Builder.getIntegerObjectiveOrBuilder | ( | ) |
Contains the integer objective optimized internally. This is only filled if the problem had a floating point objective, and on the final response, not the ones given to callbacks.
.operations_research.sat.CpObjectiveProto integer_objective = 28;
Implements com.google.ortools.sat.CpSolverResponseOrBuilder.
Definition at line 3527 of file CpSolverResponse.java.
long com.google.ortools.sat.CpSolverResponse.Builder.getNumBinaryPropagations | ( | ) |
int64 num_binary_propagations = 13;
Implements com.google.ortools.sat.CpSolverResponseOrBuilder.
Definition at line 3807 of file CpSolverResponse.java.
long com.google.ortools.sat.CpSolverResponse.Builder.getNumBooleans | ( | ) |
int64 num_booleans = 10;
Implements com.google.ortools.sat.CpSolverResponseOrBuilder.
Definition at line 3679 of file CpSolverResponse.java.
long com.google.ortools.sat.CpSolverResponse.Builder.getNumBranches | ( | ) |
int64 num_branches = 12;
Implements com.google.ortools.sat.CpSolverResponseOrBuilder.
Definition at line 3775 of file CpSolverResponse.java.
long com.google.ortools.sat.CpSolverResponse.Builder.getNumConflicts | ( | ) |
int64 num_conflicts = 11;
Implements com.google.ortools.sat.CpSolverResponseOrBuilder.
Definition at line 3743 of file CpSolverResponse.java.
long com.google.ortools.sat.CpSolverResponse.Builder.getNumFixedBooleans | ( | ) |
int64 num_fixed_booleans = 31;
Implements com.google.ortools.sat.CpSolverResponseOrBuilder.
Definition at line 3711 of file CpSolverResponse.java.
long com.google.ortools.sat.CpSolverResponse.Builder.getNumIntegerPropagations | ( | ) |
int64 num_integer_propagations = 14;
Implements com.google.ortools.sat.CpSolverResponseOrBuilder.
Definition at line 3839 of file CpSolverResponse.java.
long com.google.ortools.sat.CpSolverResponse.Builder.getNumIntegers | ( | ) |
Some statistics about the solve. Important: in multithread, this correspond the statistics of the first subsolver. Which is usually the one with the user defined parameters. Or the default-search if none are specified.
int64 num_integers = 30;
Implements com.google.ortools.sat.CpSolverResponseOrBuilder.
Definition at line 3631 of file CpSolverResponse.java.
long com.google.ortools.sat.CpSolverResponse.Builder.getNumLpIterations | ( | ) |
int64 num_lp_iterations = 25;
Implements com.google.ortools.sat.CpSolverResponseOrBuilder.
Definition at line 3903 of file CpSolverResponse.java.
long com.google.ortools.sat.CpSolverResponse.Builder.getNumRestarts | ( | ) |
int64 num_restarts = 24;
Implements com.google.ortools.sat.CpSolverResponseOrBuilder.
Definition at line 3871 of file CpSolverResponse.java.
double com.google.ortools.sat.CpSolverResponse.Builder.getObjectiveValue | ( | ) |
Only make sense for an optimization problem. The objective value of the returned solution if it is non-empty. If there is no solution, then for a minimization problem, this will be an upper-bound of the objective of any feasible solution, and a lower-bound for a maximization problem.
double objective_value = 3;
Implements com.google.ortools.sat.CpSolverResponseOrBuilder.
Definition at line 2071 of file CpSolverResponse.java.
long com.google.ortools.sat.CpSolverResponse.Builder.getSolution | ( | int | index | ) |
A feasible solution to the given problem. Depending on the returned status it may be optimal or just feasible. This is in one-to-one correspondence with a CpModelProto::variables repeated field and list the values of all the variables.
repeated int64 solution = 2;
index | The index of the element to return. |
Implements com.google.ortools.sat.CpSolverResponseOrBuilder.
Definition at line 1974 of file CpSolverResponse.java.
int com.google.ortools.sat.CpSolverResponse.Builder.getSolutionCount | ( | ) |
A feasible solution to the given problem. Depending on the returned status it may be optimal or just feasible. This is in one-to-one correspondence with a CpModelProto::variables repeated field and list the values of all the variables.
repeated int64 solution = 2;
Implements com.google.ortools.sat.CpSolverResponseOrBuilder.
Definition at line 1959 of file CpSolverResponse.java.
java.lang.String com.google.ortools.sat.CpSolverResponse.Builder.getSolutionInfo | ( | ) |
Additional information about how the solution was found. It also stores model or parameters errors that caused the model to be invalid.
string solution_info = 20;
Implements com.google.ortools.sat.CpSolverResponseOrBuilder.
Definition at line 4091 of file CpSolverResponse.java.
com.google.protobuf.ByteString com.google.ortools.sat.CpSolverResponse.Builder.getSolutionInfoBytes | ( | ) |
Additional information about how the solution was found. It also stores model or parameters errors that caused the model to be invalid.
string solution_info = 20;
Implements com.google.ortools.sat.CpSolverResponseOrBuilder.
Definition at line 4113 of file CpSolverResponse.java.
java.util.List< java.lang.Long > com.google.ortools.sat.CpSolverResponse.Builder.getSolutionList | ( | ) |
A feasible solution to the given problem. Depending on the returned status it may be optimal or just feasible. This is in one-to-one correspondence with a CpModelProto::variables repeated field and list the values of all the variables.
repeated int64 solution = 2;
Implements com.google.ortools.sat.CpSolverResponseOrBuilder.
Definition at line 1944 of file CpSolverResponse.java.
java.lang.String com.google.ortools.sat.CpSolverResponse.Builder.getSolveLog | ( | ) |
The solve log will be filled if the parameter log_to_response is set to true.
string solve_log = 26;
Implements com.google.ortools.sat.CpSolverResponseOrBuilder.
Definition at line 4188 of file CpSolverResponse.java.
com.google.protobuf.ByteString com.google.ortools.sat.CpSolverResponse.Builder.getSolveLogBytes | ( | ) |
The solve log will be filled if the parameter log_to_response is set to true.
string solve_log = 26;
Implements com.google.ortools.sat.CpSolverResponseOrBuilder.
Definition at line 4210 of file CpSolverResponse.java.
com.google.ortools.sat.CpSolverStatus com.google.ortools.sat.CpSolverResponse.Builder.getStatus | ( | ) |
The status of the solve.
.operations_research.sat.CpSolverStatus status = 1;
Implements com.google.ortools.sat.CpSolverResponseOrBuilder.
Definition at line 1888 of file CpSolverResponse.java.
int com.google.ortools.sat.CpSolverResponse.Builder.getStatusValue | ( | ) |
The status of the solve.
.operations_research.sat.CpSolverStatus status = 1;
Implements com.google.ortools.sat.CpSolverResponseOrBuilder.
Definition at line 1861 of file CpSolverResponse.java.
int com.google.ortools.sat.CpSolverResponse.Builder.getSufficientAssumptionsForInfeasibility | ( | int | index | ) |
A subset of the model "assumptions" field. This will only be filled if the status is INFEASIBLE. This subset of assumption will be enough to still get an infeasible problem. This is related to what is called the irreducible inconsistent subsystem or IIS. Except one is only concerned by the provided assumptions. There is also no guarantee that we return an irreducible (aka minimal subset). However, this is based on SAT explanation and there is a good chance it is not too large. If you really want a minimal subset, a possible way to get one is by changing your model to minimize the number of assumptions at false, but this is likely an harder problem to solve. Important: Currently, this is minimized only in single-thread and if the problem is not an optimization problem, otherwise, it will always include all the assumptions. TODO(user): Allows for returning multiple core at once.
repeated int32 sufficient_assumptions_for_infeasibility = 23;
index | The index of the element to return. |
Implements com.google.ortools.sat.CpSolverResponseOrBuilder.
Definition at line 3239 of file CpSolverResponse.java.
int com.google.ortools.sat.CpSolverResponse.Builder.getSufficientAssumptionsForInfeasibilityCount | ( | ) |
A subset of the model "assumptions" field. This will only be filled if the status is INFEASIBLE. This subset of assumption will be enough to still get an infeasible problem. This is related to what is called the irreducible inconsistent subsystem or IIS. Except one is only concerned by the provided assumptions. There is also no guarantee that we return an irreducible (aka minimal subset). However, this is based on SAT explanation and there is a good chance it is not too large. If you really want a minimal subset, a possible way to get one is by changing your model to minimize the number of assumptions at false, but this is likely an harder problem to solve. Important: Currently, this is minimized only in single-thread and if the problem is not an optimization problem, otherwise, it will always include all the assumptions. TODO(user): Allows for returning multiple core at once.
repeated int32 sufficient_assumptions_for_infeasibility = 23;
Implements com.google.ortools.sat.CpSolverResponseOrBuilder.
Definition at line 3209 of file CpSolverResponse.java.
java.util.List< java.lang.Integer > com.google.ortools.sat.CpSolverResponse.Builder.getSufficientAssumptionsForInfeasibilityList | ( | ) |
A subset of the model "assumptions" field. This will only be filled if the status is INFEASIBLE. This subset of assumption will be enough to still get an infeasible problem. This is related to what is called the irreducible inconsistent subsystem or IIS. Except one is only concerned by the provided assumptions. There is also no guarantee that we return an irreducible (aka minimal subset). However, this is based on SAT explanation and there is a good chance it is not too large. If you really want a minimal subset, a possible way to get one is by changing your model to minimize the number of assumptions at false, but this is likely an harder problem to solve. Important: Currently, this is minimized only in single-thread and if the problem is not an optimization problem, otherwise, it will always include all the assumptions. TODO(user): Allows for returning multiple core at once.
repeated int32 sufficient_assumptions_for_infeasibility = 23;
Implements com.google.ortools.sat.CpSolverResponseOrBuilder.
Definition at line 3179 of file CpSolverResponse.java.
com.google.ortools.sat.IntegerVariableProto com.google.ortools.sat.CpSolverResponse.Builder.getTightenedVariables | ( | int | index | ) |
Advanced usage. If the option fill_tightened_domains_in_response is set, then this field will be a copy of the CpModelProto.variables where each domain has been reduced using the information the solver was able to derive. Note that this is only filled with the info derived during a normal search and we do not have any dedicated algorithm to improve it. Warning: if you didn't set keep_all_feasible_solutions_in_presolve, then these domains might exclude valid feasible solution. Otherwise for a feasibility problem, all feasible solution should be there. Warning: For an optimization problem, these will correspond to valid bounds for the problem of finding an improving solution to the best one found so far. It might be better to solve a feasibility version if one just want to explore the feasible region.
repeated .operations_research.sat.IntegerVariableProto tightened_variables = 21;
Implements com.google.ortools.sat.CpSolverResponseOrBuilder.
Definition at line 2655 of file CpSolverResponse.java.
com.google.ortools.sat.IntegerVariableProto.Builder com.google.ortools.sat.CpSolverResponse.Builder.getTightenedVariablesBuilder | ( | int | index | ) |
Advanced usage. If the option fill_tightened_domains_in_response is set, then this field will be a copy of the CpModelProto.variables where each domain has been reduced using the information the solver was able to derive. Note that this is only filled with the info derived during a normal search and we do not have any dedicated algorithm to improve it. Warning: if you didn't set keep_all_feasible_solutions_in_presolve, then these domains might exclude valid feasible solution. Otherwise for a feasibility problem, all feasible solution should be there. Warning: For an optimization problem, these will correspond to valid bounds for the problem of finding an improving solution to the best one found so far. It might be better to solve a feasibility version if one just want to explore the feasible region.
repeated .operations_research.sat.IntegerVariableProto tightened_variables = 21;
Definition at line 2988 of file CpSolverResponse.java.
java.util.List< com.google.ortools.sat.IntegerVariableProto.Builder > com.google.ortools.sat.CpSolverResponse.Builder.getTightenedVariablesBuilderList | ( | ) |
Advanced usage. If the option fill_tightened_domains_in_response is set, then this field will be a copy of the CpModelProto.variables where each domain has been reduced using the information the solver was able to derive. Note that this is only filled with the info derived during a normal search and we do not have any dedicated algorithm to improve it. Warning: if you didn't set keep_all_feasible_solutions_in_presolve, then these domains might exclude valid feasible solution. Otherwise for a feasibility problem, all feasible solution should be there. Warning: For an optimization problem, these will correspond to valid bounds for the problem of finding an improving solution to the best one found so far. It might be better to solve a feasibility version if one just want to explore the feasible region.
repeated .operations_research.sat.IntegerVariableProto tightened_variables = 21;
Definition at line 3127 of file CpSolverResponse.java.
int com.google.ortools.sat.CpSolverResponse.Builder.getTightenedVariablesCount | ( | ) |
Advanced usage. If the option fill_tightened_domains_in_response is set, then this field will be a copy of the CpModelProto.variables where each domain has been reduced using the information the solver was able to derive. Note that this is only filled with the info derived during a normal search and we do not have any dedicated algorithm to improve it. Warning: if you didn't set keep_all_feasible_solutions_in_presolve, then these domains might exclude valid feasible solution. Otherwise for a feasibility problem, all feasible solution should be there. Warning: For an optimization problem, these will correspond to valid bounds for the problem of finding an improving solution to the best one found so far. It might be better to solve a feasibility version if one just want to explore the feasible region.
repeated .operations_research.sat.IntegerVariableProto tightened_variables = 21;
Implements com.google.ortools.sat.CpSolverResponseOrBuilder.
Definition at line 2626 of file CpSolverResponse.java.
java.util.List< com.google.ortools.sat.IntegerVariableProto > com.google.ortools.sat.CpSolverResponse.Builder.getTightenedVariablesList | ( | ) |
Advanced usage. If the option fill_tightened_domains_in_response is set, then this field will be a copy of the CpModelProto.variables where each domain has been reduced using the information the solver was able to derive. Note that this is only filled with the info derived during a normal search and we do not have any dedicated algorithm to improve it. Warning: if you didn't set keep_all_feasible_solutions_in_presolve, then these domains might exclude valid feasible solution. Otherwise for a feasibility problem, all feasible solution should be there. Warning: For an optimization problem, these will correspond to valid bounds for the problem of finding an improving solution to the best one found so far. It might be better to solve a feasibility version if one just want to explore the feasible region.
repeated .operations_research.sat.IntegerVariableProto tightened_variables = 21;
Implements com.google.ortools.sat.CpSolverResponseOrBuilder.
Definition at line 2597 of file CpSolverResponse.java.
com.google.ortools.sat.IntegerVariableProtoOrBuilder com.google.ortools.sat.CpSolverResponse.Builder.getTightenedVariablesOrBuilder | ( | int | index | ) |
Advanced usage. If the option fill_tightened_domains_in_response is set, then this field will be a copy of the CpModelProto.variables where each domain has been reduced using the information the solver was able to derive. Note that this is only filled with the info derived during a normal search and we do not have any dedicated algorithm to improve it. Warning: if you didn't set keep_all_feasible_solutions_in_presolve, then these domains might exclude valid feasible solution. Otherwise for a feasibility problem, all feasible solution should be there. Warning: For an optimization problem, these will correspond to valid bounds for the problem of finding an improving solution to the best one found so far. It might be better to solve a feasibility version if one just want to explore the feasible region.
repeated .operations_research.sat.IntegerVariableProto tightened_variables = 21;
Implements com.google.ortools.sat.CpSolverResponseOrBuilder.
Definition at line 3014 of file CpSolverResponse.java.
java.util.List<? extends com.google.ortools.sat.IntegerVariableProtoOrBuilder > com.google.ortools.sat.CpSolverResponse.Builder.getTightenedVariablesOrBuilderList | ( | ) |
Advanced usage. If the option fill_tightened_domains_in_response is set, then this field will be a copy of the CpModelProto.variables where each domain has been reduced using the information the solver was able to derive. Note that this is only filled with the info derived during a normal search and we do not have any dedicated algorithm to improve it. Warning: if you didn't set keep_all_feasible_solutions_in_presolve, then these domains might exclude valid feasible solution. Otherwise for a feasibility problem, all feasible solution should be there. Warning: For an optimization problem, these will correspond to valid bounds for the problem of finding an improving solution to the best one found so far. It might be better to solve a feasibility version if one just want to explore the feasible region.
repeated .operations_research.sat.IntegerVariableProto tightened_variables = 21;
Implements com.google.ortools.sat.CpSolverResponseOrBuilder.
Definition at line 3044 of file CpSolverResponse.java.
double com.google.ortools.sat.CpSolverResponse.Builder.getUserTime | ( | ) |
double user_time = 16;
Implements com.google.ortools.sat.CpSolverResponseOrBuilder.
Definition at line 3979 of file CpSolverResponse.java.
double com.google.ortools.sat.CpSolverResponse.Builder.getWallTime | ( | ) |
The time counted from the beginning of the Solve() call.
double wall_time = 15;
Implements com.google.ortools.sat.CpSolverResponseOrBuilder.
Definition at line 3939 of file CpSolverResponse.java.
boolean com.google.ortools.sat.CpSolverResponse.Builder.hasIntegerObjective | ( | ) |
Contains the integer objective optimized internally. This is only filled if the problem had a floating point objective, and on the final response, not the ones given to callbacks.
.operations_research.sat.CpObjectiveProto integer_objective = 28;
Implements com.google.ortools.sat.CpSolverResponseOrBuilder.
Definition at line 3396 of file CpSolverResponse.java.
|
protected |
Definition at line 1301 of file CpSolverResponse.java.
final boolean com.google.ortools.sat.CpSolverResponse.Builder.isInitialized | ( | ) |
Definition at line 1655 of file CpSolverResponse.java.
Builder com.google.ortools.sat.CpSolverResponse.Builder.mergeFrom | ( | com.google.ortools.sat.CpSolverResponse | other | ) |
Definition at line 1509 of file CpSolverResponse.java.
Builder com.google.ortools.sat.CpSolverResponse.Builder.mergeFrom | ( | com.google.protobuf.CodedInputStream | input, |
com.google.protobuf.ExtensionRegistryLite | extensionRegistry ) throws java.io.IOException |
Definition at line 1660 of file CpSolverResponse.java.
Builder com.google.ortools.sat.CpSolverResponse.Builder.mergeFrom | ( | com.google.protobuf.Message | other | ) |
Definition at line 1500 of file CpSolverResponse.java.
Builder com.google.ortools.sat.CpSolverResponse.Builder.mergeIntegerObjective | ( | com.google.ortools.sat.CpObjectiveProto | value | ) |
Contains the integer objective optimized internally. This is only filled if the problem had a floating point objective, and on the final response, not the ones given to callbacks.
.operations_research.sat.CpObjectiveProto integer_objective = 28;
Definition at line 3467 of file CpSolverResponse.java.
Builder com.google.ortools.sat.CpSolverResponse.Builder.removeAdditionalSolutions | ( | int | index | ) |
If the parameter fill_additional_solutions_in_response is set, then we copy all the solutions from our internal solution pool here. Note that the one returned in the solution field will likely appear here too. Do not rely on the solutions order as it depends on our internal representation (after postsolve).
repeated .operations_research.sat.CpSolverSolution additional_solutions = 27;
Definition at line 2434 of file CpSolverResponse.java.
Builder com.google.ortools.sat.CpSolverResponse.Builder.removeTightenedVariables | ( | int | index | ) |
Advanced usage. If the option fill_tightened_domains_in_response is set, then this field will be a copy of the CpModelProto.variables where each domain has been reduced using the information the solver was able to derive. Note that this is only filled with the info derived during a normal search and we do not have any dedicated algorithm to improve it. Warning: if you didn't set keep_all_feasible_solutions_in_presolve, then these domains might exclude valid feasible solution. Otherwise for a feasibility problem, all feasible solution should be there. Warning: For an optimization problem, these will correspond to valid bounds for the problem of finding an improving solution to the best one found so far. It might be better to solve a feasibility version if one just want to explore the feasible region.
repeated .operations_research.sat.IntegerVariableProto tightened_variables = 21;
Definition at line 2956 of file CpSolverResponse.java.
Builder com.google.ortools.sat.CpSolverResponse.Builder.setAdditionalSolutions | ( | int | index, |
com.google.ortools.sat.CpSolverSolution | value ) |
If the parameter fill_additional_solutions_in_response is set, then we copy all the solutions from our internal solution pool here. Note that the one returned in the solution field will likely appear here too. Do not rely on the solutions order as it depends on our internal representation (after postsolve).
repeated .operations_research.sat.CpSolverSolution additional_solutions = 27;
Definition at line 2242 of file CpSolverResponse.java.
Builder com.google.ortools.sat.CpSolverResponse.Builder.setAdditionalSolutions | ( | int | index, |
com.google.ortools.sat.CpSolverSolution.Builder | builderForValue ) |
If the parameter fill_additional_solutions_in_response is set, then we copy all the solutions from our internal solution pool here. Note that the one returned in the solution field will likely appear here too. Do not rely on the solutions order as it depends on our internal representation (after postsolve).
repeated .operations_research.sat.CpSolverSolution additional_solutions = 27;
Definition at line 2268 of file CpSolverResponse.java.
Builder com.google.ortools.sat.CpSolverResponse.Builder.setBestObjectiveBound | ( | double | value | ) |
Only make sense for an optimization problem. A proven lower-bound on the objective for a minimization problem, or a proven upper-bound for a maximization problem.
double best_objective_bound = 4;
value | The bestObjectiveBound to set. |
Definition at line 2137 of file CpSolverResponse.java.
Builder com.google.ortools.sat.CpSolverResponse.Builder.setDeterministicTime | ( | double | value | ) |
double deterministic_time = 17;
value | The deterministicTime to set. |
Definition at line 4019 of file CpSolverResponse.java.
Builder com.google.ortools.sat.CpSolverResponse.Builder.setGapIntegral | ( | double | value | ) |
The integral of log(1 + absolute_objective_gap) over time.
double gap_integral = 22;
value | The gapIntegral to set. |
Definition at line 4059 of file CpSolverResponse.java.
Builder com.google.ortools.sat.CpSolverResponse.Builder.setInnerObjectiveLowerBound | ( | long | value | ) |
Advanced usage. A lower bound on the inner integer expression of the objective. This is either a bound on the expression in the returned integer_objective or on the integer expression of the original objective if the problem already has an integer objective.
int64 inner_objective_lower_bound = 29;
value | The innerObjectiveLowerBound to set. |
Definition at line 3590 of file CpSolverResponse.java.
Builder com.google.ortools.sat.CpSolverResponse.Builder.setIntegerObjective | ( | com.google.ortools.sat.CpObjectiveProto | value | ) |
Contains the integer objective optimized internally. This is only filled if the problem had a floating point objective, and on the final response, not the ones given to callbacks.
.operations_research.sat.CpObjectiveProto integer_objective = 28;
Definition at line 3425 of file CpSolverResponse.java.
Builder com.google.ortools.sat.CpSolverResponse.Builder.setIntegerObjective | ( | com.google.ortools.sat.CpObjectiveProto.Builder | builderForValue | ) |
Contains the integer objective optimized internally. This is only filled if the problem had a floating point objective, and on the final response, not the ones given to callbacks.
.operations_research.sat.CpObjectiveProto integer_objective = 28;
Definition at line 3447 of file CpSolverResponse.java.
Builder com.google.ortools.sat.CpSolverResponse.Builder.setNumBinaryPropagations | ( | long | value | ) |
int64 num_binary_propagations = 13;
value | The numBinaryPropagations to set. |
Definition at line 3815 of file CpSolverResponse.java.
Builder com.google.ortools.sat.CpSolverResponse.Builder.setNumBooleans | ( | long | value | ) |
int64 num_booleans = 10;
value | The numBooleans to set. |
Definition at line 3687 of file CpSolverResponse.java.
Builder com.google.ortools.sat.CpSolverResponse.Builder.setNumBranches | ( | long | value | ) |
int64 num_branches = 12;
value | The numBranches to set. |
Definition at line 3783 of file CpSolverResponse.java.
Builder com.google.ortools.sat.CpSolverResponse.Builder.setNumConflicts | ( | long | value | ) |
int64 num_conflicts = 11;
value | The numConflicts to set. |
Definition at line 3751 of file CpSolverResponse.java.
Builder com.google.ortools.sat.CpSolverResponse.Builder.setNumFixedBooleans | ( | long | value | ) |
int64 num_fixed_booleans = 31;
value | The numFixedBooleans to set. |
Definition at line 3719 of file CpSolverResponse.java.
Builder com.google.ortools.sat.CpSolverResponse.Builder.setNumIntegerPropagations | ( | long | value | ) |
int64 num_integer_propagations = 14;
value | The numIntegerPropagations to set. |
Definition at line 3847 of file CpSolverResponse.java.
Builder com.google.ortools.sat.CpSolverResponse.Builder.setNumIntegers | ( | long | value | ) |
Some statistics about the solve. Important: in multithread, this correspond the statistics of the first subsolver. Which is usually the one with the user defined parameters. Or the default-search if none are specified.
int64 num_integers = 30;
value | The numIntegers to set. |
Definition at line 3647 of file CpSolverResponse.java.
Builder com.google.ortools.sat.CpSolverResponse.Builder.setNumLpIterations | ( | long | value | ) |
int64 num_lp_iterations = 25;
value | The numLpIterations to set. |
Definition at line 3911 of file CpSolverResponse.java.
Builder com.google.ortools.sat.CpSolverResponse.Builder.setNumRestarts | ( | long | value | ) |
int64 num_restarts = 24;
value | The numRestarts to set. |
Definition at line 3879 of file CpSolverResponse.java.
Builder com.google.ortools.sat.CpSolverResponse.Builder.setObjectiveValue | ( | double | value | ) |
Only make sense for an optimization problem. The objective value of the returned solution if it is non-empty. If there is no solution, then for a minimization problem, this will be an upper-bound of the objective of any feasible solution, and a lower-bound for a maximization problem.
double objective_value = 3;
value | The objectiveValue to set. |
Definition at line 2086 of file CpSolverResponse.java.
Builder com.google.ortools.sat.CpSolverResponse.Builder.setSolution | ( | int | index, |
long | value ) |
A feasible solution to the given problem. Depending on the returned status it may be optimal or just feasible. This is in one-to-one correspondence with a CpModelProto::variables repeated field and list the values of all the variables.
repeated int64 solution = 2;
index | The index to set the value at. |
value | The solution to set. |
Definition at line 1990 of file CpSolverResponse.java.
Builder com.google.ortools.sat.CpSolverResponse.Builder.setSolutionInfo | ( | java.lang.String | value | ) |
Additional information about how the solution was found. It also stores model or parameters errors that caused the model to be invalid.
string solution_info = 20;
value | The solutionInfo to set. |
Definition at line 4135 of file CpSolverResponse.java.
Builder com.google.ortools.sat.CpSolverResponse.Builder.setSolutionInfoBytes | ( | com.google.protobuf.ByteString | value | ) |
Additional information about how the solution was found. It also stores model or parameters errors that caused the model to be invalid.
string solution_info = 20;
value | The bytes for solutionInfo to set. |
Definition at line 4168 of file CpSolverResponse.java.
Builder com.google.ortools.sat.CpSolverResponse.Builder.setSolveLog | ( | java.lang.String | value | ) |
The solve log will be filled if the parameter log_to_response is set to true.
string solve_log = 26;
value | The solveLog to set. |
Definition at line 4232 of file CpSolverResponse.java.
Builder com.google.ortools.sat.CpSolverResponse.Builder.setSolveLogBytes | ( | com.google.protobuf.ByteString | value | ) |
The solve log will be filled if the parameter log_to_response is set to true.
string solve_log = 26;
value | The bytes for solveLog to set. |
Definition at line 4265 of file CpSolverResponse.java.
Builder com.google.ortools.sat.CpSolverResponse.Builder.setStatus | ( | com.google.ortools.sat.CpSolverStatus | value | ) |
The status of the solve.
.operations_research.sat.CpSolverStatus status = 1;
value | The status to set. |
Definition at line 1901 of file CpSolverResponse.java.
Builder com.google.ortools.sat.CpSolverResponse.Builder.setStatusValue | ( | int | value | ) |
The status of the solve.
.operations_research.sat.CpSolverStatus status = 1;
value | The enum numeric value on the wire for status to set. |
Definition at line 1873 of file CpSolverResponse.java.
Builder com.google.ortools.sat.CpSolverResponse.Builder.setSufficientAssumptionsForInfeasibility | ( | int | index, |
int | value ) |
A subset of the model "assumptions" field. This will only be filled if the status is INFEASIBLE. This subset of assumption will be enough to still get an infeasible problem. This is related to what is called the irreducible inconsistent subsystem or IIS. Except one is only concerned by the provided assumptions. There is also no guarantee that we return an irreducible (aka minimal subset). However, this is based on SAT explanation and there is a good chance it is not too large. If you really want a minimal subset, a possible way to get one is by changing your model to minimize the number of assumptions at false, but this is likely an harder problem to solve. Important: Currently, this is minimized only in single-thread and if the problem is not an optimization problem, otherwise, it will always include all the assumptions. TODO(user): Allows for returning multiple core at once.
repeated int32 sufficient_assumptions_for_infeasibility = 23;
index | The index to set the value at. |
value | The sufficientAssumptionsForInfeasibility to set. |
Definition at line 3270 of file CpSolverResponse.java.
Builder com.google.ortools.sat.CpSolverResponse.Builder.setTightenedVariables | ( | int | index, |
com.google.ortools.sat.IntegerVariableProto | value ) |
Advanced usage. If the option fill_tightened_domains_in_response is set, then this field will be a copy of the CpModelProto.variables where each domain has been reduced using the information the solver was able to derive. Note that this is only filled with the info derived during a normal search and we do not have any dedicated algorithm to improve it. Warning: if you didn't set keep_all_feasible_solutions_in_presolve, then these domains might exclude valid feasible solution. Otherwise for a feasibility problem, all feasible solution should be there. Warning: For an optimization problem, these will correspond to valid bounds for the problem of finding an improving solution to the best one found so far. It might be better to solve a feasibility version if one just want to explore the feasible region.
repeated .operations_research.sat.IntegerVariableProto tightened_variables = 21;
Definition at line 2684 of file CpSolverResponse.java.
Builder com.google.ortools.sat.CpSolverResponse.Builder.setTightenedVariables | ( | int | index, |
com.google.ortools.sat.IntegerVariableProto.Builder | builderForValue ) |
Advanced usage. If the option fill_tightened_domains_in_response is set, then this field will be a copy of the CpModelProto.variables where each domain has been reduced using the information the solver was able to derive. Note that this is only filled with the info derived during a normal search and we do not have any dedicated algorithm to improve it. Warning: if you didn't set keep_all_feasible_solutions_in_presolve, then these domains might exclude valid feasible solution. Otherwise for a feasibility problem, all feasible solution should be there. Warning: For an optimization problem, these will correspond to valid bounds for the problem of finding an improving solution to the best one found so far. It might be better to solve a feasibility version if one just want to explore the feasible region.
repeated .operations_research.sat.IntegerVariableProto tightened_variables = 21;
Definition at line 2720 of file CpSolverResponse.java.
Builder com.google.ortools.sat.CpSolverResponse.Builder.setUserTime | ( | double | value | ) |
double user_time = 16;
value | The userTime to set. |
Definition at line 3987 of file CpSolverResponse.java.
Builder com.google.ortools.sat.CpSolverResponse.Builder.setWallTime | ( | double | value | ) |
The time counted from the beginning of the Solve() call.
double wall_time = 15;
value | The wallTime to set. |
Definition at line 3951 of file CpSolverResponse.java.