16.8 Response codes

rescode

The enumeration type containing all response codes.

16.8.1 Termination

rescode.ok

No error occurred.

rescode.trm_max_iterations

The optimizer terminated at the maximum number of iterations.

rescode.trm_max_time

The optimizer terminated at the maximum amount of time.

rescode.trm_objective_range

The optimizer terminated with an objective value outside the objective range.

rescode.trm_mio_near_rel_gap

The mixed-integer optimizer terminated as the delayed near optimal relative gap tolerance was satisfied.

rescode.trm_mio_near_abs_gap

The mixed-integer optimizer terminated as the delayed near optimal absolute gap tolerance was satisfied.

rescode.trm_mio_num_relaxs

The mixed-integer optimizer terminated as the maximum number of relaxations was reached.

rescode.trm_mio_num_branches

The mixed-integer optimizer terminated as the maximum number of branches was reached.

rescode.trm_num_max_num_int_solutions

The mixed-integer optimizer terminated as the maximum number of feasible solutions was reached.

rescode.trm_stall

The optimizer is terminated due to slow progress.

Stalling means that numerical problems prevent the optimizer from making reasonable progress and that it make no sense to continue. In many cases this happens if the problem is badly scaled or otherwise ill-conditioned. There is no guarantee that the solution will be (near) feasible or near optimal. However, often stalling happens near the optimum, and the returned solution may be of good quality. Therefore, it is recommended to check the status of then solution. If the solution near optimal the solution is most likely good enough for most practical purposes.

Please note that if a linear optimization problem is solved using the interior-point optimizer with basis identification turned on, the returned basic solution likely to have high accuracy, even though the optimizer stalled.

Some common causes of stalling are a) badly scaled models, b) near feasible or near infeasible problems and c) a non-convex problems. Case c) is only relevant for general non-linear problems. It is not possible in general for MOSEK to check if a specific problems is convex since such a check would be NP hard in itself. This implies that care should be taken when solving problems involving general user defined functions.

rescode.trm_user_callback

The optimizer terminated due to the return of the user-defined callback function.

rescode.trm_max_num_setbacks

The optimizer terminated as the maximum number of set-backs was reached. This indicates serious numerical problems and a possibly badly formulated problem.

rescode.trm_numerical_problem

The optimizer terminated due to numerical problems.

rescode.trm_internal

The optimizer terminated due to some internal reason. Please contact MOSEK support.

rescode.trm_internal_stop

The optimizer terminated for internal reasons. Please contact MOSEK support.

16.8.2 Warnings

rescode.wrn_open_param_file

The parameter file could not be opened.

rescode.wrn_large_bound

A numerically large bound value is specified.

rescode.wrn_large_lo_bound

A numerically large lower bound value is specified.

rescode.wrn_large_up_bound

A numerically large upper bound value is specified.

rescode.wrn_large_con_fx

An equality constraint is fixed to a numerically large value. This can cause numerical problems.

rescode.wrn_large_cj

A numerically large value is specified for one \(c_{j}\).

rescode.wrn_large_aij

A numerically large value is specified for an \(a_{i,j}\) element in \(A\). The parameter dparam.data_tol_aij_large controls when an \(a_{i,j}\) is considered large.

rescode.wrn_zero_aij

One or more zero elements are specified in A.

rescode.wrn_name_max_len

A name is longer than the buffer that is supposed to hold it.

rescode.wrn_spar_max_len

A value for a string parameter is longer than the buffer that is supposed to hold it.

rescode.wrn_mps_split_rhs_vector

An RHS vector is split into several nonadjacent parts in an MPS file.

rescode.wrn_mps_split_ran_vector

A RANGE vector is split into several nonadjacent parts in an MPS file.

rescode.wrn_mps_split_bou_vector

A BOUNDS vector is split into several nonadjacent parts in an MPS file.

rescode.wrn_lp_old_quad_format

Missing ‘/2’ after quadratic expressions in bound or objective.

rescode.wrn_lp_drop_variable

Ignored a variable because the variable was not previously defined. Usually this implies that a variable appears in the bound section but not in the objective or the constraints.

rescode.wrn_nz_in_upr_tri

Non-zero elements specified in the upper triangle of a matrix were ignored.

rescode.wrn_dropped_nz_qobj

One or more non-zero elements were dropped in the Q matrix in the objective.

rescode.wrn_ignore_integer

Ignored integer constraints.

rescode.wrn_no_global_optimizer

No global optimizer is available.

rescode.wrn_mio_infeasible_final

The final mixed-integer problem with all the integer variables fixed at their optimal values is infeasible.

rescode.wrn_sol_filter

Invalid solution filter is specified.

rescode.wrn_undef_sol_file_name

Undefined name occurred in a solution.

rescode.wrn_sol_file_ignored_con

One or more lines in the constraint section were ignored when reading a solution file.

rescode.wrn_sol_file_ignored_var

One or more lines in the variable section were ignored when reading a solution file.

rescode.wrn_too_few_basis_vars

An incomplete basis has been specified. Too few basis variables are specified.

rescode.wrn_too_many_basis_vars

A basis with too many variables has been specified.

