Initializing help system before first use

xpress.ctrl

Purpose

Internal object class used for the controls of an xpress.problem. The user can read and write controls for a problem, but cannot create objects of this class.


Example
The following example creates a problem and then reads and sets a few of its controls:
import xpress as xp

p = xp.problem()

x = [p.addVariable() for _ in range(10)]

p.addConstraint(xp.Sum(x) >= 1)

print('miprelstop is currently", p.controls.miprelstop)

p.controls.miprelstop = 1e-7
p.controls.xslp_solver = 0

# An equivalent way to do the two lines above
p.setControl({'miprelstop': 1e-7, 'xslp_solver': 0})
Related topics

© 2001-2024 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.