|
|
Trees | Indices | Help |
|
|---|
Gracefully terminates the solve and tuning methods of CPLEX.
You can pass an instance of this class to one or more Cplex objects.
Calling the method abort() will then terminate the solve or tuning method of the Cplex object.
| Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
| Method Details |
Constructor of the Aborter class. The Aborter object is a context manager and can be used, like so:
When the with block is finished, the end() method will be called automatically. |
Aborts the solving and tuning methods. Example usage: >>> aborter = cplex.Aborter() >>> aborter.abort() |
Clears the invoking aborter. Example usage: >>> aborter = cplex.Aborter() >>> aborter.clear() |
Returns True if the method to abort has been called. Example usage: >>> aborter = cplex.Aborter() >>> aborter.is_aborted() False |
Ends the invoking aborter. Example usage: >>> aborter = cplex.Aborter() >>> aborter.end() |
Enter the runtime context related to this object. The with statement will bind this method's return value to the target specified in the as clause of the statement, if any. Aborter objects return themselves. |
Exit the runtime context. When we exit the with block, the end() method is called. |
|
|
Trees | Indices | Help |
|
|---|