rescode.wrn_no_nonlinear_function_write

The problem contains a general nonlinear function in either the objective or the constraints. Such a nonlinear function cannot be written to a disk file. Note that quadratic terms when inputted explicitly can be written to disk.

rescode.wrn_license_expire

The license expires.

rescode.wrn_license_server

The license server is not responding.

rescode.wrn_empty_name

A variable or constraint name is empty. The output file may be invalid.

rescode.wrn_using_generic_names

Generic names are used because a name is not valid. For instance when writing an LP file the names must not contain blanks or start with a digit.

rescode.wrn_license_feature_expire

The license expires.

rescode.wrn_param_name_dou

The parameter name is not recognized as a double parameter.

rescode.wrn_param_name_int

The parameter name is not recognized as a integer parameter.

rescode.wrn_param_name_str

The parameter name is not recognized as a string parameter.

rescode.wrn_param_str_value

The string is not recognized as a symbolic value for the parameter.

rescode.wrn_param_ignored_cmio

A parameter was ignored by the conic mixed integer optimizer.

rescode.wrn_zeros_in_sparse_row

One or more (near) zero elements are specified in a sparse row of a matrix. Since, it is redundant to specify zero elements then it may indicate an error.

rescode.wrn_zeros_in_sparse_col

One or more (near) zero elements are specified in a sparse column of a matrix. It is redundant to specify zero elements. Hence, it may indicate an error.

rescode.wrn_incomplete_linear_dependency_check

The linear dependency check(s) is incomplete. Normally this is not an important warning unless the optimization problem has been formulated with linear dependencies. Linear dependencies may prevent MOSEK from solving the problem.

rescode.wrn_eliminator_space

The eliminator is skipped at least once due to lack of space.

rescode.wrn_presolve_outofspace

The presolve is incomplete due to lack of space.

rescode.wrn_write_changed_names

Some names were changed because they were invalid for the output file format.

rescode.wrn_write_discarded_cfix

The fixed objective term could not be converted to a variable and was discarded in the output file.

rescode.wrn_construct_solution_infeas

After fixing the integer variables at the suggested values then the problem is infeasible.

rescode.wrn_construct_invalid_sol_itg

The initial value for one or more of the integer variables is not feasible.

rescode.wrn_construct_no_sol_itg

The construct solution requires an integer solution.

rescode.wrn_duplicate_constraint_names

Two constraint names are identical.

rescode.wrn_duplicate_variable_names

Two variable names are identical.

rescode.wrn_duplicate_barvariable_names

Two barvariable names are identical.

rescode.wrn_duplicate_cone_names

Two cone names are identical.

rescode.wrn_ana_large_bounds

This warning is issued by the problem analyzer, if one or more constraint or variable bounds are very large. One should consider omitting these bounds entirely by setting them to +inf or -inf.

rescode.wrn_ana_c_zero

This warning is issued by the problem analyzer, if the coefficients in the linear part of the objective are all zero.

rescode.wrn_ana_empty_cols

This warning is issued by the problem analyzer, if columns, in which all coefficients are zero, are found.

rescode.wrn_ana_close_bounds

This warning is issued by problem analyzer, if ranged constraints or variables with very close upper and lower bounds are detected. One should consider treating such constraints as equalities and such variables as constants.

rescode.wrn_ana_almost_int_bounds

This warning is issued by the problem analyzer if a constraint is bound nearly integral.

rescode.wrn_quad_cones_with_root_fixed_at_zero

For at least one quadratic cone the root is fixed at (nearly) zero. This may cause problems such as a very large dual solution. Therefore, it is recommended to remove such cones before optimizing the problems, or to fix all the variables in the cone to 0.

rescode.wrn_rquad_cones_with_root_fixed_at_zero

For at least one rotated quadratic cone at least one of the root variables are fixed at (nearly) zero. This may cause problems such as a very large dual solution. Therefore, it is recommended to remove such cones before optimizing the problems, or to fix all the variables in the cone to 0.

rescode.wrn_no_dualizer

No automatic dualizer is available for the specified problem. The primal problem is solved.

rescode.wrn_sym_mat_large

A numerically large value is specified for an \(e_{i,j}\) element in \(E\). The parameter dparam.data_sym_mat_tol_large controls when an \(e_{i,j}\) is considered large.

16.8.3 Errors

rescode.err_license

Invalid license.

rescode.err_license_expired

The license has expired.

rescode.err_license_version

The license is valid for another version of MOSEK.

rescode.err_size_license

The problem is bigger than the license.

rescode.err_prob_license

The software is not licensed to solve the problem.

rescode.err_file_license

Invalid license file.

rescode.err_missing_license_file

MOSEK cannot license file or a token server. See the MOSEK installation manual for details.

rescode.err_size_license_con

The problem has too many constraints to be solved with the available license.

rescode.err_size_license_var

The problem has too many variables to be solved with the available license.

rescode.err_size_license_intvar

The problem contains too many integer variables to be solved with the available license.

rescode.err_optimizer_license

The optimizer required is not licensed.

rescode.err_flexlm

The FLEXlm license manager reported an error.

