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

Public Member Functions

synchronized void delete ()
 
void initialize (Assignment assignment)
 
void registerNewSolution (Assignment assignment)
 
void getNextSolution (Assignment assignment)
 
boolean syncNeeded (Assignment local_assignment)
 
- Public Member Functions inherited from com.google.ortools.constraintsolver.BaseObject
 BaseObject ()
 
String toString ()
 

Protected Member Functions

 SolutionPool (long cPtr, boolean cMemoryOwn)
 
void finalize ()
 
- Protected Member Functions inherited from com.google.ortools.constraintsolver.BaseObject
 BaseObject (long cPtr, boolean cMemoryOwn)
 

Static Protected Member Functions

static long getCPtr (SolutionPool obj)
 
static long swigRelease (SolutionPool obj)
 
- Static Protected Member Functions inherited from com.google.ortools.constraintsolver.BaseObject
static long getCPtr (BaseObject obj)
 
static long swigRelease (BaseObject obj)
 

Additional Inherited Members

- Protected Attributes inherited from com.google.ortools.constraintsolver.BaseObject
transient boolean swigCMemOwn
 

Detailed Description

This class is used to manage a pool of solutions. It can transform
a single point local search into a multipoint local search.

Definition at line 15 of file SolutionPool.java.

Constructor & Destructor Documentation

◆ SolutionPool()

com.google.ortools.constraintsolver.SolutionPool.SolutionPool ( long cPtr,
boolean cMemoryOwn )
protected

Definition at line 18 of file SolutionPool.java.

Member Function Documentation

◆ delete()

synchronized void com.google.ortools.constraintsolver.SolutionPool.delete ( )

Reimplemented from com.google.ortools.constraintsolver.BaseObject.

Definition at line 44 of file SolutionPool.java.

◆ finalize()

void com.google.ortools.constraintsolver.SolutionPool.finalize ( )
protected

Reimplemented from com.google.ortools.constraintsolver.BaseObject.

Definition at line 40 of file SolutionPool.java.

◆ getCPtr()

static long com.google.ortools.constraintsolver.SolutionPool.getCPtr ( SolutionPool obj)
staticprotected

Definition at line 23 of file SolutionPool.java.

◆ getNextSolution()

void com.google.ortools.constraintsolver.SolutionPool.getNextSolution ( Assignment assignment)

This method is called when the local search starts a new neighborhood to
initialize the default assignment.

Definition at line 75 of file SolutionPool.java.

◆ initialize()

void com.google.ortools.constraintsolver.SolutionPool.initialize ( Assignment assignment)

This method is called to initialize the solution pool with the assignment
from the local search.

Definition at line 59 of file SolutionPool.java.

◆ registerNewSolution()

void com.google.ortools.constraintsolver.SolutionPool.registerNewSolution ( Assignment assignment)

This method is called when a new solution has been accepted by the local
search.

Definition at line 67 of file SolutionPool.java.

◆ swigRelease()

static long com.google.ortools.constraintsolver.SolutionPool.swigRelease ( SolutionPool obj)
staticprotected

Definition at line 27 of file SolutionPool.java.

◆ syncNeeded()

boolean com.google.ortools.constraintsolver.SolutionPool.syncNeeded ( Assignment local_assignment)

This method checks if the local solution needs to be updated with
an external one.

Definition at line 83 of file SolutionPool.java.


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