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UHO26&(1\VHOHFFLRQDUXQRVFLODGRUFULVWDO;7
HVODVLJXLHQWH
BB&21),*B&21),*+B26&6B2))B+B;7B26&B+
$OFRPSLODUHOFyGLJRSXHGHYHULILFDUVHHOYDORUGHOUHJLVWUR&21),*+HQODFRQILJXUDFLyQGH
ELWVGHO03/$%HQHVWHFDVRVHUtD[)$KRUDFXDQGRVHDEUHHO+(;HQ,&352*ODFDVLOOD
GH &RQILJ SDVD GH HVWDU HQ XQ YDORU GH [)))) SRU GHIHFWR D [))) 3DUD RWURV WLSRV GH
RVFLODGRUHVWHQHPRVODVLJXLHQWHWDEOD
7DEOD3DUiPHWURVGHFRQILJXUDFLyQSDUDHORVFLODGRUFRQ26&(1GHVKDELOLWDGR
7LSRGH2VFLODGRU
3DUiPHWUR
9DORU&21),*+
5&± 26&DV5$
B5&,2B26&B+
[))
+6± 3//(QDEOHG
B+63//B26&B+
[)(
(&± 26&DV5$
B(&,2B26&B+
[)'
(&± 26&DV&ORFN2XW
B(&B26&B+
[)&
5&
B5&B26&B+
[)%
+6
B+6B26&B+
[)$
;7
B;7B26&B+
[)
/3
B/3B26&B+
[)
3DUDKDELOLWDU26&(1VROREDVWDFDPELDUB26&6B2))B+SRUB26&6B21B+
3DUD PRGLILFDU HO UHJLVWUR GH &RQILJ HQ HO ,&3URJ HV QHFHVDULR FRQILJXUDU ORV UHJLVWURV
&21),*/ \&21),*+(QODVILJXUDV\SXHGHYHUVHODLQIRUPDFLyQTXHDSDUHFHHQHO
PDQXDOGHHVWRVUHJLVWURV
)LJXUD5HJLVWUR&21),*/
)LJXUD5HJLVWUR&21),*+
&RPR VH SXHGH YHU HO UHJLVWUR &21),*/ SHUPLWH FRQILJXUDU WRGR OR UHODFLRQDGR FRQ HO
%URZQRXW5HVHW\SHUPLWHKDELOLWDURGHVKDELOLWDUHO3RZHUXS7LPHU9HDPRVDKRUDXQDOtQHD
EiVLFDSDUDFRQILJXUDUHOUHJLVWUR&21),*/GRQGHVHKDELOLWDHO%URZQRXW5HVHWVHILMDXQ
YROWDMHGH9%25 GH9\VHGHVKDELOLWDHO3RZHUXS7LPHU
BB&21),*B&21),*/B%25B21B/B%259BB/B3:57B2))B/
3DUD GHVKDELOLWDU HO %URZQRXW 5HVHW VLPSOHPHQWH HV FDPELDU B%25B21B/ SRU
B%25B2))B/ \ SDUD KDELOLWDU HO 3RZHUXS 7LPHU VH FDPELD B3:57B2))B/ SRU
B3:57B21B/(QODVLJXLHQWHWDEODVHPXHVWUDQORVSDUiPHWURVSDUDFRQILJXUDU9%25
7DEOD3DUiPHWURVGHFRQILJXUDFLyQ9%25%25KDELOLWDGR3:57GHVKDELOLWDGR
9%25 9
3DUiPHWUR
9DORU&21),*/
B%259BB/
[))
B%259BB/
[)%
B%259BB/
[)
B%259BB/
[)
(QODILJXUDVHYHTXHHOUHJLVWUR&21),*+WLHQHODFRQILJXUDFLyQGHO:DWFKGRJ7LPHUHQHO
PLFURFRQWURODGRU3HUPLWHKDELOLWDUORRGHVKDELOLWDUOR\DGHPiVILMDUHOSRVWHVFDOHUGHWLPHU$
FRQWLQXDFLyQVHPXHVWUDXQDOtQHDGHFyGLJRHQDVVHPEOHUEiVLFDSDUDFRQILJXUDUHVWHUHJLVWUR
BB&21),*B&21),*+B:'7B21B+B:'736BB+
(O SDUiPHWUR B:'7B21B+ SHUPLWH KDELOLWDU HO :DWFKGRJ B:'7B2))B+ SDUD
GHVKDELWDUOR \ B:'736BB+ ILMD HO SRVWHVFDOHU HQ /D WDEOD PXHVWUD ORV
SDUiPHWURVSDUDILMDUORVGLIHUHQWHVYDORUHVGHOSRVWHVFDOHU
7DEOD 3DUiPHWURVGHFRQILJXUDFLyQSDUDHOSRVWHVFDOHU:'7KDELOLWDGR
3RVWHVFDOHU
3DUiPHWUR
9DORU&21),*+
B:'736BB+
[)
B:'736BB+
[)
B:'736BB+
[)
B:'736BB+
[)
B:'736BB+
[)
B:'736BB+
[)%
B:'736BB+
[)'
B:'736BB+
[))
)LQDOPHQWH YHDPRV FRPRPRGLILFDU HO &RQILJ HQ ,&3URJSDUD PRGLILFDU ODV FDUDFWHUtVWLFDV
EiVLFDVGHFRQILJXUDFLyQGHO3,&)SDUHFHTXHVRODPHQWHHVQHFHVDULRFDPELDUORVUHJLVWURV
GH&RQILJ&RQILJ\&RQILJHOUHJLVWUR&RQILJQRWLHQHSDUiPHWURV\ORVUHJLVWURV&RQILJ
&RQILJ \ &RQILJ VH FRQILJXUDQ SDUD SURWHFFLyQ GHO FyGLJR GHO SURJUDPD \ ORV GDWRV GH OD
PHPRULD((3520
(QODILJXUDVHSXHGHYHUODLQIRUPDFLyQGHOUHJLVWUR&21),*/TXHDSDUHFHHQHOPDQXDOGHO
3,&)&RQHVWHUHJLVWURVHSXHGHKDELOLWDURGHVKDELOLWDUHO%DFNJURXQG'HEXJHU\HO/RZ
9ROWDJH,&637DPELpQSHUPLWHKDELOLWDURGHVKDELOLWDUHOUHVHWSDUDHO6QDFN)XOO8QGHUIORZ
)LJXUD5HJLVWUR&21),*/
$FRQWLQXDFLyQVHSUHVHQWDXQDOtQHDGHFyGLJREiVLFDSDUDFRQILJXUDUHOUHJLVWUR&21),*/
BB&21),*B&21),*/B'(%8*B2))B/B/93B21B/B6795B21B/
(VWD FRQILJXUDFLyQ GHVDFWLYD '(%8* B'(%8*B2))B/ SDUD KDELOLWDUOR KDELOLWD HO /93
B/93B2))B/SDUDGHVKDELOLWDUOR\DFWLYDHO6795B6795B2))B/SDUDGHVKDELOLWDUOR
5HVXPHQ
'HHVWDPDQHUDXQRSRGtDFRSLDUODVVLJXLHQWHVOtQHDVHQHOFyGLJRDVVHPEOHUSDUDFRQILJXUDUHO
PLFURFRQWURODGRU
OLVWS I
LQFOXGHSILQF
BB&21),*B&21),*+B26&6B2))B+B;7B26&B+
BB&21),*B&21),*/B%25B21B/B%259BB/B3:57B2))B/
BB&21),*B&21),*+B:'7B21B+B:'736BB+
BB&21),*B&21),*/B'(%8*B2))B/B/93B21B/B6795B21B/
/DV OtQHDV GH FRQILJXUDFLyQ GHEHQ FRORFDUVH GHVSXpV GH LQFOXGH SILQF \ OD VHQWHQFLD
BB&21),*WLHQHGRVJXLRQHVBHQFDPELRORVSDUiPHWURVVRODPHQWHWLHQHQXQR
5HIHUHQFLDV
>@0,&52&+,33,&);;'DWD6KHHWFSGI0LFURFKLS7HFKQRORJ\,QF
>@ 0,&52&+,3 /LEUHUtD 3ILQF GH 03/$% ,'( Y (Q ?03/$%
,'(?0&+,3B7RROV? 3ILQF
1RWDORVELWVGHFRQILJXUDFLyQSXHGHQVHFRQVXOWDGRVHQODOLEUHUtDGHOGLVSRVLWLYRTXHVHXWLOLFH
GH HVWD PDQHUD HVWH DUWtFXOR VLUYH FRPR JXtD SDUD OD FRQILJXUDFLyQ GH FXDOTXLHU
PLFURFRQWURODGRUGH0LFURFKLS
Descargar