18 Interface changes

The section shows interface-specific changes to the MOSEK Optimizer API for Python in version 11.0 compared to version 10. See the release notes for general changes and new features of the MOSEK Optimization Suite.

18.1 Important changes compared to version 10

  • Parameters. Users who set parameters to tune the performance and numerical properties of the solver (termination criteria, tolerances, solving primal or dual, presolve etc.) are recommended to reevaluate such tuning. It may be that other, or default, parameter settings will be more beneficial in the current version. The hints in Sec. 8 (Debugging Tutorials) may be useful for some cases.

  • Data types. The mosek module will issue a warning if data is passed as a numpy array of type int64 where int32 is expected, or the other way around. In this case the module needs to make an internal copy before calling the solver and this extra step could be eliminated by the user passing data of correct type from the start.

  • Renamed getnumanz64 to getnumanz and setdefaults to resetparameters.

18.2 Changes compared to version 10

18.2.1 Functions compared to version 10

Added

Removed

  • Task.setdefaults

18.2.2 Parameters compared to version 10

Added

Removed

  • dparam.check_convexity_rel_tol

  • dparam.presolve_tol_aij

  • iparam.infeas_prefer_primal

  • iparam.intpnt_max_num_refinement_steps

  • iparam.intpnt_purify

  • iparam.log_response

  • iparam.log_sim_minor

  • iparam.mio_root_repeat_presolve_level

  • iparam.presolve_level

  • iparam.sensitivity_optimizer

  • iparam.sim_stability_priority

  • iparam.sol_filter_keep_ranged

  • iparam.solution_callback

  • iparam.write_data_param

  • iparam.write_generic_names_io

  • iparam.write_task_inc_sol

  • iparam.write_xml_mode

  • sparam.write_lp_gen_var_name

18.2.3 Constants compared to version 10

Added

Removed

  • constant.callbackcode.begin_simplex_bi

  • constant.callbackcode.im_bi

  • constant.callbackcode.im_conic

  • constant.callbackcode.im_dual_bi

  • constant.callbackcode.im_intpnt

  • constant.callbackcode.im_presolve

  • constant.callbackcode.im_primal_bi

  • constant.callbackcode.im_qo_reformulate

  • constant.callbackcode.im_simplex_bi

  • constant.dinfitem.bi_clean_dual_time

  • constant.dinfitem.bi_clean_primal_time

  • constant.liinfitem.bi_clean_dual_deg_iter

  • constant.liinfitem.bi_clean_dual_iter

  • constant.liinfitem.bi_clean_primal_deg_iter

  • constant.liinfitem.bi_clean_primal_iter

18.2.4 Response Codes compared to version 10

Added

Removed

  • rescode.err_invalid_ampl_stub

  • rescode.err_size_license_numcores

  • rescode.err_xml_invalid_problem_type

  • rescode.wrn_presolve_primal_pertubations

  • rescode.wrn_write_lp_duplicate_con_names

  • rescode.wrn_write_lp_duplicate_var_names

  • rescode.wrn_write_lp_invalid_con_names

  • rescode.wrn_write_lp_invalid_var_names