CallbackBase.CallbackBase()

Constructor of CallbackBase, implementing ICallback interface.

Synopsis

CallbackBase()

CallbackBase.addLazyConstr()

Add a lazy constraint to model.

Synopsis

void addLazyConstr(

Expr lhs,

char sense,

double rhs)

Arguments

lhs: expression for lazy contraint.

sense: sense for lazy constraint.

rhs: right hand side value for lazy constraint.

CallbackBase.addLazyConstr()

Add a lazy constraint to model.

Synopsis

void addLazyConstr(

Expr lhs,

char sense,

Expr rhs)

Arguments

lhs: left hand side expression for lazy contraint.

sense: sense for lazy constraint.

rhs: right hand side expression for lazy contraint.

CallbackBase.addLazyConstr()

Add a lazy constraint to model.

Synopsis

void addLazyConstr(ConstrBuilder builder)

Arguments

builder: builder for lazy contraint.

CallbackBase.addLazyConstrs()

Add lazy constraints to model.

Synopsis

void addLazyConstrs(ConstrBuilderArray builders)

Arguments

builders: array of builders for lazy contraints.

CallbackBase.addUserCut()

Add a user cut to model.

Synopsis

void addUserCut(

Expr lhs,

char sense,

double rhs)

Arguments

lhs: expression for user cut.

sense: sense for user cut.

rhs: right hand side value for user cut.

CallbackBase.addUserCut()

Add a user cut to model.

Synopsis

void addUserCut(

Expr lhs,

char sense,

Expr rhs)

Arguments

lhs: left hand side expression for user cut.

sense: sense for user cut.

rhs: right hand side expression for user cut.

CallbackBase.addUserCut()

Add a user cut to model.

Synopsis

void addUserCut(ConstrBuilder builder)

Arguments

builder: builder for user cut.

CallbackBase.addUserCuts()

Add user cuts to model.

Synopsis

void addUserCuts(ConstrBuilderArray builders)

Arguments

builders: array of builders for user cuts.

CallbackBase.callback()

Pure virtual function defined in ICallback interface. User must implement it.

Synopsis

void callback()

CallbackBase.getDblInfo()

Get double value of given information name in callback.

Synopsis

double getDblInfo(String cbinfo)

Arguments

cbinfo: name of callback info.

Return

value of desired information.

CallbackBase.getIncumbent()

Get best feasible solution of given variable in callback.

Synopsis

double getIncumbent(Var var)

Arguments

var: given variable.

Return

best feasible solution of given variable.

CallbackBase.getIncumbent()

Get best feasible solution of variables in callback.

Synopsis

double[] getIncumbent(VarArray vars)

Arguments

vars: an array of variables.

Return

best feasible solution of desired variables.

CallbackBase.getIncumbent()

Get best feasible solution of variables in callback.

Synopsis

double[] getIncumbent(Var[] vars)

Arguments

vars: an array of variables.

Return

best feasible solution of desired variables.

CallbackBase.getIncumbent()

Get best feasible solution of all variables in callback.

Synopsis

double[] getIncumbent()

Return

best feasible solution of all variables.

CallbackBase.getIntInfo()

Get integer value of given information name in callback.

Synopsis

int getIntInfo(String cbinfo)

Arguments

cbinfo: name of callback info.

Return

value of desired information.

CallbackBase.getRelaxSol()

Get LP-relaxation solution of given variable in callback.

Synopsis

double getRelaxSol(Var var)

Arguments

var: given variable.

Return

LP-relaxation solution of given variable.

CallbackBase.getRelaxSol()

Get LP-relaxation solution of variables in callback.

Synopsis

double[] getRelaxSol(VarArray vars)

Arguments

vars: an array of variables.

Return

LP-relaxation solution of variables.

CallbackBase.getRelaxSol()

Get LP-relaxation solution of variables in callback.

Synopsis

double[] getRelaxSol(Var[] vars)

Arguments

vars: an array of variables.

Return

LP-relaxation solution of variables.

CallbackBase.getRelaxSol()

Get LP-relaxation solution of all variables in callback.

Synopsis

double[] getRelaxSol()

Return

LP-relaxation solution of all variables.

CallbackBase.getSolution()

Get solution of given variable in callback.

Synopsis

double getSolution(Var var)

Arguments

var: given variable.

Return

solution of given variable.

CallbackBase.getSolution()

Get solution of variables in callback.

Synopsis

double[] getSolution(VarArray vars)

Arguments

vars: an array of variables.

Return

solution of variables.

CallbackBase.getSolution()

Get solution of variables in callback.

Synopsis

double[] getSolution(Var[] vars)

Arguments

vars: an array of variables.

Return

solution of variables.

CallbackBase.getSolution()

Get solution of all variables in callback.

Synopsis

double[] getSolution()

Return

solution of all variables.

CallbackBase.interrupt()

Interrupt solving problems in callback

Synopsis

void interrupt()

CallbackBase.loadSolution()

Load customized solution to model.

Synopsis

double loadSolution()

Return

objective value of given solution.

CallbackBase.setSolution()

Set solution of a given variable in callback.

Synopsis

void setSolution(Var var, double val)

Arguments

var: a variable object.

val: double value.

CallbackBase.setSolution()

Set solution of variables in callback.

Synopsis

void setSolution(VarArray vars, double[] vals)

Arguments

vars: an array of variable objects.

vals: an array of double values.

CallbackBase.setSolution()

Set solution of variables in callback.

Synopsis

void setSolution(Var[] vars, double[] vals)

Arguments

vars: an array of variable objects.

vals: an array of double values.

CallbackBase.where()

Get context in callback.

Synopsis

int where()

Return

integer value of context.