XPRBsync
PurposeSynchronize BCL with the Optimizer.Synopsisint XPRBsync(XPRBprob prob, int synctype);
Arguments
prob Reference to a problem. synctype Type of the synchronization. Possible values:
XPRB_XPRS_SOL XPRB_XPRS_PROB Return value0 if function executed successfully, 1 otherwise.ExampleThe 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 information1. 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
If you have any comments or suggestions about these pages, please send mail to docs@dashoptimization.com.