rescode.err_license_server

The license server is not responding.

rescode.err_license_max

Maximum number of licenses is reached.

rescode.err_license_moseklm_daemon

The MOSEKLM license manager daemon is not up and running.

rescode.err_license_feature

A requested feature is not available in the license file(s). Most likely due to an incorrect license system setup.

rescode.err_platform_not_licensed

A requested license feature is not available for the required platform.

rescode.err_license_cannot_allocate

The license system cannot allocate the memory required.

rescode.err_license_cannot_connect

MOSEK cannot connect to the license server. Most likely the license server is not up and running.

rescode.err_license_invalid_hostid

The host ID specified in the license file does not match the host ID of the computer.

rescode.err_license_server_version

The version specified in the checkout request is greater than the highest version number the daemon supports.

rescode.err_license_no_server_support

The license server does not support the requested feature. Possible reasons for this error include:

  • The feature has expired.
  • The feature’s start date is later than today’s date.
  • The version requested is higher than feature’s the highest supported version.
  • A corrupted license file.

Try restarting the license and inspect the license server debug file, usually called lmgrd.log.

rescode.err_license_no_server_line

There is no SERVER line in the license file. All non-zero license count features need at least one SERVER line.

rescode.err_open_dl

A dynamic link library could not be opened.

rescode.err_older_dll

The dynamic link library is older than the specified version.

rescode.err_newer_dll

The dynamic link library is newer than the specified version.

A file cannot be linked to a stream in the DLL version.

rescode.err_thread_mutex_init

Could not initialize a mutex.

rescode.err_thread_mutex_lock

Could not lock a mutex.

rescode.err_thread_mutex_unlock

Could not unlock a mutex.

rescode.err_thread_create

Could not create a thread. This error may occur if a large number of environments are created and not deleted again. In any case it is a good practice to minimize the number of environments created.

rescode.err_thread_cond_init

Could not initialize a condition.

rescode.err_unknown

Unknown error.

rescode.err_space

Out of space.

rescode.err_file_open

Error while opening a file.

rescode.err_file_read

File read error.

rescode.err_file_write

File write error.

rescode.err_data_file_ext

The data file format cannot be determined from the file name.

rescode.err_invalid_file_name

An invalid file name has been specified.

rescode.err_invalid_sol_file_name

An invalid file name has been specified.

rescode.err_end_of_file

End of file reached.

rescode.err_null_env

env is a NULL pointer.

rescode.err_null_task

task is a NULL pointer.

rescode.err_invalid_stream

An invalid stream is referenced.

rescode.err_no_init_env

env is not initialized.

rescode.err_invalid_task

The task is invalid.

rescode.err_null_pointer

An argument to a function is unexpectedly a NULL pointer.

rescode.err_living_tasks

All tasks associated with an enviroment must be deleted before the environment is deleted. There are still some undeleted tasks.

rescode.err_blank_name

An all blank name has been specified.

rescode.err_dup_name

The same name was used multiple times for the same problem item type.

rescode.err_invalid_obj_name

An invalid objective name is specified.

rescode.err_invalid_con_name

An invalid constraint name is used.

rescode.err_invalid_var_name

An invalid variable name is used.

rescode.err_invalid_cone_name

An invalid cone name is used.

rescode.err_invalid_barvar_name

An invalid symmetric matrix variable name is used.

rescode.err_space_leaking

MOSEK is leaking memory. This can be due to either an incorrect use of MOSEK or a bug.

rescode.err_space_no_info

No available information about the space usage.

rescode.err_read_format

The specified format cannot be read.

rescode.err_mps_file

An error occurred while reading an MPS file.

rescode.err_mps_inv_field

A field in the MPS file is invalid. Probably it is too wide.

rescode.err_mps_inv_marker

An invalid marker has been specified in the MPS file.

rescode.err_mps_null_con_name

An empty constraint name is used in an MPS file.

rescode.err_mps_null_var_name

An empty variable name is used in an MPS file.

rescode.err_mps_undef_con_name

An undefined constraint name occurred in an MPS file.

rescode.err_mps_undef_var_name

An undefined variable name occurred in an MPS file.

rescode.err_mps_inv_con_key

An invalid constraint key occurred in an MPS file.

rescode.err_mps_inv_bound_key

An invalid bound key occurred in an MPS file.

rescode.err_mps_inv_sec_name

An invalid section name occurred in an MPS file.

rescode.err_mps_no_objective

No objective is defined in an MPS file.

rescode.err_mps_splitted_var

All elements in a column of the \(A\) matrix must be specified consecutively. Hence, it is illegal to specify non-zero elements in \(A\) for variable 1, then for variable 2 and then variable 1 again.

rescode.err_mps_mul_con_name

A constraint name was specified multiple times in the ROWS section.

rescode.err_mps_mul_qsec

Multiple QSECTIONs are specified for a constraint in the MPS data file.

rescode.err_mps_mul_qobj

The Q term in the objective is specified multiple times in the MPS data file.

rescode.err_mps_inv_sec_order

The sections in the MPS data file are not in the correct order.

rescode.err_mps_mul_csec

