Mosek

mosekParamStrip(solverParams)[source]

Remove non-modek parameters to avoid crashing solver interface

parseMskResult(res)[source]

parse the res structure returned from mosek :INPUTS: res – mosek results structure returned by mosekopt

OPTIONAL INPUTS

prob: mosek problem structure passed to mosekopt solverOnlyParams: Additional parameters provided which are not part

of the COBRA parameters and are assumed to be part of direct solver input structs. For some solvers, it is essential to not include any extraneous fields that are outside the solver interface specification.

printLevel:

OUTPUTS
  • stat - Solver status in standardized form

    • 0 - Infeasible problem

    • 1 - Optimal solution

    • 2 - Unbounded solution

    • 3 - Almost optimal solution

    • -1 - Some other problem (timelimit, numerical problem etc)

  • origStat – solver status

  • x – primal variable vector

  • y – dual variable vector to linear constraints (yl - yu)

  • yl – dual variable vector to lower bound on linear constraints

  • yu – dual variable vector to upper bound on linear constraints

  • z – dual variable vector to box constraints (zl - zu)

  • zl – dual variable vector to lower bounds

  • zu – dual variable vector to upper bounds

  • k – dual variable vector to affine conic constraints

  • basis basis returned by mosekopt

  • pobjval – primal objective value returned by modekopt

  • dobjval – dual objective value returned by modekopt

Example

[~,res]=mosekopt(‘minimize’,prob);

NOTE:

Author(s): Ronan Fleming

setMosekParam(param)[source]

set mosek parameters from param fields strip any non mosek compatible fields from param and return it as mosekParam