25.11.2015 Views

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

Optimizer API for Python - Documentation - Mosek

Optimizer API for Python - Documentation - Mosek

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

9.3. WRITING TASK DATA TO A FILE 121<br />

• iparam.log,<br />

• iparam.log intpnt,<br />

• iparam.log mio,<br />

• iparam.log cut second opt,<br />

• iparam.log sim, and<br />

• iparam.log sim minor.<br />

By default <strong>MOSEK</strong> will reduce the amount of log information after the first optimization on a given<br />

task. To get full log output on subsequent optimizations set:<br />

iparam.log cut second opt 0<br />

9.3 Writing task data to a file<br />

If something is wrong with a problem or a solution, one option is to output the problem to an OPF<br />

file and inspect it by hand. Use the Task.writedata function to write a task to a file immediately<br />

before optimizing, for example as follows:<br />

task.writedata("taskdump.opf")<br />

task.optimizetrm()<br />

This will write the problem in task to the file taskdump.opf. Inspecting the text file taskdump.opf<br />

may reveal what is wrong in the problem setup.<br />

9.4 Important <strong>API</strong> limitations<br />

9.4.1 Thread safety<br />

<strong>The</strong> <strong>MOSEK</strong> <strong>API</strong> is thread safe in the sense that any number of threads may use it simultaneously.<br />

However, the individual tasks and environments may only be accessed from at most one thread at a<br />

time.<br />

9.5 Bug reporting<br />

If you think <strong>MOSEK</strong> is solving your problem incorrectly, please contact <strong>MOSEK</strong> support at<br />

support@mosek.com<br />

providing a detailed description of the problem. <strong>MOSEK</strong> support may ask for the task file which is<br />

produced as follows<br />

task.writedata("data.task.gz")

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

Saved successfully!

Ooh no, something went wrong!