The MOSEK Python optimizer API manual Version 7.0 (Revision 141)
Optimizer API for Python - Documentation - Mosek Optimizer API for Python - Documentation - Mosek
360 APPENDIX A. API REFERENCE A.2.272 Task.strtosk() sk = Task.strtosk(str) Obtains a status key. Arguments sk : int Status key corresponding to the string. str : str Status key string. Description: Obtains the status key corresponding to an explanatory string. A.2.273 Task.updatesolutioninfo() Task.updatesolutioninfo(whichsol) Update the information items related to the solution. Arguments whichsol : soltype Selects a solution. Description: Update the information items related to the solution. A.2.274 Task.writebranchpriorities() Task.writebranchpriorities(filename) Writes branching priority data to a file. Arguments filename : str Data is written to the file filename.
A.2. CLASS TASK 361 Description: Writes branching priority data to a file. See also • Task.readbranchpriorities Reads branching priority data from a file. A.2.275 Task.writedata() Task.writedata(filename) Writes problem data to a file. Arguments filename : str Data is written to the file filename if it is a nonempty string. Otherwise data is written to the file specified by sparam.data file name. Description: See also Writes problem data associated with the optimization task to a file in one of four formats: LP: A text based row oriented format. File extension .lp. See Appendix F.2. MPS: A text based column oriented format. File extension .mps. See Appendix F.1. OPF: A text based row oriented format. File extension .opf. Supports more problem types than MPS and LP. See Appendix F.3. TASK: A MOSEK specific binary format for fast reading and writing. File extension .task. By default the data file format is determined by the file name extension. This behaviour can be overridden by setting the iparam.write data format parameter. MOSEK is able to read and write files in a compressed format (gzip). To write in the compressed format append the extension ”.gz”. E.g to write a gzip compressed MPS file use the extension mps.gz. Please note that MPS, LP and OPF files require all variables to have unique names. If a task contains no names, it is possible to write the file with automaticly generated anonymous names by setting the iparam.write generic names parameter to onoffkey.on. Please note that if a general nonlinear function appears in the problem then such function cannot be written to file and MOSEK will issue a warning. • iparam.write data format Controls the output file format.
- Page 331 and 332: A.2. CLASS TASK 309 Description: Th
- Page 333 and 334: A.2. CLASS TASK 311 A.2.186 Task.pu
- Page 335 and 336: A.2. CLASS TASK 313 Changes the bou
- Page 337 and 338: A.2. CLASS TASK 315 Modifies one li
- Page 339 and 340: A.2. CLASS TASK 317 bkc : boundkey
- Page 341 and 342: A.2. CLASS TASK 319 Arguments j : i
- Page 343 and 344: A.2. CLASS TASK 321 parvalue : int
- Page 345 and 346: A.2. CLASS TASK 323 A.2.207 Task.pu
- Page 347 and 348: A.2. CLASS TASK 325 Sets a string p
- Page 349 and 350: A.2. CLASS TASK 327 Description: Re
- Page 351 and 352: A.2. CLASS TASK 329 qosubj : int[]
- Page 353 and 354: A.2. CLASS TASK 331 Sets the status
- Page 355 and 356: A.2. CLASS TASK 333 A.2.224 Task.pu
- Page 357 and 358: A.2. CLASS TASK 335 Arguments sux :
- Page 359 and 360: A.2. CLASS TASK 337 y : double[] Ve
- Page 361 and 362: A.2. CLASS TASK 339 A.2.233 Task.pu
- Page 363 and 364: A.2. CLASS TASK 341 last : int Last
- Page 365 and 366: A.2. CLASS TASK 343 See also • Ta
- Page 367 and 368: A.2. CLASS TASK 345 A.2.243 Task.pu
- Page 369 and 370: A.2. CLASS TASK 347 Description: Se
- Page 371 and 372: A.2. CLASS TASK 349 Sets a slice of
- Page 373 and 374: A.2. CLASS TASK 351 A.2.254 Task.re
- Page 375 and 376: A.2. CLASS TASK 353 wux : double[]
- Page 377 and 378: A.2. CLASS TASK 355 See also • Ta
- Page 379 and 380: A.2. CLASS TASK 357 isdef : int Is
- Page 381: A.2. CLASS TASK 359 A.2.269 Task.st
- Page 385 and 386: A.3. CLASS ENV 363 A.2.278 Task.wri
- Page 387 and 388: A.3. CLASS ENV 365 Arguments code :
- Page 389 and 390: A.3. CLASS ENV 367 Arguments keepdl
- Page 391 and 392: A.4. CALLBACK FUNCTIONS AND RELATED
- Page 393 and 394: A.6. ALL FUNCTIONS BY NAME 371 Task
- Page 395 and 396: A.6. ALL FUNCTIONS BY NAME 373 Task
- Page 397 and 398: A.6. ALL FUNCTIONS BY NAME 375 Task
- Page 399 and 400: A.6. ALL FUNCTIONS BY NAME 377 Task
- Page 401 and 402: A.6. ALL FUNCTIONS BY NAME 379 Task
- Page 403 and 404: A.6. ALL FUNCTIONS BY NAME 381 Task
- Page 405 and 406: A.6. ALL FUNCTIONS BY NAME 383 Task
- Page 407 and 408: A.6. ALL FUNCTIONS BY NAME 385 Task
- Page 409 and 410: A.6. ALL FUNCTIONS BY NAME 387 Task
- Page 411 and 412: Appendix B Parameters Parameters gr
- Page 413 and 414: 391 • iparam.log file. If turned
- Page 415 and 416: 393 • dparam.intpnt nl tol rel st
- Page 417 and 418: 395 • iparam.mio construct sol. C
- Page 419 and 420: 397 • dparam.intpnt nl tol mu red
- Page 421 and 422: 399 • iparam.mio mode. Turns on/o
- Page 423 and 424: 401 • iparam.sim solve form. Cont
- Page 425 and 426: B.1. DPARAM: DOUBLE PARAMETERS 403
- Page 427 and 428: B.1. DPARAM: DOUBLE PARAMETERS 405
- Page 429 and 430: B.1. DPARAM: DOUBLE PARAMETERS 407
- Page 431 and 432: B.1. DPARAM: DOUBLE PARAMETERS 409
A.2. CLASS TASK 361<br />
Description:<br />
Writes branching priority data to a file.<br />
See also<br />
• Task.readbranchpriorities Reads branching priority data from a file.<br />
A.2.275<br />
Task.writedata()<br />
Task.writedata(filename)<br />
Writes problem data to a file.<br />
Arguments<br />
filename : str<br />
Data is written to the file filename if it is a nonempty string. Otherwise data is written<br />
to the file specified by sparam.data file name.<br />
Description:<br />
See also<br />
Writes problem data associated with the optimization task to a file in one of four formats:<br />
LP:<br />
A text based row oriented format. File extension .lp. See Appendix F.2.<br />
MPS:<br />
A text based column oriented format. File extension .mps. See Appendix F.1.<br />
OPF:<br />
A text based row oriented format. File extension .opf. Supports more problem types than<br />
MPS and LP. See Appendix F.3.<br />
TASK:<br />
A <strong>MOSEK</strong> specific binary format for fast reading and writing. File extension .task.<br />
By default the data file format is determined by the file name extension. This behaviour can be<br />
overridden by setting the iparam.write data format parameter.<br />
<strong>MOSEK</strong> is able to read and write files in a compressed format (gzip). To write in the compressed<br />
format append the extension ”.gz”. E.g to write a gzip compressed MPS file use the extension<br />
mps.gz.<br />
Please note that MPS, LP and OPF files require all variables to have unique names. If a task<br />
contains no names, it is possible to write the file with automaticly generated anonymous names<br />
by setting the iparam.write generic names parameter to onoffkey.on.<br />
Please note that if a general nonlinear function appears in the problem then such function cannot<br />
be written to file and <strong>MOSEK</strong> will issue a warning.<br />
• iparam.write data format Controls the output file format.