Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
com.google.ortools.constraintsolver.main Class Reference
Inheritance diagram for com.google.ortools.constraintsolver.main:
com.google.ortools.constraintsolver.mainConstants

Static Public Member Functions

static long CpRandomSeed ()
 
static long zero ()
 
static long One ()
 
static void setAssignmentFromAssignment (Assignment target_assignment, IntVar[] target_vars, Assignment source_assignment, IntVar[] source_vars)
 
static boolean areAllBound (IntVar[] vars)
 
static boolean areAllBooleans (IntVar[] vars)
 
static boolean areAllBoundTo (IntVar[] vars, long value)
 
static long maxVarArray (IntVar[] vars)
 
static long minVarArray (IntVar[] vars)
 
static long posIntDivUp (long e, long v)
 
static long posIntDivDown (long e, long v)
 
static com.google.ortools.constraintsolver.RoutingModelParameters defaultRoutingModelParameters ()
 
static com.google.ortools.constraintsolver.RoutingSearchParameters defaultRoutingSearchParameters ()
 
static String findErrorInRoutingSearchParameters (com.google.ortools.constraintsolver.RoutingSearchParameters search_parameters)
 
static boolean SolveModelWithSat (RoutingModel model, com.google.ortools.constraintsolver.RoutingSearchParameters search_parameters, Assignment initial_solution, Assignment solution)
 

Additional Inherited Members

- Static Public Attributes inherited from com.google.ortools.constraintsolver.mainConstants
static final int UNSPECIFIED = mainJNI.UNSPECIFIED_get()
 VarTypes.
 
static final int DOMAIN_INT_VAR = mainJNI.DOMAIN_INT_VAR_get()
 
static final int BOOLEAN_VAR = mainJNI.BOOLEAN_VAR_get()
 
static final int CONST_VAR = mainJNI.CONST_VAR_get()
 
static final int VAR_ADD_CST = mainJNI.VAR_ADD_CST_get()
 
static final int VAR_TIMES_CST = mainJNI.VAR_TIMES_CST_get()
 
static final int CST_SUB_VAR = mainJNI.CST_SUB_VAR_get()
 
static final int OPP_VAR = mainJNI.OPP_VAR_get()
 
static final int TRACE_VAR = mainJNI.TRACE_VAR_get()
 

Detailed Description

Definition at line 11 of file main.java.

Member Function Documentation

◆ areAllBooleans()

static boolean com.google.ortools.constraintsolver.main.areAllBooleans ( IntVar[] vars)
static

Definition at line 49 of file main.java.

◆ areAllBound()

static boolean com.google.ortools.constraintsolver.main.areAllBound ( IntVar[] vars)
static

Definition at line 45 of file main.java.

◆ areAllBoundTo()

static boolean com.google.ortools.constraintsolver.main.areAllBoundTo ( IntVar[] vars,
long value )
static

Returns true if all variables are assigned to 'value'.

Definition at line 56 of file main.java.

◆ CpRandomSeed()

static long com.google.ortools.constraintsolver.main.CpRandomSeed ( )
static

Definition at line 12 of file main.java.

◆ defaultRoutingModelParameters()

static com.google.ortools.constraintsolver.RoutingModelParameters com.google.ortools.constraintsolver.main.defaultRoutingModelParameters ( )
static

Definition at line 76 of file main.java.

◆ defaultRoutingSearchParameters()

static com.google.ortools.constraintsolver.RoutingSearchParameters com.google.ortools.constraintsolver.main.defaultRoutingSearchParameters ( )
static

Definition at line 89 of file main.java.

◆ findErrorInRoutingSearchParameters()

static String com.google.ortools.constraintsolver.main.findErrorInRoutingSearchParameters ( com.google.ortools.constraintsolver.RoutingSearchParameters search_parameters)
static

Returns an empty std::string if the routing search parameters are valid, and
a non-empty, human readable error description if they're not.

Definition at line 106 of file main.java.

◆ maxVarArray()

static long com.google.ortools.constraintsolver.main.maxVarArray ( IntVar[] vars)
static

Definition at line 60 of file main.java.

◆ minVarArray()

static long com.google.ortools.constraintsolver.main.minVarArray ( IntVar[] vars)
static

Definition at line 64 of file main.java.

◆ One()

static long com.google.ortools.constraintsolver.main.One ( )
static

This method returns 1

Definition at line 29 of file main.java.

◆ posIntDivDown()

static long com.google.ortools.constraintsolver.main.posIntDivDown ( long e,
long v )
static

Definition at line 72 of file main.java.

◆ posIntDivUp()

static long com.google.ortools.constraintsolver.main.posIntDivUp ( long e,
long v )
static

Definition at line 68 of file main.java.

◆ setAssignmentFromAssignment()

static void com.google.ortools.constraintsolver.main.setAssignmentFromAssignment ( Assignment target_assignment,
IntVar[] target_vars,
Assignment source_assignment,
IntVar[] source_vars )
static

NOLINT
Given a "source_assignment", clears the "target_assignment" and adds
all IntVars in "target_vars", with the values of the variables set according
to the corresponding values of "source_vars" in "source_assignment".
source_vars and target_vars must have the same number of elements.
The source and target assignments can belong to different Solvers.

Definition at line 41 of file main.java.

◆ SolveModelWithSat()

static boolean com.google.ortools.constraintsolver.main.SolveModelWithSat ( RoutingModel model,
com.google.ortools.constraintsolver.RoutingSearchParameters search_parameters,
Assignment initial_solution,
Assignment solution )
static

Attempts to solve the model using the cp-sat solver. As of 5/2019, will
solve the TSP corresponding to the model if it has a single vehicle.
Therefore the resulting solution might not actually be feasible. Will return
false if a solution could not be found.

Definition at line 116 of file main.java.

◆ zero()

static long com.google.ortools.constraintsolver.main.zero ( )
static

NOLINT
This method returns 0. It is useful when 0 can be cast either as
a pointer or as an integer value and thus lead to an ambiguous
function call.

Definition at line 22 of file main.java.


The documentation for this class was generated from the following file: