| Package | Description |
|---|---|
| com.google.ortools.constraintsolver |
| Modifier and Type | Method and Description |
|---|---|
IntBoolPair |
RoutingModel.addConstantDimension(long value,
long capacity,
boolean fix_start_cumul_to_zero,
java.lang.String name) |
IntBoolPair |
RoutingModel.addConstantDimensionWithSlack(long value,
long capacity,
long slack_max,
boolean fix_start_cumul_to_zero,
java.lang.String name)
Creates a dimension where the transit variable is constrained to be
equal to 'value'; 'capacity' is the upper bound of the cumul variables. 'name' is the name used to reference the dimension; this name is used to get cumul and transit variables from the routing model. Returns a pair consisting of an index to the registered unary transit callback and a bool denoting whether the dimension has been created. It is false if a dimension with the same name has already been created (and doesn't create the new dimension but still register a new callback). |
IntBoolPair |
RoutingModel.addMatrixDimension(long[][] values,
long capacity,
boolean fix_start_cumul_to_zero,
java.lang.String name)
Creates a dimension where the transit variable is constrained to be
equal to 'values[i][next(i)]' for node i; 'capacity' is the upper bound of the cumul variables. |
IntBoolPair |
RoutingModel.addVectorDimension(long[] values,
long capacity,
boolean fix_start_cumul_to_zero,
java.lang.String name)
Creates a dimension where the transit variable is constrained to be
equal to 'values[i]' for node i; 'capacity' is the upper bound of the cumul variables. |
| Modifier and Type | Method and Description |
|---|---|
protected static long |
IntBoolPair.getCPtr(IntBoolPair obj) |
static int |
mainJNI.IntBoolPair_first_get(long jarg1,
IntBoolPair jarg1_) |
static void |
mainJNI.IntBoolPair_first_set(long jarg1,
IntBoolPair jarg1_,
int jarg2) |
static boolean |
mainJNI.IntBoolPair_second_get(long jarg1,
IntBoolPair jarg1_) |
static void |
mainJNI.IntBoolPair_second_set(long jarg1,
IntBoolPair jarg1_,
boolean jarg2) |
static long |
mainJNI.new_IntBoolPair__SWIG_2(long jarg1,
IntBoolPair jarg1_) |
protected static long |
IntBoolPair.swigRelease(IntBoolPair obj) |
| Constructor and Description |
|---|
IntBoolPair(IntBoolPair other) |
Copyright © 2024. All rights reserved.