Multiple CSECTIONs are given the same name.

rescode.err_mps_cone_type

Invalid cone type specified in a CSECTION.

rescode.err_mps_cone_overlap

A variable is specified to be a member of several cones.

rescode.err_mps_cone_repeat

A variable is repeated within the CSECTION.

rescode.err_mps_non_symmetric_q

A non symmetric matrice has been speciefied.

rescode.err_mps_duplicate_q_element

Duplicate elements is specfied in a \(Q\) matrix.

rescode.err_mps_invalid_objsense

An invalid objective sense is specified.

rescode.err_mps_tab_in_field2

A tab char occurred in field 2.

rescode.err_mps_tab_in_field3

A tab char occurred in field 3.

rescode.err_mps_tab_in_field5

A tab char occurred in field 5.

rescode.err_mps_invalid_obj_name

An invalid objective name is specified.

rescode.err_lp_incompatible

The problem cannot be written to an LP formatted file.

rescode.err_lp_empty

The problem cannot be written to an LP formatted file.

rescode.err_lp_dup_slack_name

The name of the slack variable added to a ranged constraint already exists.

rescode.err_write_mps_invalid_name

An invalid name is created while writing an MPS file. Usually this will make the MPS file unreadable.

rescode.err_lp_invalid_var_name

A variable name is invalid when used in an LP formatted file.

rescode.err_lp_free_constraint

Free constraints cannot be written in LP file format.

rescode.err_write_opf_invalid_var_name

Empty variable names cannot be written to OPF files.

rescode.err_lp_file_format

Syntax error in an LP file.

rescode.err_write_lp_format

Problem cannot be written as an LP file.

rescode.err_read_lp_missing_end_tag

Syntax error in LP file. Possibly missing End tag.

rescode.err_lp_format

Syntax error in an LP file.

rescode.err_write_lp_non_unique_name

An auto-generated name is not unique.

rescode.err_read_lp_nonexisting_name

A variable never occurred in objective or constraints.

rescode.err_lp_write_conic_problem

The problem contains cones that cannot be written to an LP formatted file.

rescode.err_lp_write_geco_problem

The problem contains general convex terms that cannot be written to an LP formatted file.

rescode.err_writing_file

An error occurred while writing file

rescode.err_opf_format

Syntax error in an OPF file

rescode.err_opf_new_variable

Introducing new variables is now allowed. When a [variables] section is present, it is not allowed to introduce new variables later in the problem.

rescode.err_invalid_name_in_sol_file

An invalid name occurred in a solution file.

rescode.err_lp_invalid_con_name

A constraint name is invalid when used in an LP formatted file.

rescode.err_opf_premature_eof

Premature end of file in an OPF file.

rescode.err_json_syntax

Syntax error in an JSON data

rescode.err_json_string

Error in JSON string.

rescode.err_json_number_overflow

Invalid number entry - wrong type or value overflow.

rescode.err_json_format

Error in an JSON Task file

rescode.err_json_data

Inconsistent data in JSON Task file

rescode.err_json_missing_data

Missing data section in JSON task file.

rescode.err_argument_lenneq

Incorrect length of arguments.

rescode.err_argument_type

Incorrect argument type.

rescode.err_nr_arguments

Incorrect number of function arguments.

rescode.err_in_argument

A function argument is incorrect.

rescode.err_argument_dimension

A function argument is of incorrect dimension.

rescode.err_index_is_too_small

An index in an argument is too small.

rescode.err_index_is_too_large

An index in an argument is too large.

rescode.err_param_name

The parameter name is not correct.

rescode.err_param_name_dou

The parameter name is not correct for a double parameter.

rescode.err_param_name_int

The parameter name is not correct for an integer parameter.

rescode.err_param_name_str

The parameter name is not correct for a string parameter.

rescode.err_param_index

Parameter index is out of range.

rescode.err_param_is_too_large

The parameter value is too large.

rescode.err_param_is_too_small

The parameter value is too small.

rescode.err_param_value_str

The parameter value string is incorrect.

rescode.err_param_type

The parameter type is invalid.

rescode.err_inf_dou_index

A double information index is out of range for the specified type.

rescode.err_inf_int_index

An integer information index is out of range for the specified type.

rescode.err_index_arr_is_too_small

An index in an array argument is too small.

rescode.err_index_arr_is_too_large

An index in an array argument is too large.

rescode.err_inf_lint_index

A long integer information index is out of range for the specified type.

rescode.err_arg_is_too_small

The value of a argument is too small.

rescode.err_arg_is_too_large

The value of a argument is too small.

rescode.err_invalid_whichsol

whichsol is invalid.

rescode.err_inf_dou_name

A double information name is invalid.

rescode.err_inf_int_name

An integer information name is invalid.

rescode.err_inf_type

The information type is invalid.

rescode.err_inf_lint_name

A long integer information name is invalid.

rescode.err_index

An index is out of range.

rescode.err_whichsol

The solution defined by whichsol does not exists.

rescode.err_solitem

The solution item number solitem is invalid. Please note that solitem.snx is invalid for the basic solution.

rescode.err_whichitem_not_allowed

whichitem is unacceptable.

