<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Graph Forums — Linear Programming.]]></title>
	<link rel="self" href="https://forum.padowan.dk/extern.php?action=feed&amp;tid=799&amp;type=atom"/>
	<updated>2013-04-12T13:17:59Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.padowan.dk/viewtopic.php?id=799</id>
		<entry>
			<title type="html"><![CDATA[Re: Linear Programming.]]></title>
			<link rel="alternate" href="https://forum.padowan.dk/viewtopic.php?pid=2242#p2242"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>timothyso wrote:</cite><blockquote><p>Ivan you seem to use a very strange method for shading.&nbsp; A very common application is to graph the feasible region of<br />say:&nbsp; 10x + 20 y &lt; 300,&nbsp; 10x + 8 y &gt; 200, and y &gt; 2( x - 20)&nbsp; &nbsp; (Sometimes there can be 5 equations that result in a polygonal<br />region in the x-y plane. )&nbsp; As it stands, it seem impossible to do this with your shading choices (btw I had experimented and find that I have NO IDEA what it mean &#039;decrease to intersection&#039; etc.... Totally baffling.</p></blockquote></div><p>You can always combine several inequalities in a relation:<br /></p><div class="codebox"><pre><code>10x + 20 y &lt; 300 and 10x + 8 y &gt; 200 and y &gt; 2( x -20)</code></pre></div><div class="quotebox"><cite>timothyso wrote:</cite><blockquote><p>Now it is possible with relations to very carefully and (complex to boot) create shaded triangles using the CONSTRAINTS<br />portion of the relation.&nbsp; However, I have not found a way to animate it. (Which I find to be&nbsp; your most usefull tool)</p></blockquote></div><p>You can animate it like anything else by creating a custom constant and use it in the animation dialog.</p><div class="quotebox"><cite>timothyso wrote:</cite><blockquote><p>CLEAR EXAMPLE:&nbsp; function: f(x) = (300-10x)/16 (used as lower bound of triangle)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;custom&nbsp; function: g(x) = (250-a*x)/15&nbsp; (used as upper bound of triangle)</p><p>The additional constrainst are x&gt;0 y&gt;0.&nbsp; &nbsp;If I choose to shaded between&nbsp; I get into problems getting the<br />triangular region Above the intersection point of g and f&nbsp; So experiementing I found I could use shading between with the option from 62 decrease to intersection.&nbsp; That gives me only the lower triangle but it extends to infinity.&nbsp; &nbsp; I now animate it from a= 4 to a = 8.36 and my lower triangle &#039;sinks down&#039;.&nbsp; HOWEVER I can&#039;t find a way to us only x&gt;0 or other constraints to get the restricte shading.</p></blockquote></div><p>You need to specify a range in x-coordinates. For f(x) this will be <em>From</em>=0 and <em>To</em>=30. For g(x) the crossing of the x-axis depends on <strong>a</strong>, so here you need <em>From</em>=0 and <em>To</em>=250/a.</p><div class="quotebox"><cite>timothyso wrote:</cite><blockquote><p>Can you explain however, what do you mean by you shading options?</p></blockquote></div><p>The <em>Increase/Decrease</em> check boxes are not very useful in your case. They are intended for the case where you for example want to shade one side of where the functions cross, but you don&#039;t know the exact coordinate where they cross.</p><div class="quotebox"><cite>timothyso wrote:</cite><blockquote><p>and why is there TWO choice one set with 2nd fuction and another under options tab?</p></blockquote></div><p>Because as in your case it is necessary with different ranges for the two functions.</p><p>I have attached an updated version of your file with a shading and a relation that both shades the area you want.</p>]]></content>
			<author>
				<name><![CDATA[Ivan Johansen]]></name>
				<uri>https://forum.padowan.dk/profile.php?id=2</uri>
			</author>
			<updated>2013-04-12T13:17:59Z</updated>
			<id>https://forum.padowan.dk/viewtopic.php?pid=2242#p2242</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Linear Programming.]]></title>
			<link rel="alternate" href="https://forum.padowan.dk/viewtopic.php?pid=2239#p2239"/>
			<content type="html"><![CDATA[<p>Ivan you seem to use a very strange method for shading.&nbsp; A very common application is to graph the feasible region of<br />say:&nbsp; 10x + 20 y &lt; 300,&nbsp; 10x + 8 y &gt; 200, and y &gt; 2( x -20)&nbsp; &nbsp; (Sometimes there can be 5 equations that result in a polygonal<br />region in the x-y plane. )&nbsp; As it stands, it seem impossible to do this with your shading choices (btw I had experimented and find that I have NO IDEA what it mean &#039;decrease to intersection&#039; etc.... Totally baffling.&nbsp; </p><p>Now it is possible with relations to very carefully and (complex to boot) create shaded triangles using the CONSTRAINTS<br />portion of the relation.&nbsp; However, I have not found a way to animate it. (Which I find to be&nbsp; your most usefull tool)</p><p>CLEAR EXAMPLE:&nbsp; function: f(x) = (300-10x)/16 (used as lower bound of triangle)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;custom&nbsp; function: g(x) = (250-a*x)/15&nbsp; (used as upper bound of triangle)</p><p>The additional constrainst are x&gt;0 y&gt;0.&nbsp; &nbsp;If I choose to shaded between&nbsp; I get into problems getting the<br />triangular region Above the intersection point of g and f&nbsp; So experiementing I found I could use shading between with the option from 62 decrease to intersection.&nbsp; That gives me only the lower triangle but it extends to infinity.&nbsp; &nbsp; I now animate it from a= 4 to a = 8.36 and my lower triangle &#039;sinks down&#039;.&nbsp; HOWEVER I can&#039;t find a way to us only x&gt;0 or other constraints to get the restricte shading.</p><br /><p>Can you explain however, what do you mean by you shading options?<br />and why is there TWO choice one set with 2nd fuction and another under options tab?</p><p>Below is an example&nbsp; shading partially successful. Animatation too large to upload (vary a between as above)</p>]]></content>
			<author>
				<name><![CDATA[timothyso]]></name>
				<uri>https://forum.padowan.dk/profile.php?id=27211</uri>
			</author>
			<updated>2013-04-10T18:23:05Z</updated>
			<id>https://forum.padowan.dk/viewtopic.php?pid=2239#p2239</id>
		</entry>
</feed>
