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

362 APPENDIX A. API REFERENCE A.2.276 Task.writeparamfile() Task.writeparamfile(filename) Writes all the parameters to a parameter file. Arguments filename : str The name of parameter file. Description: Writes all the parameters to a parameter file. A.2.277 Task.writesolution() Task.writesolution( whichsol, filename) Write a solution to a file. Arguments filename : str A valid file name. whichsol : soltype Selects a solution. Description: See also Saves the current basic, interior-point, or integer solution to a file. • iparam.write sol ignore invalid names Controls whther the user specified names are employed even if they are invalid names. • iparam.write sol head Controls solution file format. • iparam.write sol constraints Controls the solution file format. • iparam.write sol variables Controls the solution file format. • iparam.write sol barvariables Controls the solution file format. • iparam.write bas head Controls the basic solution file format. • iparam.write bas constraints Controls the basic solution file format. • iparam.write bas variables Controls the basic solution file format.

A.3. CLASS ENV 363 A.2.278 Task.writetask() Task.writetask(filename) Write a complete binary dump of the task data. Arguments filename : Description: str Output file name. Write a binary dump of the task data. This format saves all problem data, but not callbackfunktions and general non-linear terms. See section F.4 for a description of the Task format. A.3 Class Env A.3.1 Env.checkinlicense() Env.checkinlicense(feature) Check in a license feature from the license server ahead of time. Arguments feature : Description: feature Feature to check in to the license system. Check in a license feature to the license server. By default all licenses consumed by functions using a single environment is kept checked out for the lifetime of the MOSEK environment. This function checks in a given license feature to the license server immidiatly. If the given license feature is not checked out or is in use by a call to Task.optimize calling this function has no effect. Please note that returning a license to the license server incurs a small overhead, so frequent calls to this function should be avoided.

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

A.2.276<br />

Task.writeparamfile()<br />

Task.writeparamfile(filename)<br />

Writes all the parameters to a parameter file.<br />

Arguments<br />

filename : str<br />

<strong>The</strong> name of parameter file.<br />

Description:<br />

Writes all the parameters to a parameter file.<br />

A.2.277<br />

Task.writesolution()<br />

Task.writesolution(<br />

whichsol,<br />

filename)<br />

Write a solution to a file.<br />

Arguments<br />

filename : str<br />

A valid file name.<br />

whichsol : soltype<br />

Selects a solution.<br />

Description:<br />

See also<br />

Saves the current basic, interior-point, or integer solution to a file.<br />

• iparam.write sol ignore invalid names Controls whther the user specified names are<br />

employed even if they are invalid names.<br />

• iparam.write sol head Controls solution file format.<br />

• iparam.write sol constraints Controls the solution file format.<br />

• iparam.write sol variables Controls the solution file format.<br />

• iparam.write sol barvariables Controls the solution file format.<br />

• iparam.write bas head Controls the basic solution file format.<br />

• iparam.write bas constraints Controls the basic solution file format.<br />

• iparam.write bas variables Controls the basic solution file format.

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

Saved successfully!

Ooh no, something went wrong!