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

350 APPENDIX A. API REFERENCE A.2.252 Task.readdata() Task.readdata(filename) Reads problem data from a file. Arguments filename : str Data is read from the file filename. Description: See also Reads an optimization problem and associated data from a file. • iparam.read data format Format of the data file to be read. A.2.253 Task.readdataformat() Task.readdataformat( filename, format, compress) Reads problem data from a file. Arguments compress : compresstype File compression type. filename : str Data is read from the file filename. format : dataformat File data format. Description: See also Reads an optimization problem and associated data from a file. • iparam.read data format Format of the data file to be read.

A.2. CLASS TASK 351 A.2.254 Task.readparamfile() Task.readparamfile() Reads a parameter file. Description: Reads a parameter file. A.2.255 Task.readsolution() Task.readsolution( whichsol, filename) Reads a solution from a file. Arguments filename : str A valid file name. whichsol : soltype Selects a solution. Description: Reads a solution file and inserts the solution into the solution whichsol. A.2.256 Task.readsummary() Task.readsummary(whichstream) Prints information about last file read. Arguments whichstream : streamtype Index of the stream. Description: Prints a short summary of last file that was read.

A.2. CLASS TASK 351<br />

A.2.254<br />

Task.readparamfile()<br />

Task.readparamfile()<br />

Reads a parameter file.<br />

Description:<br />

Reads a parameter file.<br />

A.2.255<br />

Task.readsolution()<br />

Task.readsolution(<br />

whichsol,<br />

filename)<br />

Reads a solution from a file.<br />

Arguments<br />

filename : str<br />

A valid file name.<br />

whichsol : soltype<br />

Selects a solution.<br />

Description:<br />

Reads a solution file and inserts the solution into the solution whichsol.<br />

A.2.256<br />

Task.readsummary()<br />

Task.readsummary(whichstream)<br />

Prints information about last file read.<br />

Arguments<br />

whichstream : streamtype<br />

Index of the stream.<br />

Description:<br />

Prints a short summary of last file that was read.

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

Saved successfully!

Ooh no, something went wrong!