<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="es">
		<id>https://mat.caminos.upm.es/w/index.php?action=history&amp;feed=atom&amp;title=Estabilidad_de_una_presa_de_gravedad_II</id>
		<title>Estabilidad de una presa de gravedad II - Historial de revisiones</title>
		<link rel="self" type="application/atom+xml" href="https://mat.caminos.upm.es/w/index.php?action=history&amp;feed=atom&amp;title=Estabilidad_de_una_presa_de_gravedad_II"/>
		<link rel="alternate" type="text/html" href="https://mat.caminos.upm.es/w/index.php?title=Estabilidad_de_una_presa_de_gravedad_II&amp;action=history"/>
		<updated>2026-04-29T12:11:30Z</updated>
		<subtitle>Historial de revisiones para esta página en el wiki</subtitle>
		<generator>MediaWiki 1.26.2</generator>

	<entry>
		<id>https://mat.caminos.upm.es/w/index.php?title=Estabilidad_de_una_presa_de_gravedad_II&amp;diff=40618&amp;oldid=prev</id>
		<title>Carlos Castro en 10:38 14 dic 2017</title>
		<link rel="alternate" type="text/html" href="https://mat.caminos.upm.es/w/index.php?title=Estabilidad_de_una_presa_de_gravedad_II&amp;diff=40618&amp;oldid=prev"/>
				<updated>2017-12-14T10:38:05Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='es'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Revisión anterior&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revisión del 10:38 14 dic 2017&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l143&quot; &gt;Línea 143:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Línea 143:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}} &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}} &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;De todas formas conviene evitar este tipo situaciones ya que los métodos de optimización para problemas de esta forma son mucho menos eficientes. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;De todas formas conviene evitar este tipo situaciones ya que los métodos de optimización para problemas de esta forma son mucho menos eficientes. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* '''Restricciones adicionales.''' Además de las restricciones impuestas por la estabilidad, las geometrías que se traten pueden requerir más restricciones. Por ejemplo, si nuestras variables de optimización son varios puntos &amp;lt;math&amp;gt;&amp;#160; (x_i, y_i), i=1,...,n, &amp;lt;/math&amp;gt;&amp;#160; y queremos que las coordenadas &amp;lt;math&amp;gt; y_i &amp;lt;/math&amp;gt; de estos puntos estén ordenadas, es decir &amp;lt;math&amp;gt; y_{i+1}&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;gt;&lt;/del&gt;y_i &amp;lt;/math&amp;gt; para &amp;lt;math&amp;gt; i=1,..,n-1&amp;lt;/math&amp;gt;, esto puede imponerse añadiendo una restricción más que podríamos escribir de esta forma&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* '''Restricciones adicionales.''' Además de las restricciones impuestas por la estabilidad, las geometrías que se traten pueden requerir más restricciones. Por ejemplo, si nuestras variables de optimización son varios puntos &amp;lt;math&amp;gt;&amp;#160; (x_i, y_i), i=1,...,n, &amp;lt;/math&amp;gt;&amp;#160; y queremos que las coordenadas &amp;lt;math&amp;gt; y_i &amp;lt;/math&amp;gt; de estos puntos estén ordenadas, es decir &amp;lt;math&amp;gt; y_{i+1} &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;\gt &lt;/ins&gt;y_i &amp;lt;/math&amp;gt; para &amp;lt;math&amp;gt; i=1,..,n-1&amp;lt;/math&amp;gt;, esto puede imponerse añadiendo una restricción más que podríamos escribir de esta forma&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{matlab|codigo= &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{matlab|codigo= &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;% Llamamos Cxy la matriz que contiene por columnas las coordenadas de varios puntos y n el número de puntos, que &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;% Llamamos Cxy la matriz que contiene por columnas las coordenadas de varios puntos y n el número de puntos, que &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Carlos Castro</name></author>	</entry>

	<entry>
		<id>https://mat.caminos.upm.es/w/index.php?title=Estabilidad_de_una_presa_de_gravedad_II&amp;diff=38643&amp;oldid=prev</id>
		<title>Carlos Castro en 11:54 16 mar 2017</title>
		<link rel="alternate" type="text/html" href="https://mat.caminos.upm.es/w/index.php?title=Estabilidad_de_una_presa_de_gravedad_II&amp;diff=38643&amp;oldid=prev"/>
				<updated>2017-03-16T11:54:50Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='es'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Revisión anterior&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revisión del 11:54 16 mar 2017&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l19&quot; &gt;Línea 19:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Línea 19:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Phi&amp;#160; &amp;#160; &amp;#160;  = pi/4; % ángulo de rozamiento en el contacto presa-cimiento (radianes)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Phi&amp;#160; &amp;#160; &amp;#160;  = pi/4; % ángulo de rozamiento en el contacto presa-cimiento (radianes)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;F_Phi&amp;#160; &amp;#160;  = 1.2;&amp;#160; % coeficiente de seguridad al rozamiento exigido por la normativa en la hipótesis de drenes ineficaces&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;F_Phi&amp;#160; &amp;#160;  = 1.2;&amp;#160; % coeficiente de seguridad al rozamiento exigido por la normativa en la hipótesis de drenes ineficaces&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;S_Amin&amp;#160; &amp;#160; = &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;0.&lt;/del&gt;5;&amp;#160; % compresión mínima en el pie de aguas arriba (&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;kp&lt;/del&gt;/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;cm2&lt;/del&gt;)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;S_Amin&amp;#160; &amp;#160; = 5;&amp;#160; % compresión mínima en el pie de aguas arriba (&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;t&lt;/ins&gt;/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;m2&lt;/ins&gt;)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;S_Bmax&amp;#160; &amp;#160; = &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;8.4&lt;/del&gt;;&amp;#160; % compresión máxima en el pie de aguas abajo (&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;kp&lt;/del&gt;/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;cm2&lt;/del&gt;) &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;S_Bmax&amp;#160; &amp;#160; = &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;84&lt;/ins&gt;;&amp;#160; % compresión máxima en el pie de aguas abajo (&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;t&lt;/ins&gt;/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;m2&lt;/ins&gt;) &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;% Variables de optimización: n = pendiente aguas abajo&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;% Variables de optimización: n = pendiente aguas abajo&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l69&quot; &gt;Línea 69:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Línea 69:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;% %% 2. Compresión en el pie de aguas abajo menor que el máximo admitido&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;% %% 2. Compresión en el pie de aguas abajo menor que el máximo admitido&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;% por el cimiento. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;% por el cimiento. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;g_rest2 = @(n) S_B(n)-S_Bmax&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;*10&lt;/del&gt;;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;g_rest2 = @(n) S_B(n)-S_Bmax;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;% la estabilidad requiere g_rest2(n) &amp;lt; 0&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;% la estabilidad requiere g_rest2(n) &amp;lt; 0&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;% %% 3. El pie de aguas arriba debe mantenerse comprimido, con un valor superior a S_Amin.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;% %% 3. El pie de aguas arriba debe mantenerse comprimido, con un valor superior a S_Amin.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;g_rest3 = @(n) S_Amin&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;*10&lt;/del&gt;-S_A(n);&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;g_rest3 = @(n) S_Amin-S_A(n);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;% la estabilidad requiere g_rest3(n) &amp;lt; 0&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;% la estabilidad requiere g_rest3(n) &amp;lt; 0&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Carlos Castro</name></author>	</entry>

	<entry>
		<id>https://mat.caminos.upm.es/w/index.php?title=Estabilidad_de_una_presa_de_gravedad_II&amp;diff=38628&amp;oldid=prev</id>
		<title>Carlos Castro: /* Programa en MATLAB */</title>
		<link rel="alternate" type="text/html" href="https://mat.caminos.upm.es/w/index.php?title=Estabilidad_de_una_presa_de_gravedad_II&amp;diff=38628&amp;oldid=prev"/>
				<updated>2017-03-10T21:05:27Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Programa en MATLAB&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='es'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Revisión anterior&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revisión del 21:05 10 mar 2017&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l63&quot; &gt;Línea 63:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Línea 63:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;% %% 1. Estabilidad frente al deslizamiento: E-T&amp;lt;0&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;% %% 1. Estabilidad frente al deslizamiento: E-T&amp;lt;0&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;% donde T es la fuerza necesaria para vencer el rozamiento:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;% donde T es la fuerza necesaria para vencer el rozamiento:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;br /&gt;
