<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to bugs</title><link href="https://sourceforge.net/p/cassowary/bugs/" rel="alternate"/><link href="https://sourceforge.net/p/cassowary/bugs/feed.atom" rel="self"/><id>https://sourceforge.net/p/cassowary/bugs/</id><updated>2006-05-23T15:03:07Z</updated><subtitle>Recent changes to bugs</subtitle><entry><title>Cassowary fails on valid constraint sets</title><link href="https://sourceforge.net/p/cassowary/bugs/1/" rel="alternate"/><published>2006-05-23T15:03:07Z</published><updated>2006-05-23T15:03:07Z</updated><author><name/><uri>https://sourceforge.net</uri></author><id>https://sourceforge.netf0e1f85c571246795579d3f099afd5a6cafa8fa7</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Cassowary fails on the following constraint set which&lt;br /&gt;
is valid.&lt;/p&gt;
&lt;p&gt;public final void testCassowary1b()&lt;br /&gt;
{&lt;br /&gt;
final ClSimplexSolver solver = new&lt;br /&gt;
ClSimplexSolver();&lt;/p&gt;
&lt;p&gt;final ClLinearExpression left = new&lt;br /&gt;
ClLinearExpression(new ClVariable("left"));&lt;br /&gt;
final ClLinearExpression width = new&lt;br /&gt;
ClLinearExpression(new ClVariable("width"));&lt;/p&gt;
&lt;p&gt;// the outer frame starts at 0 and has a width of 5&lt;br /&gt;
// the inner frame is inside the outer one&lt;br /&gt;
try&lt;br /&gt;
{&lt;br /&gt;
// the left edge has a positive coordinate&lt;br /&gt;
solver.addConstraint(new&lt;br /&gt;
ClLinearInequality(left));&lt;/p&gt;
&lt;p&gt;// the right edge of the frame is on or&lt;br /&gt;
left of the right of coordinate 5&lt;br /&gt;
solver.addConstraint(new&lt;br /&gt;
ClLinearInequality(new&lt;br /&gt;
ClLinearExpression(5).minus(left).minus(width)));&lt;/p&gt;
&lt;p&gt;// the inner frame is centered in the&lt;br /&gt;
region 0 -- 4&lt;br /&gt;
solver.addConstraint(new&lt;br /&gt;
ClLinearInequality(new&lt;br /&gt;
ClLinearExpression(2.5).minus(left).minus(width.times(0.5))));&lt;/p&gt;
&lt;p&gt;//  the left edge is on or left of coordinate 1&lt;br /&gt;
solver.addConstraint(new&lt;br /&gt;
ClLinearInequality(left.minus(new&lt;br /&gt;
ClLinearExpression(1.0))));&lt;br /&gt;
}&lt;br /&gt;
catch (ExCLRequiredFailure e)&lt;br /&gt;
{&lt;br /&gt;
System.out.println("fails but should&lt;br /&gt;
succeed:");&lt;br /&gt;
System.out.println("E.g., left=1.2 and&lt;br /&gt;
width=2.0 is a solution way in the middle of the&lt;br /&gt;
solution intervals");&lt;br /&gt;
}&lt;br /&gt;
catch (ExCLInternalError e)&lt;br /&gt;
{&lt;br /&gt;
System.out.println("ExCLInternalError");&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;System.out.println("success");&lt;br /&gt;
}&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>