{'fraction_non_alphanumeric': 0.02263374485596708, 'fraction_numerical': 0.0, 'mean_word_length': 5.786046511627907, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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}}
A General Solution for the Errors in Variables (EIV) Model with Equality and Inequality Constraints

Targeting the adjustment of the errors-in-variables (EIV) model with equality and inequality constraints, a general solution that is similar to the classical least square adjustment is proposed based on the penalty function and the weight in measurement. Firstly, we take the equality constraints as inequality constraints that do not satisfy the constraint conditions and construct the penalty functions of equality and inequality constraints, respectively. Thus, the inequality constrained optimization problem is transformed into an unconstrained optimization problem. Then the detailed calculation formula and approximate accuracy evaluation formula of the general solution are deduced. The iteration formula of the general solution is easy regarding comprehension and applicable in implementation. It can not only solve the EIV model with equality and inequality constraints respectively, but also address the EIV model with equality and inequality constraints simultaneously. In addition, it can promote the Gauss–Markov (G-M) model with equality and inequality constraints. Finally, three examples (i.e., equality constraints, inequality constraints and those with equality and inequality constraints) are validated, indicating that the general solution is effective and feasible. The results show that the general solution is effective and feasible.