&lt;b&gt;Deprecated&lt;/b&gt;:  The each() function is deprecated. This message will be suppressed on further calls in &lt;b&gt;/home/mat/public_html/w/includes/diff/DairikiDiff.php&lt;/b&gt; on line &lt;b&gt;434&lt;/b&gt;&lt;br /&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;% T = &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;(P-S)&lt;/del&gt;*tan(Phi)/F_Phi (despreciando la cohesión y añadiendo el coef. seg. al rozamiento)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;% T = &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;N&lt;/ins&gt;*tan(Phi)/F_Phi (despreciando la cohesión y añadiendo el coef. seg. al rozamiento)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;g_rest1 = @(n) E-&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;(P&lt;/del&gt;(n&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;)-S(n)&lt;/del&gt;)*tan(Phi)/F_Phi; &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;g_rest1 = @(n) E-&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;N&lt;/ins&gt;(n)*tan(Phi)/F_Phi; &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;% la estabilidad requiere g_rest1(n) &amp;lt; 0&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;% la estabilidad requiere g_rest1(n) &amp;lt; 0&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Carlos Castro</name></author>	</entry>

	<entry>
		<id>https://mat.caminos.upm.es/w/index.php?title=Estabilidad_de_una_presa_de_gravedad_II&amp;diff=38627&amp;oldid=prev</id>
		<title>Carlos Castro: /* Programa en MATLAB */</title>
		<link rel="alternate" type="text/html" href="https://mat.caminos.upm.es/w/index.php?title=Estabilidad_de_una_presa_de_gravedad_II&amp;diff=38627&amp;oldid=prev"/>
				<updated>2017-03-10T18:02:20Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Programa en MATLAB&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='es'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Revisión anterior&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revisión del 18:02 10 mar 2017&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l35&quot; &gt;Línea 35:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Línea 35:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;% Necesitaremos también las tensiones en los pies de aguas arriba y aguas abajo: S_A y S_B&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;% Necesitaremos también las tensiones en los pies de aguas arriba y aguas abajo: S_A y S_B&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;% Para ello usaremos lo siguiente: &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;% Para ello usaremos lo siguiente: &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;%&amp;#160; &amp;#160; 1. Supondremos que la distribución de las tensiones &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;asociadas a &lt;/del&gt;la&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;%&amp;#160; &amp;#160; 1. Supondremos que la distribución de las tensiones &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;verticales en &lt;/ins&gt;la &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;base&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;%&amp;#160; &amp;#160; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;normal &lt;/del&gt;varía linealmente desde el pie de aguas arriba (donde toma el valor S_A) hacia el de&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;%&amp;#160; &amp;#160; varía linealmente desde el pie de aguas arriba (donde toma el valor S_A) hacia el de&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;%&amp;#160; &amp;#160; aguas abajo (donde toma el valor S_B).&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;%&amp;#160; &amp;#160; aguas abajo (donde toma el valor S_B).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;%&amp;#160; &amp;#160; 2. El equilibrio de momentos en el pie de aguas abajo&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;%&amp;#160; &amp;#160; 2. El equilibrio de momentos en el pie de aguas abajo&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Carlos Castro</name></author>	</entry>

	<entry>
		<id>https://mat.caminos.upm.es/w/index.php?title=Estabilidad_de_una_presa_de_gravedad_II&amp;diff=38626&amp;oldid=prev</id>
		<title>Carlos Castro: /* Programa en MATLAB */</title>
		<link rel="alternate" type="text/html" href="https://mat.caminos.upm.es/w/index.php?title=Estabilidad_de_una_presa_de_gravedad_II&amp;diff=38626&amp;oldid=prev"/>
				<updated>2017-03-10T18:00:21Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Programa en MATLAB&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='es'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Revisión anterior&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revisión del 18:00 10 mar 2017&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l36&quot; &gt;Línea 36:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Línea 36:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;% Para ello usaremos lo siguiente: &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;% Para ello usaremos lo siguiente: &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;%&amp;#160; &amp;#160; 1. Supondremos que la distribución de las tensiones asociadas a la&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;%&amp;#160; &amp;#160; 1. Supondremos que la distribución de las tensiones asociadas a la&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;%&amp;#160; &amp;#160; normal varía linealmente desde el pie de aguas arriba hacia el de&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;%&amp;#160; &amp;#160; normal varía linealmente desde el pie de aguas arriba &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;(donde toma el valor S_A) &lt;/ins&gt;hacia el de&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;%&amp;#160; &amp;#160; aguas abajo.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;%&amp;#160; &amp;#160; aguas abajo &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;(donde toma el valor S_B)&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;%&amp;#160; &amp;#160; 2. El equilibrio de momentos en el pie de aguas abajo&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;%&amp;#160; &amp;#160; 2. El equilibrio de momentos en el pie de aguas abajo&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;% Estas dos condiciones se escriben:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;% Estas dos condiciones se escriben:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Carlos Castro</name></author>	</entry>

	<entry>
		<id>https://mat.caminos.upm.es/w/index.php?title=Estabilidad_de_una_presa_de_gravedad_II&amp;diff=38625&amp;oldid=prev</id>
		<title>Carlos Castro en 17:59 10 mar 2017</title>
		<link rel="alternate" type="text/html" href="https://mat.caminos.upm.es/w/index.php?title=Estabilidad_de_una_presa_de_gravedad_II&amp;diff=38625&amp;oldid=prev"/>
				<updated>2017-03-10T17:59:24Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='es'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Revisión anterior&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revisión del 17:59 10 mar 2017&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l36&quot; &gt;Línea 36:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Línea 36:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;% Para ello usaremos lo siguiente: &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;% Para ello usaremos lo siguiente: &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;%&amp;#160; &amp;#160; 1. Supondremos que la distribución de las tensiones asociadas a la&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;%&amp;#160; &amp;#160; 1. Supondremos que la distribución de las tensiones asociadas a la&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;%&amp;#160; &amp;#160; normal &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;crece &lt;/del&gt;linealmente desde el pie de aguas arriba hacia el de&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;%&amp;#160; &amp;#160; normal &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;varía &lt;/ins&gt;linealmente desde el pie de aguas arriba hacia el de&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;%&amp;#160; &amp;#160; aguas abajo.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;%&amp;#160; &amp;#160; aguas abajo.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;%&amp;#160; &amp;#160; 2. El equilibrio de momentos en el pie de aguas abajo&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;%&amp;#160; &amp;#160; 2. El equilibrio de momentos en el pie de aguas abajo&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Carlos Castro</name></author>	</entry>

	<entry>
		<id>https://mat.caminos.upm.es/w/index.php?title=Estabilidad_de_una_presa_de_gravedad_II&amp;diff=38624&amp;oldid=prev</id>
		<title>Carlos Castro: Página creada con «En este artículo vamos a describir cómo optimizar con MATLAB el talud de aguas abajo de una presa de gravedad triangular, con talud de aguas arriba vertical, para que ten...»</title>
		<link rel="alternate" type="text/html" href="https://mat.caminos.upm.es/w/index.php?title=Estabilidad_de_una_presa_de_gravedad_II&amp;diff=38624&amp;oldid=prev"/>
				<updated>2017-03-10T15:07:18Z</updated>
		
		<summary type="html">&lt;p&gt;Página creada con «En este artículo vamos a describir cómo optimizar con MATLAB el talud de aguas abajo de una presa de gravedad triangular, con talud de aguas arriba vertical, para que ten...»&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Página nueva&lt;/b&gt;&lt;/p&gt;&lt;div&gt;En este artículo vamos a describir cómo optimizar con MATLAB el talud de aguas abajo de una presa de gravedad triangular, con talud de aguas arriba vertical, para que tenga un área mínima, manteniendo la estabilidad respecto al plano presa-cimiento y con unas restricciones respecto a la tensión de compresión mínima en el pie de aguas arriba, y a la máxima en el de aguas abajo. El caso programado se corresponde con la hipótesis accidental de drenes ineficaces, despreciando la cohesión en el plano de deslizamiento. Siguiendo las notaciones y dibujos de las transparencias que envió Rafael Morán y la metodología general expuesta en el artículo [[Guía de optimización en ingeniería|Guía de optimización en ingeniería]] el código sería el siguiente:&lt;br /&gt;
