Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
C#
Python
SQL
Shell
Bash
Markdown
YAML
JSON
HTML
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
Arduino
TypeScript
Perl
Autohotkey
Lua
SQF
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
\documentclass{article}[pstricks,border=8pt,12pt] \usepackage[utf8]{inputenc} \usepackage{geometry} [a4paper,lmargin=1.5cm,rmargin=1.5cm,Botton=1.5cm,top=1.75cm] \usepackage{graphicx} \usepackage{wrapfig} \usepackage{color} \usepackage{amsmath} \usepackage[T1]{fontenc} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{mathrsfs} \usepackage{cancel} \usepackage[all]{xy} \usepackage{pstricks} \usepackage{pst-all} \usepackage{pst-solides3d} \usepackage{fancybox} \usepackage{tikz} \usepackage{tikz-3dplot} \usepackage{gnuplottex} \usepackage{array} \usepackage{etoolbox} \tikzset{flippedeventlabel/.append style={align=center}} \usetikzlibrary{matrix.skeleton} \usetikzlibrary[shapes,arrows,positioning,fit,backgrounds,intersections,shadows,calc,shadings] \usetikzlibrary{positioning} \usetikzlibrary{decorations.text} \usetikzlibrary{decorations.pathmorphing} \pgfdeclarelayer{background layer} \pgfdeclarelayer{foreground layer} \pgfsetlayers{background layer,main,foreground layer} %\usetikzlibrary{datavisualization.formats.functions} \usepackage{pgf-pie} \usepackage{color,colortbl} \usepackage{lscape} \usepackage{pgfplots} \pgfplotsset{compat=newest} \usetikzlibrary{datavisualization} \usetikzlibrary[shapes,arrows,positioning,fit,backgrounds,intersections,shadows,calc,datavisualization.formats.functions] \usetikzlibrary{patterns} \usepackage[colorlinks=true,linkcolor=black,citecolor=black,filecolor=magenta,urlcolor=blue]{hyperref} %Paquete de estilo de referencias \urlstyle{same} \title{\textcolor{magenta}{\textbf{Pero Es Un Problema De Geometria Plana}}} \author{Nimrod Rodríguez\\ \href{SITIO WEB}{\underline{\textcolor{red}{enlace:} Código \LaTeX }}} \date{\today} % Start the document \begin{document} \pagecolor{orange!30} % Definición local de colores \colorlet{verde}{green!50!black} \renewcommand{\l}{\lambda} %\begin{landscape} %\tikz \draw (3,10) node[scale=0.5,rotate=15,circle,fill=yellow!40,text width=3cm]{}; \maketitle \begin{figure}[ht!] \centering \caption{Problema} \includegraphics[scale=0.1]{problemaNLP.png} \end{figure} \tdplotsetmaincoords{70}{110} \pgfmathsetmacro{\res}{(3-2*sqrt(2))/4} \begin{figure}[ht!] \centering \caption{Disposición del terreno} \begin{tikzpicture}[scale=1,tdplot_main_coords, information text/.style={rounded corners, fill=orange!20,inner sep=2ex}] \draw (5,-0.5,0)node[blue, below]{$y$}; \draw (-1.5,6,0)node[blue, right]{$x$}; \draw (3.5,6,0)node[blue, right]{$a-x$}; \draw (5,5,0)node[blue, below]{$b-y$}; \draw [fill=gray](-5,-5,0) -- (5,-5,0) -- (5,6,0) -- (-5,6,0) --cycle; \draw [fill=green] (5,4,0) -- (5,6,0) -- (2,6,0) --cycle; \draw [fill=orange!30] (-5,-5,0) -- (5,4,0) -- (2,6,0) --cycle; \draw [fill=white](4.5,-5,0) -- (4.5,-4.5,0)--(5,-4.5,0)--(5,-5,0)--cycle; \draw [fill=white](-5,6,0) -- (-5,5.5,0)--(-4.5,5.5,0)--(-4.5,6,0)--cycle; %nodos \draw (-5,0,0)node[blue, above]{$b$}; \draw (0,-5,0)node[blue, left]{$a$}; \draw (1.5,1,0)node[blue, right]{$A_1 = \frac{1}{4}ab$}; \draw (2,-2,0)node[white]{$A_2$}; \draw (-3,1,0)node[white]{$A_3$}; \draw (4,5.5,0)node[black]{$A_P$}; \end{tikzpicture} \end{figure} La figura muestra la disposición del terreno rectangular repartido por Pedro. De acuerdo a la condición de que $A_1 = \frac{1}{4}ab$, se tendría de la figura que; \begin{align*} A_P + A_2 + A_3 & = \frac{3}{4}ab\\ \frac{1}{2}(a-x)(b-y) + \frac{1}{2}ay + \frac{1}{2}bx &= \frac{3}{4}ab\\ ab + xy &= \frac{3}{2}ab\\ xy &= \frac{1}{2}ab\\ \end{align*} Esta relación, que puede escribirse como $y = \frac{ab}{2x}$ corresponde a una curva simetrica en el plano $\mathbb{R}^2$, y es en la cual se confinan los valores posibles de $x$ e $y$, con los cuales Pedro puede hacer tal repartición, es de tipo hipérbole y solo interesa su seccion positiva, pues su dominio seria $\{x: 0
\frac{a}{2}$, de modo que $(\frac{a}{2},a)$ puede utilizarse como como referencia para ensayar con algunos valores de $x$, evaluando la función para el área de terreno de Pedro. A continuación unos ensayos para $a=5$ y $b=6$. En este caso como $\frac{a}{2}=2.5$ evaluando con \LaTeX \ el conjunto de valores $3.40,3.45,...,3.80$ se obtiene lo siguiente: \pgfmathsetmacro{\m}{5} \pgfmathsetmacro{\n}{6} \foreach \r in {3.40,3.45,...,3.80} { \pgfmathsetmacro{\s}{\m*\n/(2*\r)} \pgfmathsetmacro{\t}{0.5*(5-\r)*(6-\s)} \begin{center} $x = \r$ \qquad $y = \s$ \qquad $A_P = \t$ \\ \end{center} } Acá puede notarse que $A_p$ comienza creciendo y luego termina decreciendo, esto hace pensar que luego de crecer alcanza, por lo menos, un extremo relativo como máximo, para luego ir decreciendo. Asi podría irse eligiendo interpolaciones para aproximar una solución. Lo que hace notoria la dificultad para resolver por aritmetica, es que tanto la condición principal del problema, como la función a optimizar, son funciones cuadráticas, pues vienen de una relación de áreas.\\ Un metodo del cálculo más directo, y también conocido en programación no lineal, es el de optimización lagrangeana: \begin{center} Maximizar: $f(x,y) = \frac{1}{2}(a-x)(b-y)$\\ Sujeto a:\ $g(x,y)=xy - \frac{1}{2}ab = 0,$\\ $0
Mark as private (unlisted)
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
everlasting (like CCCP)