Initializing help system before first use

xpress.setdefaults

xpress.setdefaults


Purpose
Sets the module's controls to their default values. This affects all problems created after calling setdefaults, not before.
Synopsis
xpress.setdefaults ()
Example
The following creates two problems, one before and one after calling setdefaults():
xpress.controls.presolve = 0
p1 = xpress.problem()
xpress.setdefaults()
p2 = xpress.problem ()
print ('I bet p1.controls.presolve is 0:          ', p1.controls.presolve)
print ('I bet p2.controls.presolve is its default:', p2.controls.presolve)
Related topics