&lt;br /&gt;
== Programa en MATLAB ==&lt;br /&gt;
&lt;br /&gt;
{{matlab|codigo=&lt;br /&gt;
% Este programa calcula el talud óptimo de aguas abajo de una presa de gravedad &lt;br /&gt;
% manteniendo la estabilidad y las condiciones de tensiones en cimentación &lt;br /&gt;
% en la hipótesis de tensión plana. Supondremos que el perfil es un triángulo del cual &lt;br /&gt;
% sólo podemos elegir el talud de aguas abajo que llamaremos n. El talud de &lt;br /&gt;
% aguas arriba supondremos que es vertical. Buscaremos el perfil con área mínima.&lt;br /&gt;
&lt;br /&gt;
% Parámetros específicos del problema&lt;br /&gt;
NMN       = 170;  % Nivel máximo normal de embalse (msnm)&lt;br /&gt;
NAP       = 174;  % Cota del vértice resistente (se considera en este caso igual al nivel de avenida de proyecto) (msnm)&lt;br /&gt;
Cota_cim  = 108;  % Cota de la base de cimentación, que en este caso es horizontal (msnm)&lt;br /&gt;
Ter_abajo = 118;  % Cota del terreno natural aguas abajo (se considera que el nivel del río aguas abajo está a esa cota) (msnm)&lt;br /&gt;
mu_h      = 2.4;  % peso específico del hormigón en t/m3&lt;br /&gt;
mu_a      = 1.0;  % peso específico del agua en t/m3&lt;br /&gt;
Phi       = pi/4; % ángulo de rozamiento en el contacto presa-cimiento (radianes)&lt;br /&gt;
F_Phi     = 1.2;  % coeficiente de seguridad al rozamiento exigido por la normativa en la hipótesis de drenes ineficaces&lt;br /&gt;
S_Amin    = 0.5;  % compresión mínima en el pie de aguas arriba (kp/cm2)&lt;br /&gt;
S_Bmax    = 8.4;  % compresión máxima en el pie de aguas abajo (kp/cm2) &lt;br /&gt;
&lt;br /&gt;
% Variables de optimización: n = pendiente aguas abajo&lt;br /&gt;
&lt;br /&gt;
% variables y funciones útiles para el cálculo (las acciones se evalúan en toneladas-fuerza por metro lineal de sección)&lt;br /&gt;
h_NMN = NMN-Cota_cim;                       % altura de agua a embalse lleno sobre la base de cimentación (m)&lt;br /&gt;
H_a   = NAP-Cota_cim;                       % altura de la presa (m)&lt;br /&gt;
h_CE  = Ter_abajo-Cota_cim;                 % subpresión en el pie de aguas abajo (mca)&lt;br /&gt;
base  = @(n) H_a*n;                         % ancho de la base del triángulo (m)&lt;br /&gt;
P     = @(n) 0.5*base(n)*H_a*mu_h;          % peso de la sección de hormigón (t/m)&lt;br /&gt;
E     = 0.5*h_NMN^2*mu_a;                   % empuje hidrostático con embalse lleno (no depende de n)&lt;br /&gt;
S     = @(n) 0.5*(h_NMN+h_CE)*base(n)*mu_a; % empuje debido a la subpresión en cimentación (t/m)&lt;br /&gt;
N     = @(n) P(n)-S(n);                     % Normal, obtenida por el equilibrio de fuerzas verticales&lt;br /&gt;
% Necesitaremos también las tensiones en los pies de aguas arriba y aguas abajo: S_A y S_B&lt;br /&gt;
% Para ello usaremos lo siguiente: &lt;br /&gt;
%    1. Supondremos que la distribución de las tensiones asociadas a la&lt;br /&gt;
%    normal crece linealmente desde el pie de aguas arriba hacia el de&lt;br /&gt;
%    aguas abajo.&lt;br /&gt;
%    2. El equilibrio de momentos en el pie de aguas abajo&lt;br /&gt;
% Estas dos condiciones se escriben:&lt;br /&gt;
% Crec. lineal de ten. nor.    N = 1/2*(S_A+S_B)*base(n)&lt;br /&gt;
% 0 = Momento del peso         0 = - P(n)*base(n)*2/3&lt;br /&gt;
% + momento empuje agua            + E*h_NMN/3&lt;br /&gt;
% + momento subpresion S_2         + h_CE*base(n)*(base(n)/2)*mu_a&lt;br /&gt;
% + momento subpresion S_1         + 0.5*base(n)*(h_NMN-h_CE)*2/3*base(n)  &lt;br /&gt;
% + momento de la normal N_2       + S_A*10*base(n)*(base(n)*0.5) &lt;br /&gt;
% + momento de la normal N_1       + 0.5*base(n)*(S_B-S_A)*(base(n)/3)&lt;br /&gt;
% Tenemos 2 ecuaciones con dos incógnitas. Despejando sacamos el valor de&lt;br /&gt;
% S_A y S_B&lt;br /&gt;
S_A = @(n) (P(n)*base(n)*2/3 - E*h_NMN/3 ...&lt;br /&gt;
    - h_CE*base(n)*(base(n)/2)*mu_a ...&lt;br /&gt;
    - 0.5*base(n)*(h_NMN-h_CE)*2/3*base(n)...&lt;br /&gt;
    - 0.5*base(n)*(2*N(n)/base(n))*base(n)/3)/(base(n)^2*(1/2-1/3));&lt;br /&gt;
S_B = @(n) 2*N(n)/base(n)-S_A(n);&lt;br /&gt;
% Una vez definidas todas las funciones que necesitamos, calculamos la&lt;br /&gt;
% función coste y las restricciones&lt;br /&gt;
&lt;br /&gt;
% Función coste: área del triángulo&lt;br /&gt;
f_coste = @(n) 0.5*base(n)*H_a;&lt;br /&gt;
&lt;br /&gt;
% Calculamos ahora las restricciones:&lt;br /&gt;
% %% 1. Estabilidad frente al deslizamiento: E-T&amp;lt;0&lt;br /&gt;
% donde T es la fuerza necesaria para vencer el rozamiento:&lt;br /&gt;
% T = (P-S)*tan(Phi)/F_Phi (despreciando la cohesión y añadiendo el coef. seg. al rozamiento)&lt;br /&gt;
g_rest1 = @(n) E-(P(n)-S(n))*tan(Phi)/F_Phi; &lt;br /&gt;
% la estabilidad requiere g_rest1(n) &amp;lt; 0&lt;br /&gt;
&lt;br /&gt;
% %% 2. Compresión en el pie de aguas abajo menor que el máximo admitido&lt;br /&gt;
% por el cimiento. &lt;br /&gt;
g_rest2 = @(n) S_B(n)-S_Bmax*10;&lt;br /&gt;
% la estabilidad requiere g_rest2(n) &amp;lt; 0&lt;br /&gt;
&lt;br /&gt;
% %% 3. El pie de aguas arriba debe mantenerse comprimido, con un valor superior a S_Amin.&lt;br /&gt;
g_rest3 = @(n) S_Amin*10-S_A(n);&lt;br /&gt;
% la estabilidad requiere g_rest3(n) &amp;lt; 0&lt;br /&gt;
&lt;br /&gt;
% %% Planteamiento matemático del problema de optimización:&lt;br /&gt;
% Buscamos n en el intervalo [0.1,80] que minimice la función coste:&lt;br /&gt;
% f_coste(n)&lt;br /&gt;
% con las restricciones:&lt;br /&gt;
% g_rest1(n)&amp;lt;0, g_rest2(n)&amp;lt;0, g_rest3(n)&amp;lt;0.&lt;br /&gt;
&lt;br /&gt;
%% Optimización por fuerza bruta&lt;br /&gt;
% Intervalo de parámetros:&lt;br /&gt;
h  = 0.01;        % distancia entre dos valores del parámetro&lt;br /&gt;
L  = 0.1;         % extremo izquierdo&lt;br /&gt;
M  = 80;          % extremo derecho &lt;br /&gt;
n  = L:h:M;       % vector con los parámetros&lt;br /&gt;
% Inicialización&lt;br /&gt;
Optimo = 10000;    % Inicializamos con un valor muy alto &lt;br /&gt;
indice = 0;        % inicializamos el indice&lt;br /&gt;
% Probamos todos los valores n(i)&lt;br /&gt;
for i=1:length(n)&lt;br /&gt;
    % creamos una variable lógica que sea cierta sólo si se verifican todas las restricciones&lt;br /&gt;
    restriccion = (g_rest1(n(i))&amp;lt;0)&amp;amp;(g_rest2(n(i))&amp;lt;0)&amp;amp;(g_rest3(n(i))&amp;lt;0);&lt;br /&gt;
    if restriccion              % solo en este caso n(i) es un parámetro admisible&lt;br /&gt;
        coste = f_coste(n(i));  % Calculo el coste&lt;br /&gt;
        if coste&amp;lt;Optimo         % en este caso mejoramos!&lt;br /&gt;
            Optimo = coste;     % actualizo el coste con el nuevo parámetro&lt;br /&gt;
            indice = i;         % actualizo el índice en el que está el óptimo&lt;br /&gt;
        end&lt;br /&gt;
    end        &lt;br /&gt;
end&lt;br /&gt;
% Escribimos el resultado de la optimización por pantalla&lt;br /&gt;
if indice == 0&lt;br /&gt;
    sprintf('Ningún valor de n cumple las restricciones')&lt;br /&gt;
else&lt;br /&gt;
    sprintf('El óptimo se alcanza en n = %f',n(indice))&lt;br /&gt;
end&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Observaciones: ==&lt;br /&gt;
&lt;br /&gt;
A continuación se muestra como hacer algunas de las cuestiones que surgieron en la última reunión. &lt;br /&gt;
&lt;br /&gt;
* '''Funciones que dependen de varias variables.''' Es posible que tanto la función coste como las restricciones dependan de más de una variable. Por ejemplo, supongamos que nuestros parámetros de optimización son las coordenadas (x,y) de un punto y la función coste es la distancia a un punto (a,b). Entonces podemos escribir &lt;br /&gt;
{{matlab|codigo= &lt;br /&gt;
a=2; b=1; &lt;br /&gt;
f_coste = @(x,y) sqrt((x-a)^2+(y-b)^2);&lt;br /&gt;
}} &lt;br /&gt;
* '''Funciones que dependen de variables matriciales.''' Si los parámetros de optimización son coordenadas de varios puntos es mejor escribir esas coordenadas en una matriz que tenga por columnas las coordenadas de cada punto y usar una única variable para crear la función. Por ejemplo,&lt;br /&gt;
{{matlab|codigo= &lt;br /&gt;
% Llamamos Cxy la matriz que contiene por columnas las coordenadas de varios puntos y n el número de puntos, que &lt;br /&gt;
% coincidirá con el número de columnas de la matriz Cxy. La siguiente función&lt;br /&gt;
% devuelve el centro de masas (suponiendo que cada punto tiene masa unidad) &lt;br /&gt;
c_masas = @(Cxy,n) [sum(Cxy(1,:))/n;sum(Cxy(2,:))/n];&lt;br /&gt;
% El argumento : se usa para seleccionar todos los posibles índices de un vector o matriz. &lt;br /&gt;
% Por ejemplo, Cxy(1,:) se refiere a la primera fila de la matriz Cxy, ya que tomo la fila 1 y todas las posibles columnas.  &lt;br /&gt;
}} &lt;br /&gt;
Observamos que en este caso la función no devuelve un número sino un vector columna que contiene las coordenadas del centro de masas de los puntos. &lt;br /&gt;
* '''Definir funciones según un parámetro.''' En algún momento puede que el cálculo dependa de algún parámetro y requiera funciones diferentes según el valor del parámetro. En este caso se puede usar una condición para definir una función de una manera u otra. Ejemplo:&lt;br /&gt;
{{matlab|codigo= &lt;br /&gt;
% Vamos a definir una función dependiendo de un parámetro aleatorio &lt;br /&gt;
% Elijo un número aleatorio entre 0 y 1&lt;br /&gt;
a = rand(1);&lt;br /&gt;
% Dependiendo de si a&amp;gt;1/2 o a&amp;lt;=1/2 defino la función coste&lt;br /&gt;
if a&amp;lt;=0.5&lt;br /&gt;
    f_coste = @(n) 2*n+4;&lt;br /&gt;
else&lt;br /&gt;
    f_coste = @(n) 2*n-4;&lt;br /&gt;
end&lt;br /&gt;
}} &lt;br /&gt;
De todas formas conviene evitar este tipo situaciones ya que los métodos de optimización para problemas de esta forma son mucho menos eficientes. &lt;br /&gt;
* '''Restricciones adicionales.''' Además de las restricciones impuestas por la estabilidad, las geometrías que se traten pueden requerir más restricciones. Por ejemplo, si nuestras variables de optimización son varios puntos &amp;lt;math&amp;gt;  (x_i, y_i), i=1,...,n, &amp;lt;/math&amp;gt;  y queremos que las coordenadas &amp;lt;math&amp;gt; y_i &amp;lt;/math&amp;gt; de estos puntos estén ordenadas, es decir &amp;lt;math&amp;gt; y_{i+1}&amp;gt;y_i &amp;lt;/math&amp;gt; para &amp;lt;math&amp;gt; i=1,..,n-1&amp;lt;/math&amp;gt;, esto puede imponerse añadiendo una restricción más que podríamos escribir de esta forma&lt;br /&gt;
{{matlab|codigo= &lt;br /&gt;
% Llamamos Cxy la matriz que contiene por columnas las coordenadas de varios puntos y n el número de puntos, que &lt;br /&gt;
% coincidirá con el número de columnas de la matriz Cxy. La siguiente restricción hace que &lt;br /&gt;
% las coordenadas y de los puntos estén ordenadas &lt;br /&gt;
g_rest4 = @(Cxy,n) -min(Cxy(2,2:n)-Cxy(2,1:n-1));&lt;br /&gt;
% las coordenadas y de los puntos están ordenadas si g_rest4(Cxy,n)&amp;lt;0&lt;br /&gt;
}} &lt;br /&gt;
&lt;br /&gt;
* '''Funciones complejas.''' Algunas veces las funciones que necesitamos no pueden escribirse en una sola línea fácilmente. En este caso, podemos escribirlas en un fichero aparte como en el ejemplo que mostramos para calcular el área de un polígono a partir de las coordenadas de los vértices con la fórmula que envío Rafael Morán.&lt;br /&gt;
&lt;br /&gt;
{{matlab|codigo= &lt;br /&gt;
% Función para calcular el área de un polígono&lt;br /&gt;
function S=ar_pol(C)&lt;br /&gt;
% Se introduce una matriz C con las coordenadas de los vértices del polígono &lt;br /&gt;
% por columnas y ordenados en sentido antihorario. &lt;br /&gt;
% Se devuelve el área S&lt;br /&gt;
% Aplicamos la fórmula que nos envió Rafael Morán&lt;br /&gt;
% S = 1/2 abs(sum yi (x_(i-1)-x_(i+1)))&lt;br /&gt;
% teniendo en cuenta la siguiente regla: (x_0,y_0)=(x_n,y_n) y &lt;br /&gt;
% (x_(n+1),y_(n+1))=(x_1,y_1)&lt;br /&gt;
% donde n es el número de vértices&lt;br /&gt;
&lt;br /&gt;
% Primero calculamos el número de vértices nv&lt;br /&gt;
nv=length(C);&lt;br /&gt;
% Ahora definimos los vectores con las coordenadas x e y de los vértices&lt;br /&gt;
x=C(1,:);    % la primera fila contiene las coordenadas x de los vértices&lt;br /&gt;
y=C(2,:);    % la segunda fila contiene las coordenadas y de los vértices&lt;br /&gt;
% Calculamos S pero separamos el primer y último término de la suma&lt;br /&gt;
% para poder tener en cuenta la regla&lt;br /&gt;
S = y(1)*(x(nv)-x(2));           % primer término&lt;br /&gt;
for i=2:nv-1&lt;br /&gt;
   S = S+y(i)*(x(i-1)-x(i+1));   % términos del 2 al nv-1&lt;br /&gt;
end&lt;br /&gt;
S = S+y(nv)*(x(nv-1)-x(1));      % último término&lt;br /&gt;
S=0.5*abs(S);&lt;br /&gt;
}} &lt;br /&gt;
&lt;br /&gt;
Es importante grabar esta función en un fichero con el mismo nombre elegido para la función. En este caso: ar_pol.m. Una vez creada la función y grabada en el mismo directorio donde está nuestro programa principal, la podemos usar en nuestro programa. Por ejemplo&lt;br /&gt;
&lt;br /&gt;
{{matlab|codigo= &lt;br /&gt;
% Este es el programa principal&lt;br /&gt;
% Definimos una matriz con las coordenadas del polígono&lt;br /&gt;
c=[-1 0 -1 1 1;-1 0 1 1 -1];&lt;br /&gt;
% Calculamos su área&lt;br /&gt;
S=ar_pol(c)&lt;br /&gt;
}} &lt;br /&gt;
[[Categoría:Trabajos fin de Máster]]&lt;/div&gt;</summary>
		<author><name>Carlos Castro</name></author>	</entry>

	</feed>