Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
com.google.ortools.modelbuilder.ModelSolverHelper Class Reference

Public Member Functions

synchronized void delete ()
 
 ModelSolverHelper (String solver_name)
 
boolean solverIsSupported ()
 
void solve (ModelBuilderHelper model)
 
boolean interruptSolve ()
 
void setLogCallback (java.util.function.Consumer< String > log_callback)
 
void clearLogCallback ()
 
boolean hasResponse ()
 
boolean hasSolution ()
 
SolveStatus getStatus ()
 
double getObjectiveValue ()
 
double getBestObjectiveBound ()
 
double getVariableValue (int var_index)
 
double getReducedCost (int var_index)
 
double getDualValue (int ct_index)
 
double getActivity (int ct_index)
 
String getStatusString ()
 
double getWallTime ()
 
double getUserTime ()
 
void setTimeLimitInSeconds (double limit)
 
void setSolverSpecificParameters (String solver_specific_parameters)
 
void enableOutput (boolean enabled)
 

Protected Member Functions

 ModelSolverHelper (long cPtr, boolean cMemoryOwn)
 
void finalize ()
 

Static Protected Member Functions

static long getCPtr (ModelSolverHelper obj)
 
static long swigRelease (ModelSolverHelper obj)
 

Protected Attributes

transient boolean swigCMemOwn
 

Detailed Description

Definition at line 11 of file ModelSolverHelper.java.

Constructor & Destructor Documentation

◆ ModelSolverHelper() [1/2]

com.google.ortools.modelbuilder.ModelSolverHelper.ModelSolverHelper ( long cPtr,
boolean cMemoryOwn )
protected

Definition at line 15 of file ModelSolverHelper.java.

◆ ModelSolverHelper() [2/2]

com.google.ortools.modelbuilder.ModelSolverHelper.ModelSolverHelper ( String solver_name)

Definition at line 51 of file ModelSolverHelper.java.

Member Function Documentation

◆ clearLogCallback()

void com.google.ortools.modelbuilder.ModelSolverHelper.clearLogCallback ( )

Definition at line 71 of file ModelSolverHelper.java.

◆ delete()

synchronized void com.google.ortools.modelbuilder.ModelSolverHelper.delete ( )

Definition at line 41 of file ModelSolverHelper.java.

◆ enableOutput()

void com.google.ortools.modelbuilder.ModelSolverHelper.enableOutput ( boolean enabled)

Definition at line 131 of file ModelSolverHelper.java.

◆ finalize()

void com.google.ortools.modelbuilder.ModelSolverHelper.finalize ( )
protected

Definition at line 37 of file ModelSolverHelper.java.

◆ getActivity()

double com.google.ortools.modelbuilder.ModelSolverHelper.getActivity ( int ct_index)

Definition at line 107 of file ModelSolverHelper.java.

◆ getBestObjectiveBound()

double com.google.ortools.modelbuilder.ModelSolverHelper.getBestObjectiveBound ( )

Definition at line 91 of file ModelSolverHelper.java.

◆ getCPtr()

static long com.google.ortools.modelbuilder.ModelSolverHelper.getCPtr ( ModelSolverHelper obj)
staticprotected

Definition at line 20 of file ModelSolverHelper.java.

◆ getDualValue()

double com.google.ortools.modelbuilder.ModelSolverHelper.getDualValue ( int ct_index)

Definition at line 103 of file ModelSolverHelper.java.

◆ getObjectiveValue()

double com.google.ortools.modelbuilder.ModelSolverHelper.getObjectiveValue ( )

Definition at line 87 of file ModelSolverHelper.java.

◆ getReducedCost()

double com.google.ortools.modelbuilder.ModelSolverHelper.getReducedCost ( int var_index)

Definition at line 99 of file ModelSolverHelper.java.

◆ getStatus()

SolveStatus com.google.ortools.modelbuilder.ModelSolverHelper.getStatus ( )

Definition at line 83 of file ModelSolverHelper.java.

◆ getStatusString()

String com.google.ortools.modelbuilder.ModelSolverHelper.getStatusString ( )

Definition at line 111 of file ModelSolverHelper.java.

◆ getUserTime()

double com.google.ortools.modelbuilder.ModelSolverHelper.getUserTime ( )

Definition at line 119 of file ModelSolverHelper.java.

◆ getVariableValue()

double com.google.ortools.modelbuilder.ModelSolverHelper.getVariableValue ( int var_index)

Definition at line 95 of file ModelSolverHelper.java.

◆ getWallTime()

double com.google.ortools.modelbuilder.ModelSolverHelper.getWallTime ( )

Definition at line 115 of file ModelSolverHelper.java.

◆ hasResponse()

boolean com.google.ortools.modelbuilder.ModelSolverHelper.hasResponse ( )

Definition at line 75 of file ModelSolverHelper.java.

◆ hasSolution()

boolean com.google.ortools.modelbuilder.ModelSolverHelper.hasSolution ( )

Definition at line 79 of file ModelSolverHelper.java.

◆ interruptSolve()

boolean com.google.ortools.modelbuilder.ModelSolverHelper.interruptSolve ( )

Definition at line 63 of file ModelSolverHelper.java.

◆ setLogCallback()

void com.google.ortools.modelbuilder.ModelSolverHelper.setLogCallback ( java.util.function.Consumer< String > log_callback)

Definition at line 67 of file ModelSolverHelper.java.

◆ setSolverSpecificParameters()

void com.google.ortools.modelbuilder.ModelSolverHelper.setSolverSpecificParameters ( String solver_specific_parameters)

Definition at line 127 of file ModelSolverHelper.java.

◆ setTimeLimitInSeconds()

void com.google.ortools.modelbuilder.ModelSolverHelper.setTimeLimitInSeconds ( double limit)

Definition at line 123 of file ModelSolverHelper.java.

◆ solve()

void com.google.ortools.modelbuilder.ModelSolverHelper.solve ( ModelBuilderHelper model)

Definition at line 59 of file ModelSolverHelper.java.

◆ solverIsSupported()

boolean com.google.ortools.modelbuilder.ModelSolverHelper.solverIsSupported ( )

Definition at line 55 of file ModelSolverHelper.java.

◆ swigRelease()

static long com.google.ortools.modelbuilder.ModelSolverHelper.swigRelease ( ModelSolverHelper obj)
staticprotected

Definition at line 24 of file ModelSolverHelper.java.

Member Data Documentation

◆ swigCMemOwn

transient boolean com.google.ortools.modelbuilder.ModelSolverHelper.swigCMemOwn
protected

Definition at line 13 of file ModelSolverHelper.java.


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