arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1401.1031cs.HCcs.AI
收藏

用户界面布局的约束求解器

Constraint Solvers for User Interface Layout

University of Auckland(奥克兰大学)

Noreen Jamil

摘要:

约束在GUI的构造中扮演着重要的角色,它们主要用于定义小部件的布局。调整大小的行为在GUI中非常重要,因为区域具有特定于域的参数,例如窗口的形状。如果使用线性目标函数并且调整窗口大小,则误差不会均匀分布。为了平均分配误差,引入了二次目标函数。不同的算法被广泛用于解决线性约束和二次问题在各种不同的科学领域。线性规划法、Kaczmarz法、直接法和线性规划法是求解GUI布局线性约束的常用方法。内点法和有效集法是求解二次规划问题最常用的方法。目前的约束求解器设计的GUI布局不使用内点法求解二次目标函数的线性等式和不等式约束。在本文中,性能方面和收敛速度的内点和有效集方法进行了比较,随着一个最常用的线性规划方法时,他们实现了图形用户界面布局。所提出的算法的性能和收敛性进行评估经验使用随机生成的UI布局规格的各种大小。结果表明,内点算法的性能显着优于单纯形法和QOCA-solver,它使用有效集方法实现解决二次优化。

英文摘要:

Constraints have played an important role in the construction of GUIs, where they are mainly used to define the layout of the widgets. Resizing behavior is very important in GUIs because areas have domain specific parameters such as form the resizing of windows. If linear objective function is used and window is resized then error is not distributed equally. To distribute the error equally, a quadratic objective function is introduced. Different algorithms are widely used for solving linear constraints and quadratic problems in a variety of different scientific areas. The linear relxation, Kaczmarz, direct and linear programming methods are common methods for solving linear constraints for GUI layout. The interior point and active set methods are most commonly used techniques to solve quadratic programming problems. Current constraint solvers designed for GUI layout do not use interior point methods for solving a quadratic objective function subject to linear equality and inequality constraints. In this paper, performance aspects and the convergence speed of interior point and active set methods are compared along with one most commonly used linear programming method when they are implemented for graphical user interface layout. The performance and convergence of the proposed algorithms are evaluated empirically using randomly generated UI layout specifications of various sizes. The results show that the interior point algorithms perform significantly better than the Simplex method and QOCA-solver, which uses the active set method implementation for solving quadratic optimization.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