problem.copycallbacks
problem.copycallbacks |
Purpose
Copies callback functions defined for one problem to another.
Synopsis
problem.copycallbacks(src)
Argument
src
|
The problem from which the callbacks are copied.
|
Example
The following sets up a message callback function
callback for problem
prob1 and then copies this to the problem
prob2.
prob1 = xp.problem() prob1.addcbmessage(callback, None, 0) prob2 = xp.problem() prob2.copycallbacks(prob1)
Related topics