rescode.err_maxnumcon

The maximum number of constraints specified is smaller than the number of constraints in the task.

rescode.err_maxnumvar

The maximum number of variables specified is smaller than the number of variables in the task.

rescode.err_maxnumbarvar

The maximum number of semidefinite variables specified is smaller than the number of semidefinite variables in the task.

rescode.err_maxnumqnz

The maximum number of non-zeros specified for the \(Q\) matrices is smaller than the number of non-zeros in the current \(Q\) matrices.

rescode.err_too_small_max_num_nz

The maximum number of non-zeros specified is too small.

rescode.err_invalid_idx

A specified index is invalid.

rescode.err_invalid_max_num

A specified index is invalid.

rescode.err_numconlim

Maximum number of constraints limit is exceeded.

rescode.err_numvarlim

Maximum number of variables limit is exceeded.

rescode.err_too_small_maxnumanz

The maximum number of non-zeros specified for \(A\) is smaller than the number of non-zeros in the current \(A\).

rescode.err_inv_aptre

aptre[j] is strictly smaller than aptrb[j] for some j.

rescode.err_mul_a_element

An element in \(A\) is defined multiple times.

rescode.err_inv_bk

Invalid bound key.

rescode.err_inv_bkc

Invalid bound key is specified for a constraint.

rescode.err_inv_bkx

An invalid bound key is specified for a variable.

rescode.err_inv_var_type

An invalid variable type is specified for a variable.

rescode.err_solver_probtype

Problem type does not match the chosen optimizer.

rescode.err_objective_range

Empty objective range.

rescode.err_first

Invalid first.

rescode.err_last

Invalid index last. A given index was out of expected range.

rescode.err_negative_surplus

Negative surplus.

rescode.err_negative_append

Cannot append a negative number.

rescode.err_undef_solution

MOSEK has the following solution types:

  • an interior-point solution,
  • an basic solution,
  • and an integer solution.

Each optimizer may set one or more of these solutions; e.g by default a successful optimization with the interior-point optimizer defines the interior-point solution, and, for linear problems, also the basic solution. This error occurs when asking for a solution or for information about a solution that is not defined.

rescode.err_basis

An invalid basis is specified. Either too many or too few basis variables are specified.

rescode.err_inv_skc

Invalid value in skc.

rescode.err_inv_skx

Invalid value in skx.

rescode.err_inv_skn

Invalid value in skn.

rescode.err_inv_sk_str

Invalid status key string encountered.

rescode.err_inv_sk

Invalid status key code.

rescode.err_inv_cone_type_str

Invalid cone type string encountered.

rescode.err_inv_cone_type

Invalid cone type code is encountered.

rescode.err_invalid_surplus

Invalid surplus.

rescode.err_inv_name_item

An invalid name item code is used.

rescode.err_pro_item

An invalid problem is used.

rescode.err_invalid_format_type

Invalid format type.

rescode.err_firsti

Invalid firsti.

rescode.err_lasti

Invalid lasti.

rescode.err_firstj

Invalid firstj.

rescode.err_lastj

Invalid lastj.

rescode.err_max_len_is_too_small

An maximum length that is too small has been specified.

rescode.err_nonlinear_equality

The model contains a nonlinear equality which defines a nonconvex set.

rescode.err_nonconvex

The optimization problem is nonconvex.

rescode.err_nonlinear_ranged

Nonlinear constraints with finite lower and upper bound always define a nonconvex feasible set.

rescode.err_con_q_not_psd

The quadratic constraint matrix is not positive semidefinite as expected for a constraint with finite upper bound. This results in a nonconvex problem. The parameter dparam.check_convexity_rel_tol can be used to relax the convexity check.

rescode.err_con_q_not_nsd

The quadratic constraint matrix is not negative semidefinite as expected for a constraint with finite lower bound. This results in a nonconvex problem. The parameter dparam.check_convexity_rel_tol can be used to relax the convexity check.

rescode.err_obj_q_not_psd

The quadratic coefficient matrix in the objective is not positive semidefinite as expected for a minimization problem. The parameter dparam.check_convexity_rel_tol can be used to relax the convexity check.

rescode.err_obj_q_not_nsd

The quadratic coefficient matrix in the objective is not negative semidefinite as expected for a maximization problem. The parameter dparam.check_convexity_rel_tol can be used to relax the convexity check.

rescode.err_argument_perm_array

An invalid permutation array is specified.

rescode.err_cone_index

An index of a non-existing cone has been specified.

rescode.err_cone_size

A cone with too few members is specified.

rescode.err_cone_overlap

One or more of the variables in the cone to be added is already member of another cone. Now assume the variable is \(x_j\) then add a new variable say \(x_k\) and the constraint

\[x_j = x_k\]

and then let \(x_k\) be member of the cone to be appended.

rescode.err_cone_rep_var

A variable is included multiple times in the cone.

rescode.err_maxnumcone

The value specified for maxnumcone is too small.

rescode.err_cone_type

Invalid cone type specified.

rescode.err_cone_type_str

Invalid cone type specified.

rescode.err_cone_overlap_append

