<commit_before>---
title: "MOSEK"
category: solver
layout: single-solver
author_profile: false
tags: [Linear programming solver, Quadratic programming solver, Second-order cone programming, Semidefinite programming solver, Mixed-integer linear programming solver,Mixed-integer quadratic programming solver,Mixed-integer second-order cone programming solver, Mixed-integer conic programming solver]
excerpt: "Solver for mixed-integer conic programs"
available: "http://www.mosek.com"
sidebar:
  nav: "solvers"
---
<commit_msg>Update 2016-09-17-mosek.md<commit_after>---
title: "MOSEK"
category: solver
layout: single-solver
author_profile: false
tags: [Linear programming solver, Quadratic programming solver, Second-order cone programming, Semidefinite programming solver, Mixed-integer linear programming solver,Mixed-integer quadratic programming solver,Mixed-integer second-order cone programming solver, Mixed-integer conic programming solver]
excerpt: "Solver for mixed-integer conic programs"
available: "http://www.mosek.com"
sidebar:
  nav: "solvers"
---

### Writing a .task file

To save a file in MOSEK's internal format first save the problem to a ``.mat`` file

``sdpsettings('savedebug',1)``

and convert its contents into the MOSEK format with

``mosekopt("min write(dump.task.gz)", prob, param)``

replacing ``min`` with ``max`` for maximization. 

{'fraction_non_alphanumeric': 0.10410557184750734, 'fraction_numerical': 0.006598240469208211, 'mean_word_length': 5.928934010152284, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '649778', 'n_tokens_mistral': 414, 'n_tokens_neox': 381, 'n_words': 137}