Class CpSolverResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<CpSolverResponse.Builder>
com.google.protobuf.GeneratedMessage.Builder<CpSolverResponse.Builder>
com.google.ortools.sat.CpSolverResponse.Builder
- All Implemented Interfaces:
CpSolverResponseOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
CpSolverResponse
public static final class CpSolverResponse.Builder
extends com.google.protobuf.GeneratedMessage.Builder<CpSolverResponse.Builder>
implements CpSolverResponseOrBuilder
The response returned by a solver trying to solve a CpModelProto. Next id: 32Protobuf type
operations_research.sat.CpSolverResponse
-
Method Summary
Modifier and TypeMethodDescriptionaddAdditionalSolutions
(int index, CpSolverSolution value) If the parameter fill_additional_solutions_in_response is set, then we copy all the solutions from our internal solution pool here.addAdditionalSolutions
(int index, 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.If the parameter fill_additional_solutions_in_response is set, then we copy all the solutions from our internal solution pool here.addAdditionalSolutions
(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.If the parameter fill_additional_solutions_in_response is set, then we copy all the solutions from our internal solution pool here.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.addAllAdditionalSolutions
(Iterable<? extends CpSolverSolution> values) If the parameter fill_additional_solutions_in_response is set, then we copy all the solutions from our internal solution pool here.addAllSolution
(Iterable<? extends Long> values) A feasible solution to the given problem.addAllSufficientAssumptionsForInfeasibility
(Iterable<? extends Integer> values) A subset of the model "assumptions" field.addAllTightenedVariables
(Iterable<? extends IntegerVariableProto> values) Advanced usage.addSolution
(long value) A feasible solution to the given problem.addSufficientAssumptionsForInfeasibility
(int value) A subset of the model "assumptions" field.addTightenedVariables
(int index, IntegerVariableProto value) Advanced usage.addTightenedVariables
(int index, IntegerVariableProto.Builder builderForValue) Advanced usage.Advanced usage.addTightenedVariables
(IntegerVariableProto.Builder builderForValue) Advanced usage.Advanced usage.addTightenedVariablesBuilder
(int index) Advanced usage.build()
clear()
If the parameter fill_additional_solutions_in_response is set, then we copy all the solutions from our internal solution pool here.Only make sense for an optimization problem.double deterministic_time = 17;
The integral of log(1 + absolute_objective_gap) over time.Advanced usage.Contains the integer objective optimized internally.int64 num_binary_propagations = 13;
int64 num_booleans = 10;
int64 num_branches = 12;
int64 num_conflicts = 11;
int64 num_fixed_booleans = 31;
int64 num_integer_propagations = 14;
Some statistics about the solve.int64 num_lp_iterations = 25;
int64 num_restarts = 24;
Only make sense for an optimization problem.A feasible solution to the given problem.Additional information about how the solution was found.The solve log will be filled if the parameter log_to_response is set to true.The status of the solve.A subset of the model "assumptions" field.Advanced usage.double user_time = 16;
The time counted from the beginning of the Solve() call.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.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.If the parameter fill_additional_solutions_in_response is set, then we copy all the solutions from our internal solution pool here.int
If the parameter fill_additional_solutions_in_response is set, then we copy all the solutions from our internal solution pool here.If the parameter fill_additional_solutions_in_response is set, then we copy all the solutions from our internal solution pool here.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.List
<? extends CpSolverSolutionOrBuilder> If the parameter fill_additional_solutions_in_response is set, then we copy all the solutions from our internal solution pool here.double
Only make sense for an optimization problem.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
double
double deterministic_time = 17;
double
The integral of log(1 + absolute_objective_gap) over time.long
Advanced usage.Contains the integer objective optimized internally.Contains the integer objective optimized internally.Contains the integer objective optimized internally.long
int64 num_binary_propagations = 13;
long
int64 num_booleans = 10;
long
int64 num_branches = 12;
long
int64 num_conflicts = 11;
long
int64 num_fixed_booleans = 31;
long
int64 num_integer_propagations = 14;
long
Some statistics about the solve.long
int64 num_lp_iterations = 25;
long
int64 num_restarts = 24;
double
Only make sense for an optimization problem.long
getSolution
(int index) A feasible solution to the given problem.int
A feasible solution to the given problem.Additional information about how the solution was found.com.google.protobuf.ByteString
Additional information about how the solution was found.A feasible solution to the given problem.The solve log will be filled if the parameter log_to_response is set to true.com.google.protobuf.ByteString
The solve log will be filled if the parameter log_to_response is set to true.The status of the solve.int
The status of the solve.int
getSufficientAssumptionsForInfeasibility
(int index) A subset of the model "assumptions" field.int
A subset of the model "assumptions" field.A subset of the model "assumptions" field.getTightenedVariables
(int index) Advanced usage.getTightenedVariablesBuilder
(int index) Advanced usage.Advanced usage.int
Advanced usage.Advanced usage.getTightenedVariablesOrBuilder
(int index) Advanced usage.List
<? extends IntegerVariableProtoOrBuilder> Advanced usage.double
double user_time = 16;
double
The time counted from the beginning of the Solve() call.boolean
Contains the integer objective optimized internally.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
mergeFrom
(CpSolverResponse other) mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) Contains the integer objective optimized internally.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.removeTightenedVariables
(int index) Advanced usage.setAdditionalSolutions
(int index, CpSolverSolution value) If the parameter fill_additional_solutions_in_response is set, then we copy all the solutions from our internal solution pool here.setAdditionalSolutions
(int index, 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.setBestObjectiveBound
(double value) Only make sense for an optimization problem.setDeterministicTime
(double value) double deterministic_time = 17;
setGapIntegral
(double value) The integral of log(1 + absolute_objective_gap) over time.setInnerObjectiveLowerBound
(long value) Advanced usage.Contains the integer objective optimized internally.setIntegerObjective
(CpObjectiveProto.Builder builderForValue) Contains the integer objective optimized internally.setNumBinaryPropagations
(long value) int64 num_binary_propagations = 13;
setNumBooleans
(long value) int64 num_booleans = 10;
setNumBranches
(long value) int64 num_branches = 12;
setNumConflicts
(long value) int64 num_conflicts = 11;
setNumFixedBooleans
(long value) int64 num_fixed_booleans = 31;
setNumIntegerPropagations
(long value) int64 num_integer_propagations = 14;
setNumIntegers
(long value) Some statistics about the solve.setNumLpIterations
(long value) int64 num_lp_iterations = 25;
setNumRestarts
(long value) int64 num_restarts = 24;
setObjectiveValue
(double value) Only make sense for an optimization problem.setSolution
(int index, long value) A feasible solution to the given problem.setSolutionInfo
(String value) Additional information about how the solution was found.setSolutionInfoBytes
(com.google.protobuf.ByteString value) Additional information about how the solution was found.setSolveLog
(String value) The solve log will be filled if the parameter log_to_response is set to true.setSolveLogBytes
(com.google.protobuf.ByteString value) The solve log will be filled if the parameter log_to_response is set to true.setStatus
(CpSolverStatus value) The status of the solve.setStatusValue
(int value) The status of the solve.setSufficientAssumptionsForInfeasibility
(int index, int value) A subset of the model "assumptions" field.setTightenedVariables
(int index, IntegerVariableProto value) Advanced usage.setTightenedVariables
(int index, IntegerVariableProto.Builder builderForValue) Advanced usage.setUserTime
(double value) double user_time = 16;
setWallTime
(double value) The time counted from the beginning of the Solve() call.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<CpSolverResponse.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<CpSolverResponse.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<CpSolverResponse.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CpSolverResponse.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<CpSolverResponse.Builder>
-
mergeFrom
public CpSolverResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CpSolverResponse.Builder>
- Throws:
IOException
-
getStatusValue
public int getStatusValue()The status of the solve.
.operations_research.sat.CpSolverStatus status = 1;
- Specified by:
getStatusValue
in interfaceCpSolverResponseOrBuilder
- Returns:
- The enum numeric value on the wire for status.
-
setStatusValue
The status of the solve.
.operations_research.sat.CpSolverStatus status = 1;
- Parameters:
value
- The enum numeric value on the wire for status to set.- Returns:
- This builder for chaining.
-
getStatus
The status of the solve.
.operations_research.sat.CpSolverStatus status = 1;
- Specified by:
getStatus
in interfaceCpSolverResponseOrBuilder
- Returns:
- The status.
-
setStatus
The status of the solve.
.operations_research.sat.CpSolverStatus status = 1;
- Parameters:
value
- The status to set.- Returns:
- This builder for chaining.
-
clearStatus
The status of the solve.
.operations_research.sat.CpSolverStatus status = 1;
- Returns:
- This builder for chaining.
-
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;
- Specified by:
getSolutionList
in interfaceCpSolverResponseOrBuilder
- Returns:
- A list containing the solution.
-
getSolutionCount
public int 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;
- Specified by:
getSolutionCount
in interfaceCpSolverResponseOrBuilder
- Returns:
- The count of solution.
-
getSolution
public long 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;
- Specified by:
getSolution
in interfaceCpSolverResponseOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The solution at the given index.
-
setSolution
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;
- Parameters:
index
- The index to set the value at.value
- The solution to set.- Returns:
- This builder for chaining.
-
addSolution
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;
- Parameters:
value
- The solution to add.- Returns:
- This builder for chaining.
-
addAllSolution
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;
- Parameters:
values
- The solution to add.- Returns:
- This builder for chaining.
-
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;
- Returns:
- This builder for chaining.
-
getObjectiveValue
public double 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;
- Specified by:
getObjectiveValue
in interfaceCpSolverResponseOrBuilder
- Returns:
- The objectiveValue.
-
setObjectiveValue
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;
- Parameters:
value
- The objectiveValue to set.- Returns:
- This builder for chaining.
-
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;
- Returns:
- This builder for chaining.
-
getBestObjectiveBound
public double 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;
- Specified by:
getBestObjectiveBound
in interfaceCpSolverResponseOrBuilder
- Returns:
- The bestObjectiveBound.
-
setBestObjectiveBound
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;
- Parameters:
value
- The bestObjectiveBound to set.- Returns:
- This builder for chaining.
-
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;
- Returns:
- This builder for chaining.
-
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;
- Specified by:
getAdditionalSolutionsList
in interfaceCpSolverResponseOrBuilder
-
getAdditionalSolutionsCount
public int 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;
- Specified by:
getAdditionalSolutionsCount
in interfaceCpSolverResponseOrBuilder
-
getAdditionalSolutions
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;
- Specified by:
getAdditionalSolutions
in interfaceCpSolverResponseOrBuilder
-
setAdditionalSolutions
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;
-
setAdditionalSolutions
public CpSolverResponse.Builder setAdditionalSolutions(int index, 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;
-
addAdditionalSolutions
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;
-
addAdditionalSolutions
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;
-
addAdditionalSolutions
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;
-
addAdditionalSolutions
public CpSolverResponse.Builder addAdditionalSolutions(int index, 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;
-
addAllAdditionalSolutions
public CpSolverResponse.Builder addAllAdditionalSolutions(Iterable<? extends 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;
-
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;
-
removeAdditionalSolutions
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;
-
getAdditionalSolutionsBuilder
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;
-
getAdditionalSolutionsOrBuilder
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;
- Specified by:
getAdditionalSolutionsOrBuilder
in interfaceCpSolverResponseOrBuilder
-
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;
- Specified by:
getAdditionalSolutionsOrBuilderList
in interfaceCpSolverResponseOrBuilder
-
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;
-
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;
-
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;
-
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;
- Specified by:
getTightenedVariablesList
in interfaceCpSolverResponseOrBuilder
-
getTightenedVariablesCount
public int 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;
- Specified by:
getTightenedVariablesCount
in interfaceCpSolverResponseOrBuilder
-
getTightenedVariables
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;
- Specified by:
getTightenedVariables
in interfaceCpSolverResponseOrBuilder
-
setTightenedVariables
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;
-
setTightenedVariables
public CpSolverResponse.Builder setTightenedVariables(int index, 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;
-
addTightenedVariables
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;
-
addTightenedVariables
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;
-
addTightenedVariables
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;
-
addTightenedVariables
public CpSolverResponse.Builder addTightenedVariables(int index, 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;
-
addAllTightenedVariables
public CpSolverResponse.Builder addAllTightenedVariables(Iterable<? extends 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;
-
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;
-
removeTightenedVariables
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;
-
getTightenedVariablesBuilder
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;
-
getTightenedVariablesOrBuilder
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;
- Specified by:
getTightenedVariablesOrBuilder
in interfaceCpSolverResponseOrBuilder
-
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;
- Specified by:
getTightenedVariablesOrBuilderList
in interfaceCpSolverResponseOrBuilder
-
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;
-
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;
-
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;
-
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;
- Specified by:
getSufficientAssumptionsForInfeasibilityList
in interfaceCpSolverResponseOrBuilder
- Returns:
- A list containing the sufficientAssumptionsForInfeasibility.
-
getSufficientAssumptionsForInfeasibilityCount
public int 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;
- Specified by:
getSufficientAssumptionsForInfeasibilityCount
in interfaceCpSolverResponseOrBuilder
- Returns:
- The count of sufficientAssumptionsForInfeasibility.
-
getSufficientAssumptionsForInfeasibility
public int 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;
- Specified by:
getSufficientAssumptionsForInfeasibility
in interfaceCpSolverResponseOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The sufficientAssumptionsForInfeasibility at the given index.
-
setSufficientAssumptionsForInfeasibility
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;
- Parameters:
index
- The index to set the value at.value
- The sufficientAssumptionsForInfeasibility to set.- Returns:
- This builder for chaining.
-
addSufficientAssumptionsForInfeasibility
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;
- Parameters:
value
- The sufficientAssumptionsForInfeasibility to add.- Returns:
- This builder for chaining.
-
addAllSufficientAssumptionsForInfeasibility
public CpSolverResponse.Builder addAllSufficientAssumptionsForInfeasibility(Iterable<? extends 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;
- Parameters:
values
- The sufficientAssumptionsForInfeasibility to add.- Returns:
- This builder for chaining.
-
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;
- Returns:
- This builder for chaining.
-
hasIntegerObjective
public boolean 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;
- Specified by:
hasIntegerObjective
in interfaceCpSolverResponseOrBuilder
- Returns:
- Whether the integerObjective field is set.
-
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;
- Specified by:
getIntegerObjective
in interfaceCpSolverResponseOrBuilder
- Returns:
- The integerObjective.
-
setIntegerObjective
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;
-
setIntegerObjective
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;
-
mergeIntegerObjective
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;
-
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;
-
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;
-
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;
- Specified by:
getIntegerObjectiveOrBuilder
in interfaceCpSolverResponseOrBuilder
-
getInnerObjectiveLowerBound
public long getInnerObjectiveLowerBound()Advanced usage. A lower bound on the 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. TODO(user): This should be renamed integer_objective_lower_bound.
int64 inner_objective_lower_bound = 29;
- Specified by:
getInnerObjectiveLowerBound
in interfaceCpSolverResponseOrBuilder
- Returns:
- The innerObjectiveLowerBound.
-
setInnerObjectiveLowerBound
Advanced usage. A lower bound on the 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. TODO(user): This should be renamed integer_objective_lower_bound.
int64 inner_objective_lower_bound = 29;
- Parameters:
value
- The innerObjectiveLowerBound to set.- Returns:
- This builder for chaining.
-
clearInnerObjectiveLowerBound
Advanced usage. A lower bound on the 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. TODO(user): This should be renamed integer_objective_lower_bound.
int64 inner_objective_lower_bound = 29;
- Returns:
- This builder for chaining.
-
getNumIntegers
public long 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;
- Specified by:
getNumIntegers
in interfaceCpSolverResponseOrBuilder
- Returns:
- The numIntegers.
-
setNumIntegers
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;
- Parameters:
value
- The numIntegers to set.- Returns:
- This builder for chaining.
-
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;
- Returns:
- This builder for chaining.
-
getNumBooleans
public long getNumBooleans()int64 num_booleans = 10;
- Specified by:
getNumBooleans
in interfaceCpSolverResponseOrBuilder
- Returns:
- The numBooleans.
-
setNumBooleans
int64 num_booleans = 10;
- Parameters:
value
- The numBooleans to set.- Returns:
- This builder for chaining.
-
clearNumBooleans
int64 num_booleans = 10;
- Returns:
- This builder for chaining.
-
getNumFixedBooleans
public long getNumFixedBooleans()int64 num_fixed_booleans = 31;
- Specified by:
getNumFixedBooleans
in interfaceCpSolverResponseOrBuilder
- Returns:
- The numFixedBooleans.
-
setNumFixedBooleans
int64 num_fixed_booleans = 31;
- Parameters:
value
- The numFixedBooleans to set.- Returns:
- This builder for chaining.
-
clearNumFixedBooleans
int64 num_fixed_booleans = 31;
- Returns:
- This builder for chaining.
-
getNumConflicts
public long getNumConflicts()int64 num_conflicts = 11;
- Specified by:
getNumConflicts
in interfaceCpSolverResponseOrBuilder
- Returns:
- The numConflicts.
-
setNumConflicts
int64 num_conflicts = 11;
- Parameters:
value
- The numConflicts to set.- Returns:
- This builder for chaining.
-
clearNumConflicts
int64 num_conflicts = 11;
- Returns:
- This builder for chaining.
-
getNumBranches
public long getNumBranches()int64 num_branches = 12;
- Specified by:
getNumBranches
in interfaceCpSolverResponseOrBuilder
- Returns:
- The numBranches.
-
setNumBranches
int64 num_branches = 12;
- Parameters:
value
- The numBranches to set.- Returns:
- This builder for chaining.
-
clearNumBranches
int64 num_branches = 12;
- Returns:
- This builder for chaining.
-
getNumBinaryPropagations
public long getNumBinaryPropagations()int64 num_binary_propagations = 13;
- Specified by:
getNumBinaryPropagations
in interfaceCpSolverResponseOrBuilder
- Returns:
- The numBinaryPropagations.
-
setNumBinaryPropagations
int64 num_binary_propagations = 13;
- Parameters:
value
- The numBinaryPropagations to set.- Returns:
- This builder for chaining.
-
clearNumBinaryPropagations
int64 num_binary_propagations = 13;
- Returns:
- This builder for chaining.
-
getNumIntegerPropagations
public long getNumIntegerPropagations()int64 num_integer_propagations = 14;
- Specified by:
getNumIntegerPropagations
in interfaceCpSolverResponseOrBuilder
- Returns:
- The numIntegerPropagations.
-
setNumIntegerPropagations
int64 num_integer_propagations = 14;
- Parameters:
value
- The numIntegerPropagations to set.- Returns:
- This builder for chaining.
-
clearNumIntegerPropagations
int64 num_integer_propagations = 14;
- Returns:
- This builder for chaining.
-
getNumRestarts
public long getNumRestarts()int64 num_restarts = 24;
- Specified by:
getNumRestarts
in interfaceCpSolverResponseOrBuilder
- Returns:
- The numRestarts.
-
setNumRestarts
int64 num_restarts = 24;
- Parameters:
value
- The numRestarts to set.- Returns:
- This builder for chaining.
-
clearNumRestarts
int64 num_restarts = 24;
- Returns:
- This builder for chaining.
-
getNumLpIterations
public long getNumLpIterations()int64 num_lp_iterations = 25;
- Specified by:
getNumLpIterations
in interfaceCpSolverResponseOrBuilder
- Returns:
- The numLpIterations.
-
setNumLpIterations
int64 num_lp_iterations = 25;
- Parameters:
value
- The numLpIterations to set.- Returns:
- This builder for chaining.
-
clearNumLpIterations
int64 num_lp_iterations = 25;
- Returns:
- This builder for chaining.
-
getWallTime
public double getWallTime()The time counted from the beginning of the Solve() call.
double wall_time = 15;
- Specified by:
getWallTime
in interfaceCpSolverResponseOrBuilder
- Returns:
- The wallTime.
-
setWallTime
The time counted from the beginning of the Solve() call.
double wall_time = 15;
- Parameters:
value
- The wallTime to set.- Returns:
- This builder for chaining.
-
clearWallTime
The time counted from the beginning of the Solve() call.
double wall_time = 15;
- Returns:
- This builder for chaining.
-
getUserTime
public double getUserTime()double user_time = 16;
- Specified by:
getUserTime
in interfaceCpSolverResponseOrBuilder
- Returns:
- The userTime.
-
setUserTime
double user_time = 16;
- Parameters:
value
- The userTime to set.- Returns:
- This builder for chaining.
-
clearUserTime
double user_time = 16;
- Returns:
- This builder for chaining.
-
getDeterministicTime
public double getDeterministicTime()double deterministic_time = 17;
- Specified by:
getDeterministicTime
in interfaceCpSolverResponseOrBuilder
- Returns:
- The deterministicTime.
-
setDeterministicTime
double deterministic_time = 17;
- Parameters:
value
- The deterministicTime to set.- Returns:
- This builder for chaining.
-
clearDeterministicTime
double deterministic_time = 17;
- Returns:
- This builder for chaining.
-
getGapIntegral
public double getGapIntegral()The integral of log(1 + absolute_objective_gap) over time.
double gap_integral = 22;
- Specified by:
getGapIntegral
in interfaceCpSolverResponseOrBuilder
- Returns:
- The gapIntegral.
-
setGapIntegral
The integral of log(1 + absolute_objective_gap) over time.
double gap_integral = 22;
- Parameters:
value
- The gapIntegral to set.- Returns:
- This builder for chaining.
-
clearGapIntegral
The integral of log(1 + absolute_objective_gap) over time.
double gap_integral = 22;
- Returns:
- This builder for chaining.
-
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;
- Specified by:
getSolutionInfo
in interfaceCpSolverResponseOrBuilder
- Returns:
- The solutionInfo.
-
getSolutionInfoBytes
public com.google.protobuf.ByteString 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;
- Specified by:
getSolutionInfoBytes
in interfaceCpSolverResponseOrBuilder
- Returns:
- The bytes for solutionInfo.
-
setSolutionInfo
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;
- Parameters:
value
- The solutionInfo to set.- Returns:
- This builder for chaining.
-
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;
- Returns:
- This builder for chaining.
-
setSolutionInfoBytes
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;
- Parameters:
value
- The bytes for solutionInfo to set.- Returns:
- This builder for chaining.
-
getSolveLog
The solve log will be filled if the parameter log_to_response is set to true.
string solve_log = 26;
- Specified by:
getSolveLog
in interfaceCpSolverResponseOrBuilder
- Returns:
- The solveLog.
-
getSolveLogBytes
public com.google.protobuf.ByteString getSolveLogBytes()The solve log will be filled if the parameter log_to_response is set to true.
string solve_log = 26;
- Specified by:
getSolveLogBytes
in interfaceCpSolverResponseOrBuilder
- Returns:
- The bytes for solveLog.
-
setSolveLog
The solve log will be filled if the parameter log_to_response is set to true.
string solve_log = 26;
- Parameters:
value
- The solveLog to set.- Returns:
- This builder for chaining.
-
clearSolveLog
The solve log will be filled if the parameter log_to_response is set to true.
string solve_log = 26;
- Returns:
- This builder for chaining.
-
setSolveLogBytes
The solve log will be filled if the parameter log_to_response is set to true.
string solve_log = 26;
- Parameters:
value
- The bytes for solveLog to set.- Returns:
- This builder for chaining.
-