The cone to be appended has one variable which is already member of another cone.

rescode.err_remove_cone_variable

A variable cannot be removed because it will make a cone invalid.

rescode.err_sol_file_invalid_number

An invalid number is specified in a solution file.

rescode.err_huge_c

A huge value in absolute size is specified for one \(c_j\).

rescode.err_huge_aij

A numerically huge value is specified for an \(a_{i,j}\) element in \(A\). The parameter dparam.data_tol_aij_huge controls when an \(a_{i,j}\) is considered huge.

rescode.err_duplicate_aij

An element in the A matrix is specified twice.

rescode.err_lower_bound_is_a_nan

The lower bound specified is not a number (nan).

rescode.err_upper_bound_is_a_nan

The upper bound specified is not a number (nan).

rescode.err_infinite_bound

A numerically huge bound value is specified.

rescode.err_inv_qobj_subi

Invalid value in qosubi.

rescode.err_inv_qobj_subj

Invalid value in qosubj.

rescode.err_inv_qobj_val

Invalid value in qoval.

rescode.err_inv_qcon_subk

Invalid value in qcsubk.

rescode.err_inv_qcon_subi

Invalid value in qcsubi.

rescode.err_inv_qcon_subj

Invalid value in qcsubj.

rescode.err_inv_qcon_val

Invalid value in qcval.

rescode.err_qcon_subi_too_small

Invalid value in qcsubi.

rescode.err_qcon_subi_too_large

Invalid value in qcsubi.

rescode.err_qobj_upper_triangle

An element in the upper triangle of \(Q^o\) is specified. Only elements in the lower triangle should be specified.

rescode.err_qcon_upper_triangle

An element in the upper triangle of a \(Q^k\) is specified. Only elements in the lower triangle should be specified.

rescode.err_fixed_bound_values

A fixed constraint/variable has been specified using the bound keys but the numerical value of the lower and upper bound is different.

rescode.err_nonlinear_functions_not_allowed

An operation that is invalid for problems with nonlinear functions defined has been attempted.

rescode.err_user_func_ret

An user function reported an error.

rescode.err_user_func_ret_data

An user function returned invalid data.

rescode.err_user_nlo_func

The user-defined nonlinear function reported an error.

rescode.err_user_nlo_eval

The user-defined nonlinear function reported an error.

rescode.err_user_nlo_eval_hessubi

The user-defined nonlinear function reported an invalid subscript in the Hessian.

rescode.err_user_nlo_eval_hessubj

The user-defined nonlinear function reported an invalid subscript in the Hessian.

rescode.err_invalid_objective_sense

An invalid objective sense is specified.

rescode.err_undefined_objective_sense

The objective sense has not been specified before the optimization.

rescode.err_y_is_undefined

The solution item \(y\) is undefined.

rescode.err_nan_in_double_data

An invalid floating point value was used in some double data.

rescode.err_nan_in_blc

\(l^c\) contains an invalid floating point value, i.e. a NaN.

rescode.err_nan_in_buc

\(u^c\) contains an invalid floating point value, i.e. a NaN.

rescode.err_nan_in_c

\(c\) contains an invalid floating point value, i.e. a NaN.

rescode.err_nan_in_blx

\(l^x\) contains an invalid floating point value, i.e. a NaN.

rescode.err_nan_in_bux

\(u^x\) contains an invalid floating point value, i.e. a NaN.

rescode.err_invalid_aij

\(a_{i,j}\) contains an invalid floating point value, i.e. a NaN or an infinite value.

rescode.err_sym_mat_invalid

A symmetric matrix contains an invalid floating point value, i.e. a NaN or an infinite value.

rescode.err_sym_mat_huge

A symmetric matrix contains a huge value in absolute size. The parameter dparam.data_sym_mat_tol_huge controls when an \(e_{i,j}\) is considered huge.

rescode.err_inv_problem

Invalid problem type. Probably a nonconvex problem has been specified.

rescode.err_mixed_conic_and_nl

The problem contains nonlinear terms conic constraints. The requested operation cannot be applied to this type of problem.

rescode.err_global_inv_conic_problem

The global optimizer can only be applied to problems without semidefinite variables.

rescode.err_inv_optimizer

An invalid optimizer has been chosen for the problem. This means that the simplex or the conic optimizer is chosen to optimize a nonlinear problem.

rescode.err_mio_no_optimizer

No optimizer is available for the current class of integer optimization problems.

rescode.err_no_optimizer_var_type

No optimizer is available for this class of optimization problems.

rescode.err_final_solution

An error occurred during the solution finalization.

rescode.err_postsolve

An error occurred during the postsolve. Please contact MOSEK support.

rescode.err_overflow

A computation produced an overflow i.e. a very large number.

rescode.err_no_basis_sol

No basic solution is defined.

rescode.err_basis_factor

The factorization of the basis is invalid.

rescode.err_basis_singular

The basis is singular and hence cannot be factored.

rescode.err_factor

An error occurred while factorizing a matrix.

rescode.err_feasrepair_cannot_relax

An optimization problem cannot be relaxed. This is the case e.g. for general nonlinear optimization problems.

