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.