Implementation of a Hybrid Simulated Annealing Algorithm for Solving the Three-Dimensional Boxing Problem MATLAB

For a mathematical modeling project, I needed to solve a three-dimensional container loading problem. After some searching, I chose the paper “A Hybrid Simulated Annealing Algorithm for Solving the Three-Dimensional Container Loading Problem” by Prof. Zhang Defu and others, published in the Chinese Journal of Computers, as the theoretical basis for my solution. The Paper’s Abstract This paper proposes a hybrid simulated annealing algorithm for efficiently solving the three-dimensional container loading problem (3D-CLP). The 3D-CLP requires loading a subset of a given set of boxes into a container so that the total volume of the loaded boxes is maximized. The hybrid simulated annealing algorithm in this paper is based on three important algorithms. (1) A composite block generation algorithm. Unlike traditional algorithms, the composite blocks proposed in this paper don’t contain only a single type of box, and can contain boxes of any type under certain constraints. (2) A basic heuristic algorithm, which is based on block loading and can generate a placement plan from a given loading sequence. (3) A simulated annealing algorithm. Built on composite block generation and the basic heuristic algorithm, it uses the loading sequence as the encoding of a feasible placement plan, and searches the encoding space with simulated annealing to find an approximately optimal solution to the problem. The algorithm is tested on 1,500 weakly and strongly heterogeneous container loading instances. The experimental results show that the fill rate of the hybrid simulated annealing algorithm is higher than that of the best known algorithms. ...

September 30, 2021 · Saturneric

TransRepair: Automatic Testing and Improvement of Machine Translation

A while ago I read the paper TransRepair: Automatic Testing and Improvement of Machine Translation. It proposes a method called TransRepair, which automatically tests machine translation models from a software testing point of view. Below I’ll go through my understanding of it from a few angles. Introduction to TransRepair TransRepair is a method for automatically detecting and repairing consistency problems in machine translation software. It offers two ways to solve this problem, a black-box one and a gray-box one. Its main steps are generating test cases, building the test oracle and running the automatic repair. The algorithm the paper gives for generating test cases is fairly clear, rigorous and detailed, and it uses four quantification methods to compare the differences between sentences. TransRepair also uses structural consistency as its assertion, the experimental design is fairly thorough, and the results are pretty rich. ...

September 30, 2021 · Saturneric

Structure-Invariant Testing for Machine Translation (SIT) Paper Reading Summary

A while ago I read the paper Structure-Invariant Testing for Machine Translation. It proposes a method for detecting robustness problems in machine translation software systems. Below I’ll go through my understanding of it from a few angles. Main Content SIT is a method for detecting robustness problems in machine translation software systems. It uses a metamorphic relation from metamorphic testing called “structural invariance”. SIT picks original sentences, generates similar sentences, gets their translations from the translation software, runs constituent parsing to quantify the differences between sentences, and then filters by a preset threshold to find problems. This way it can detect robustness problems in machine translation software systems efficiently. According to the experimental results, SIT can process more than 2k sentences in 19 seconds, and its accuracy on Google Translate and Bing Translate reaches 70%. But there’s still room for improvement, probably because of how the threshold is chosen. ...

September 30, 2021 · Saturneric

Solve the problem of oh-my-zsh plugin 'zsh-autosuggestions' not found and plugin 'zsh-syntax-highlighting' not found

When we install the zsh plugins zsh-autosuggestions or zsh-syntax-highlighting, we usually run into the oh-my-zsh error “plugin ‘xxx’ not found”. So let’s look at why oh-my-zsh reports “plugin ‘zsh-autosuggestions’ not found” and “plugin ‘zsh-syntax-highlighting’ not found”, and how to fix it. The cause is that the plugin’s code repository was never cloned to your local machine, so the plugin you want isn’t actually installed. The fix is really simple. Just run the following commands: ...

May 25, 2021 · Saturneric