XPRBsync


Purpose
Synchronize BCL with the Optimizer.
Synopsis
int XPRBsync(XPRBprob prob, int synctype);
Arguments
prob 
Reference to a problem.
synctype 
Type of the synchronization. Possible values:
XPRB_XPRS_SOL 
update the BCL solution information with the solution currently held in the Optimizer;
XPRB_XPRS_PROB 
force problem reloading.
Return value
0 if function executed successfully, 1 otherwise.
Example
The following forces BCL to reload the matrix into the Optimizer even if there has been no change other than bound changes to the problem definition in BCL since the preceding optimization:
XPRBprob expl2;
expl2 = XPRBnewprob("example2");
 ...
XPRBsolve(expl2, "l");
 ...
XPRBsync(expl2, XPRB_XPRS_PROB);
XPRBsolve(expl2, "g");
Further information
1. This method resets the BCL problem status.
2. XPRB_XPRS_SOL: at the next solution access the solution information in BCL is updated with the solution held in the Optimizer (after MIP search: best integer solution, otherwise solution of the last LP solved).
3. XPRB_XPRS_PROB: at the next call to optimization or XPRBloadmat the problem is completely reloaded into the Optimizer; bound changes are not passed on to the problem loaded in the Optimizer any longer.
Related topics
XPRBgetsol, XPRBgetrcost, XPRBgetdual, XPRBgetslack, XPRBloadmat, XPRBminim, XPRBmaxim, XPRBsolve.


If you have any comments or suggestions about these pages, please send mail to docs@dashoptimization.com.