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

294 APPENDIX A. API REFERENCE param : sparam Which parameter. parname : str Parameter name. Description: Checks whether parname is a valid string parameter name. A.2.165 Task.linkfiletostream() Task.linkfiletostream( whichstream, filename, append) Directs all output from a task stream to a file. Arguments append : int If this argument is 0 the output file will be overwritten, otherwise text is append to the output file. filename : str The name of the file where text from the stream defined by whichstream is written. whichstream : streamtype Index of the stream. Description: Directs all output from a task stream to a file. A.2.166 Task.onesolutionsummary() Task.onesolutionsummary( whichstream, whichsol) Prints a short summary for the specified solution. Arguments whichsol : soltype Selects a solution.

A.2. CLASS TASK 295 whichstream : streamtype Index of the stream. Description: Prints a short summary for a specified solution. A.2.167 Task.optimize() trmcode = Task.optimize() Optimizes the problem. Arguments trmcode : rescode Is either rescode.ok or a termination response code. Description: See also Calls the optimizer. Depending on the problem type and the selected optimizer this will call one of the optimizers in MOSEK. By default the interior point optimizer will be selected for continuous problems. The optimizer may be selected manually by setting the parameter iparam.optimizer. • Task.optimizeconcurrent Optimize a given task with several optimizers concurrently. • Task.getsolution Obtains the complete solution. • Task.getsolutioni Obtains the solution for a single constraint or variable. • Task.getsolutioninfo Obtains information about of a solution. • iparam.optimizer Controls which optimizer is used to optimize the task. A.2.168 Task.optimizeconcurrent() Task.optimizeconcurrent(taskarray) Optimize a given task with several optimizers concurrently. Arguments taskarray : mosek.Task[] An array of num tasks.

294 APPENDIX A. <strong>API</strong> REFERENCE<br />

param : sparam<br />

Which parameter.<br />

parname : str<br />

Parameter name.<br />

Description:<br />

Checks whether parname is a valid string parameter name.<br />

A.2.165<br />

Task.linkfiletostream()<br />

Task.linkfiletostream(<br />

whichstream,<br />

filename,<br />

append)<br />

Directs all output from a task stream to a file.<br />

Arguments<br />

append : int<br />

If this argument is 0 the output file will be overwritten, otherwise text is append to the<br />

output file.<br />

filename : str<br />

<strong>The</strong> name of the file where text from the stream defined by whichstream is written.<br />

whichstream : streamtype<br />

Index of the stream.<br />

Description:<br />

Directs all output from a task stream to a file.<br />

A.2.166<br />

Task.onesolutionsummary()<br />

Task.onesolutionsummary(<br />

whichstream,<br />

whichsol)<br />

Prints a short summary for the specified solution.<br />

Arguments<br />

whichsol : soltype<br />

Selects a solution.

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

Saved successfully!

Ooh no, something went wrong!