cassowary-ruby 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/LICENSE +20 -0
- data/README.md +18 -0
- data/lib/cassowary.rb +25 -0
- data/lib/constraint/edit_or_stay_constraint.rb +40 -0
- data/lib/constraint/linear_constraint.rb +23 -0
- data/lib/constraint.rb +30 -0
- data/lib/ext/float.rb +24 -0
- data/lib/ext/numeric.rb +11 -0
- data/lib/ext/object.rb +11 -0
- data/lib/linear_expression.rb +163 -0
- data/lib/simplex_solver.rb +704 -0
- data/lib/strength.rb +31 -0
- data/lib/symbolic_weight.rb +115 -0
- data/lib/utils/equalities.rb +27 -0
- data/lib/variables/abstract_variable.rb +35 -0
- data/lib/variables/dummy_variable.rb +21 -0
- data/lib/variables/objective_variable.rb +17 -0
- data/lib/variables/slack_variable.rb +17 -0
- data/lib/variables/variable.rb +56 -0
- data/lib/variables.rb +5 -0
- data/test/test_abstract_methods.rb +22 -0
- data/test/test_cassowary.rb +184 -0
- data/test/test_ext.rb +38 -0
- data/test/test_helper.rb +12 -0
- data/test/test_variables.rb +33 -0
- metadata +106 -0
metadata
ADDED
@@ -0,0 +1,106 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: cassowary-ruby
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.5.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Tim Felgentreff
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2012-11-27 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: ! '## Cassowary
|
14
|
+
|
15
|
+
|
16
|
+
Cassowary is an incremental constraint solving toolkit that
|
17
|
+
|
18
|
+
efficiently solves systems of linear equalities and
|
19
|
+
|
20
|
+
inequalities. Constraints may be either requirements or
|
21
|
+
|
22
|
+
preferences. Client code specifies the constraints to be maintained,
|
23
|
+
|
24
|
+
and the solver updates the constrained variables to have values that
|
25
|
+
|
26
|
+
satisfy the constraints.
|
27
|
+
|
28
|
+
|
29
|
+
This is a Ruby port of the Smalltalk version of Cassowary. The
|
30
|
+
|
31
|
+
original distribution can be found
|
32
|
+
|
33
|
+
[here](http://www.cs.washington.edu/research/constraints/cassowary/).
|
34
|
+
|
35
|
+
|
36
|
+
A technical report is included in the original distribution that
|
37
|
+
|
38
|
+
describes the algorithm, interface, and implementation of the
|
39
|
+
|
40
|
+
Cassowary solver. Additionally, the distribution contains toy sample
|
41
|
+
|
42
|
+
applications written in Smalltalk, C++, Java, and Python, and a more
|
43
|
+
|
44
|
+
complex example Java applet, the "Constraint Drawing Application".
|
45
|
+
|
46
|
+
'
|
47
|
+
email: tim@bithug.org
|
48
|
+
executables: []
|
49
|
+
extensions: []
|
50
|
+
extra_rdoc_files: []
|
51
|
+
files:
|
52
|
+
- README.md
|
53
|
+
- LICENSE
|
54
|
+
- lib/linear_expression.rb
|
55
|
+
- lib/cassowary.rb
|
56
|
+
- lib/simplex_solver.rb
|
57
|
+
- lib/utils/equalities.rb
|
58
|
+
- lib/ext/float.rb
|
59
|
+
- lib/ext/numeric.rb
|
60
|
+
- lib/ext/object.rb
|
61
|
+
- lib/symbolic_weight.rb
|
62
|
+
- lib/variables.rb
|
63
|
+
- lib/constraint.rb
|
64
|
+
- lib/strength.rb
|
65
|
+
- lib/variables/variable.rb
|
66
|
+
- lib/variables/dummy_variable.rb
|
67
|
+
- lib/variables/slack_variable.rb
|
68
|
+
- lib/variables/objective_variable.rb
|
69
|
+
- lib/variables/abstract_variable.rb
|
70
|
+
- lib/constraint/linear_constraint.rb
|
71
|
+
- lib/constraint/edit_or_stay_constraint.rb
|
72
|
+
- test/test_helper.rb
|
73
|
+
- test/test_variables.rb
|
74
|
+
- test/test_ext.rb
|
75
|
+
- test/test_abstract_methods.rb
|
76
|
+
- test/test_cassowary.rb
|
77
|
+
homepage: https://github.com/timfel/cassowary-ruby
|
78
|
+
licenses: []
|
79
|
+
metadata: {}
|
80
|
+
post_install_message:
|
81
|
+
rdoc_options: []
|
82
|
+
require_paths:
|
83
|
+
- lib
|
84
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - ! '>='
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '0'
|
89
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
90
|
+
requirements:
|
91
|
+
- - ! '>='
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0'
|
94
|
+
requirements: []
|
95
|
+
rubyforge_project:
|
96
|
+
rubygems_version: 2.0.a
|
97
|
+
signing_key:
|
98
|
+
specification_version: 4
|
99
|
+
summary: Cassowary is an incremental constraint solving toolkit that efficiently solves
|
100
|
+
systems of linear equalities and inequalities
|
101
|
+
test_files:
|
102
|
+
- test/test_helper.rb
|
103
|
+
- test/test_variables.rb
|
104
|
+
- test/test_ext.rb
|
105
|
+
- test/test_abstract_methods.rb
|
106
|
+
- test/test_cassowary.rb
|