rescode.err_feasrepair_solving_relaxed

The relaxed problem could not be solved to optimality. Please consult the log file for further details.

rescode.err_feasrepair_inconsistent_bound

The upper bound is less than the lower bound for a variable or a constraint. Please correct this before running the feasibility repair.

rescode.err_repair_invalid_problem

The feasibility repair does not support the specified problem type.

rescode.err_repair_optimization_failed

Computation the optimal relaxation failed. The cause may have been numerical problems.

rescode.err_name_max_len

A name is longer than the buffer that is supposed to hold it.

rescode.err_name_is_null

The name buffer is a NULL pointer.

rescode.err_invalid_compression

Invalid compression type.

rescode.err_invalid_iomode

Invalid io mode.

rescode.err_no_primal_infeas_cer

A certificate of primal infeasibility is not available.

rescode.err_no_dual_infeas_cer

A certificate of infeasibility is not available.

rescode.err_no_solution_in_callback

The required solution is not available.

rescode.err_inv_marki

Invalid value in marki.

rescode.err_inv_markj

Invalid value in markj.

rescode.err_inv_numi

Invalid numi.

rescode.err_inv_numj

Invalid numj.

rescode.err_cannot_clone_nl

A task with a nonlinear function callback cannot be cloned.

rescode.err_cannot_handle_nl

A function cannot handle a task with nonlinear function callbacks.

rescode.err_invalid_accmode

An invalid access mode is specified.

rescode.err_task_incompatible

The Task file is incompatible with this platform. This results from reading a file on a 32 bit platform generated on a 64 bit platform.

rescode.err_task_invalid

The Task file is invalid.

rescode.err_task_write

Failed to write the task file.

rescode.err_lu_max_num_tries

Could not compute the LU factors of the matrix within the maximum number of allowed tries.

rescode.err_invalid_utf8

An invalid UTF8 string is encountered.

rescode.err_invalid_wchar

An invalid wchar string is encountered.

rescode.err_no_dual_for_itg_sol

No dual information is available for the integer solution.

rescode.err_no_snx_for_bas_sol

\(s_n^x\) is not available for the basis solution.

rescode.err_internal

An internal error occurred. Please report this problem.

rescode.err_api_array_too_small

An input array was too short.

rescode.err_api_cb_connect

Failed to connect a callback object.

rescode.err_api_fatal_error

An internal error occurred in the API. Please report this problem.

rescode.err_api_internal

An internal fatal error occurred in an interface function.

rescode.err_sen_format

Syntax error in sensitivity analysis file.

rescode.err_sen_undef_name

An undefined name was encountered in the sensitivity analysis file.

rescode.err_sen_index_range

Index out of range in the sensitivity analysis file.

rescode.err_sen_bound_invalid_up

Analysis of upper bound requested for an index, where no upper bound exists.

rescode.err_sen_bound_invalid_lo

Analysis of lower bound requested for an index, where no lower bound exists.

rescode.err_sen_index_invalid

Invalid range given in the sensitivity file.

rescode.err_sen_invalid_regexp

Syntax error in regexp or regexp longer than 1024.

rescode.err_sen_solution_status

No optimal solution found to the original problem given for sensitivity analysis.

rescode.err_sen_numerical

Numerical difficulties encountered performing the sensitivity analysis.

rescode.err_sen_unhandled_problem_type

Sensitivity analysis cannot be performed for the specified problem. Sensitivity analysis is only possible for linear problems.

rescode.err_unb_step_size

A step size in an optimizer was unexpectedly unbounded. For instance, if the step-size becomes unbounded in phase 1 of the simplex algorithm then an error occurs. Normally this will happen only if the problem is badly formulated. Please contact MOSEK support if this error occurs.

rescode.err_identical_tasks

Some tasks related to this function call were identical. Unique tasks were expected.

rescode.err_ad_invalid_codelist

The code list data was invalid.

rescode.err_internal_test_failed

An internal unit test function failed.

rescode.err_xml_invalid_problem_type

The problem type is not supported by the XML format.

rescode.err_invalid_ampl_stub

Invalid AMPL stub.

rescode.err_int64_to_int32_cast

An 32 bit integer could not cast to a 64 bit integer.

rescode.err_size_license_numcores

The computer contains more cpu cores than the license allows for.

rescode.err_infeas_undefined

The requested value is not defined for this solution type.

rescode.err_no_barx_for_solution

There is no \(\barX\) available for the solution specified. In particular note there are no \(\barX\) defined for the basic and integer solutions.

rescode.err_no_bars_for_solution

There is no \(\bar{s}\) available for the solution specified. In particular note there are no \(\bar{s}\) defined for the basic and integer solutions.

rescode.err_bar_var_dim

The dimension of a symmetric matrix variable has to greater than 0.

rescode.err_sym_mat_invalid_row_index

A row index specified for sparse symmetric matrix is invalid.

rescode.err_sym_mat_invalid_col_index

A column index specified for sparse symmetric matrix is invalid.

rescode.err_sym_mat_not_lower_tringular

Only the lower triangular part of sparse symmetric matrix should be specified.

rescode.err_sym_mat_invalid_value

