The MOSEK Python optimizer API manual Version 7.0 (Revision 141)

Optimizer API for Python - Documentation - Mosek Optimizer API for Python - Documentation - Mosek

25.11.2015 Views

364 APPENDIX A. API REFERENCE A.3.2 Env.checkoutlicense() Env.checkoutlicense(feature) Check out a license feature from the license server ahead of time. Arguments feature : feature Feature to check out from the license system. Description: Check out a license feature from the license server. Normally the required license features will be automatically checked out the first time it is needed by the function Task.optimize. This function can be used to check out one or more features ahead of time. The license will remain checked out for the lifetime of the MOSEK environment or until the function Env.checkinlicense is called. If a given feature is already checked out when this function is called, only one feature will be checked out from the license server. A.3.3 Env.echointro() Env.echointro(longver) Prints an intro to message stream. Arguments longver : int If non-zero, then the intro is slightly longer. Description: Prints an intro to message stream. A.3.4 Env.getcodedesc() symname,str = Env.getcodedesc(code) Obtains a short description of a response code.

A.3. CLASS ENV 365 Arguments code : rescode A valid MOSEK response code. str : str Obtains a short description of a response code. symname : str Symbolic name corresponding to code. Description: Obtains a short description of the meaning of the response code given by code. A.3.5 Env.getversion() major,minor,build,revision = Env.getversion() Obtains MOSEK version information. Arguments build : int Build number. major : int Major version number. minor : int Minor version number. revision : int Revision number. Description: Obtains MOSEK version information. A.3.6 Env.licensecleanup() Env.licensecleanup() Stops all threads and delete all handles used by the license system. Description: Stops all threads and delete all handles used by the license system. If this function is called, it must be called as the last MOSEK API call. No other MOSEK API calls are valid after this.

A.3. CLASS ENV 365<br />

Arguments<br />

code : rescode<br />

A valid <strong>MOSEK</strong> response code.<br />

str : str<br />

Obtains a short description of a response code.<br />

symname : str<br />

Symbolic name corresponding to code.<br />

Description:<br />

Obtains a short description of the meaning of the response code given by code.<br />

A.3.5<br />

Env.getversion()<br />

major,minor,build,revision = Env.getversion()<br />

Obtains <strong>MOSEK</strong> version information.<br />

Arguments<br />

build : int<br />

Build number.<br />

major : int<br />

Major version number.<br />

minor : int<br />

Minor version number.<br />

revision : int<br />

<strong>Revision</strong> number.<br />

Description:<br />

Obtains <strong>MOSEK</strong> version information.<br />

A.3.6<br />

Env.licensecleanup()<br />

Env.licensecleanup()<br />

Stops all threads and delete all handles used by the license system.<br />

Description:<br />

Stops all threads and delete all handles used by the license system. If this function is called, it<br />

must be called as the last <strong>MOSEK</strong> <strong>API</strong> call. No other <strong>MOSEK</strong> <strong>API</strong> calls are valid after this.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!