The numerical value specified in a sparse symmetric matrix is not a value floating value.

rescode.err_sym_mat_duplicate

A value in a symmetric matric as been specified more than once.

rescode.err_invalid_sym_mat_dim

A sparse symmetric matrix of invalid dimension is specified.

rescode.err_invalid_file_format_for_sym_mat

The file format does not support a problem with symmetric matrix variables.

rescode.err_invalid_file_format_for_cones

The file format does not support a problem with conic constraints.

rescode.err_invalid_file_format_for_general_nl

The file format does not support a problem with general nonlinear terms.

rescode.err_duplicate_constraint_names

Two constraint names are identical.

rescode.err_duplicate_variable_names

Two variable names are identical.

rescode.err_duplicate_barvariable_names

Two barvariable names are identical.

rescode.err_duplicate_cone_names

Two cone names are identical.

rescode.err_non_unique_array

An array does not contain unique elements.

rescode.err_argument_is_too_large

The value of a function argument is too large.

rescode.err_mio_internal

A fatal error occurred in the mixed integer optimizer. Please contact MOSEK support.

rescode.err_invalid_problem_type

An invalid problem type.

rescode.err_unhandled_solution_status

Unhandled solution status.

rescode.err_upper_triangle

An element in the upper triangle of a lower triangular matrix is specified.

rescode.err_lau_singular_matrix

A matrix is singular.

rescode.err_lau_not_positive_definite

A matrix is not positive definite.

rescode.err_lau_invalid_lower_triangular_matrix

An invalid lower triangular matrix.

rescode.err_lau_unknown

An unknown error.

rescode.err_lau_arg_m

Invalid argument m.

rescode.err_lau_arg_n

Invalid argument n.

rescode.err_lau_arg_k

Invalid argument k.

rescode.err_lau_arg_transa

Invalid argument transa.

rescode.err_lau_arg_transb

Invalid argument transb.

rescode.err_lau_arg_uplo

Invalid argument uplo.

rescode.err_lau_arg_trans

Invalid argument trans.

rescode.err_lau_invalid_sparse_symmetric_matrix

An invalid sparse symmetric matrix is specfified. Note only the lower triangular part with no duplicates is specifed.

rescode.err_cbf_parse

An error occurred while parsing an CBF file.

rescode.err_cbf_obj_sense

An invalid objective sense is specified.

rescode.err_cbf_no_variables

No variables are specified.

rescode.err_cbf_too_many_constraints

Too many constraints specified.

rescode.err_cbf_too_many_variables

Too many variables specified.

rescode.err_cbf_no_version_specified

No version specified.

rescode.err_cbf_syntax

Invalid syntax.

rescode.err_cbf_duplicate_obj

Duplicate OBJ keyword.

rescode.err_cbf_duplicate_con

Duplicate CON keyword.

rescode.err_cbf_duplicate_var

Duplicate VAR keyword.

rescode.err_cbf_duplicate_int

Duplicate INT keyword.

rescode.err_cbf_invalid_var_type

Invalid variable type.

rescode.err_cbf_invalid_con_type

Invalid constraint type.

rescode.err_cbf_invalid_domain_dimension

Invalid domain dimension.

rescode.err_cbf_duplicate_objacoord

Duplicate index in OBJCOORD.

rescode.err_cbf_duplicate_bcoord

Duplicate index in BCOORD.

rescode.err_cbf_duplicate_acoord

Duplicate index in ACOORD.

rescode.err_cbf_too_few_variables

Too few variables defined.

rescode.err_cbf_too_few_constraints

Too few constraints defined.

rescode.err_cbf_too_few_ints

Too few ints are specified.

rescode.err_cbf_too_many_ints

Too many ints are specified.

rescode.err_cbf_invalid_int_index

Invalid INT index.

rescode.err_cbf_unsupported

Unsupported feature is present.

rescode.err_cbf_duplicate_psdvar

Duplicate PSDVAR keyword.

rescode.err_cbf_invalid_psdvar_dimension

Invalid PSDVAR dimmension.

rescode.err_cbf_too_few_psdvar

Too few variables defined.

rescode.err_mio_invalid_root_optimizer

An invalid root optimizer was selected for the problem type.

rescode.err_mio_invalid_node_optimizer

An invalid node optimizer was selected for the problem type.

rescode.err_toconic_constr_q_not_psd

The matrix defining the quadratric part of constraint is not positive semidefinite.

rescode.err_toconic_constraint_fx

The quadratic constraint is an equality, thus not convex.

rescode.err_toconic_constraint_ra

The quadratic constraint has finite lower and upper bound, and therefore it is not convex.

rescode.err_toconic_constr_not_conic

The constraint is not conic representable.

rescode.err_toconic_objective_not_psd

The matrix defining the quadratric part of the objective function is not positive semidefinite.

rescode.err_server_connect

Failed to connect to remote solver server. The server string or the port string were invalid, or the server did not accept connection.

rescode.err_server_protocol

Unexpected message or data from solver server.

rescode.err_server_status

Server returned non-ok HTTP status code

rescode.err_server_token

The job ID specified is incorrect or invalid