You are on page 1of 15

1er examen parcial

ESUDIANTE: ARPI CHOQUE LUIS ALBERTO

CODIGO: 11190032

1. DEFINIR
 SISTEMA
Es un conjunto de partes, que guardan cierta relación o semejanza que se
establecen como una unidad, guardando un propósito establecido.

 SIMULACION

Es la puesta en marcha de un modelo que trata de reflejar aspectos reales


con el fin de realizar predicciones o tendencias en base a los resultados
brindados, dicha simulación será producto de distintos datos y variables de
entrada extrapolados de la realidad a la realidad simulada.

 MODELAMIENTO
Procedimiento que sirve como punto de partida para ser imitada,
reproducida o copiada.

 ALGORITMO
Son secuencias operacionales sistemáticas que permiten hacer un cálculo
para encontrar una o más soluciones.

 OPTIMIZACION
Método para determinar los mejores resultados posibles de las variables que
intervienen en un sistema. Ya sea para optimizar un pit y encontrar un
máximo VAN.
2. DESARROLLAR SCRIP

clear
clc

disp('Aplicación de modelo Kuz-Ram-Ejemplo 1')


disp('Información')
%Fragmentación media constante
Hole_diameter1=0 % "mm"
Hole_diameter2=0 % "mm"
Hole_diameter3=0 % "mm"
Hole_diameter4=165 % "mm"
Hole_diameter5=0 % "mm"
Hole_diameter6=0 % "mm"
Hole_diameter7=0 % "mm"
Spacing_burden_ratio=1
Stemming=20 %x hole diameter (m)
Hole_deviation=0.015 % "m"
Rock_constant=9.45
Density_ANFO=0.5 % "kg/m3"
Bench_height=10 % "m"
Mean_fragmentation=30 % "cm"
D1=Hole_diameter1
D2=Hole_diameter2
D3=Hole_diameter3
D4=Hole_diameter4
D5=Hole_diameter5
D6=Hole_diameter6
D7=Hole_diameter7
S_D=Spacing_burden_ratio
J=Stemming
W=Hole_deviation
A=Rock_constant
p=Density_ANFO
H=Bench_height
X=Mean_fragmentation
disp('Información')
%Paso 1: La cantidad de explosivo que contendra
%en cada orificio por encima del nivel del banco de
%pie es calculado.
disp('-Cantidad de explosivo en cada taladro (Kg/m3)')
L1=H-20*D1*10^-3
L2=H-20*D2*10^-3
L3=H-20*D3*10^-3
L4=12 %H-20*D4*10^-3%(ya esta propuesto L=12)
L5=H-20*D5*10^-3
L6=H-20*D6*10^-3
L7=H-20*D7*10^-3
Qe1=pi*(D1*10^-3)^2/4*(L1)*p%kg/m3
Qe2=pi*(D2*10^-3)^2/4*(L2)*p
Qe3=pi*(D3*10^-3)^2/4*(L3)*p
Qe4=100 %pi*(D4*10^-3)^2/4*(L4)*p (ya esta propuesto Q=100)
Qe5=pi*(D5*10^-3)^2/4*(L5)*p
Qe6=pi*(D6*10^-3)^2/4*(L6)*p
Qe7=pi*(D7*10^-3)^2/4*(L7)*p
%Paso 2 El factor de polvo(K) requerdo para obtener
%el tamaño de fragmentacipon media X in roca con
%una constante A es calculado usando.
disp('-Factor de polvo (K)')
K1=(A/X*Qe1^(1/6)*(115/100)^(19/30))^(1.25)
K2=(A/X*Qe2^(1/6)*(115/100)^(19/30))^(1.25)
K3=(A/X*Qe3^(1/6)*(115/100)^(19/30))^(1.25)
K4=(A/X*Qe4^(1/6)*(115/100)^(19/30))^(1.25)
K5=(A/X*Qe5^(1/6)*(115/100)^(19/30))^(1.25)
K6=(A/X*Qe6^(1/6)*(115/100)^(19/30))^(1.25)
K7=(A/X*Qe7^(1/6)*(115/100)^(19/30))^(1.25)
Table_diameter=[D1 D2 D3 D4 D5 D6 D7]';
Table_loaded_lenght=[L1 L2 L3 L4 L5 L6 L7]';
Table_amount_explosive=[Qe1 Qe2 Qe3 Qe4 Qe5 Qe6 Qe7]';
Table_factor_powder=[K1 K2 K3 K4 K5 K6 K7]';
Table_D_L_Q_K=[Table_diameter Table_loaded_lenght
Table_amount_explosive Table_factor_powder]
%Paso 3 Determinamos el volumen de roca (V0)
disp('-Volumen de roca que puede ser roto (m3)')
V1=Qe1/K1
V2=Qe2/K2
V3=Qe3/K3
V4=Qe4/K4
V5=Qe5/K5
V6=Qe6/K6
V7=Qe7/K7
%Desde la altura de banco (H) y el radio burden
%espaciamineto es mantenido constante (S/B)
%los valores de B y S son encontrados usando
%ecuaciones
disp('-Valores de B y S mediante la sgts formulas BXS (m2)')
BXS1=V1/H
BXS2=V2/H
BXS3=V3/H
BXS4=V4/H
BXS5=V5/H
BXS6=V6/H
BXS7=V7/H
B1=(BXS1/1.3)^(1/2)
B2=(BXS2/1.3)^(1/2)
B3=(BXS3/1.3)^(1/2)
B4=(BXS4/1.3)^(1/2)
B5=(BXS5/1.3)^(1/2)
B6=(BXS6/1.3)^(1/2)
B7=(BXS7/1.3)^(1/2)
S1=BXS1/B1
S2=BXS2/B2
S3=BXS3/B3
S4=BXS4/B4
S5=BXS5/B5
S6=BXS6/B6
S7=BXS7/B7
%Paso 4. Los valores de n son calculados usando la siguiente ecuanción
disp('-Hallando los valores de n')
n1=(2.2-14*B1/D1)*((1+S_D)/2)^(0.5)*(1-W/B1)*(L1/H)
n2=(2.2-14*B2/D2)*((1+S_D)/2)^(0.5)*(1-W/B2)*(L2/H)
n3=(2.2-14*B3/D3)*((1+S_D)/2)^(0.5)*(1-W/B3)*(L3/H)
n4=(2.2-14*B4/D4)*((1+S_D)/2)^(0.5)*(1-W/B4)*(L4/H)
n5=(2.2-14*B5/D5)*((1+S_D)/2)^(0.5)*(1-W/B5)*(L5/H)
n6=(2.2-14*B6/D6)*((1+S_D)/2)^(0.5)*(1-W/B6)*(L6/H)
n7=(2.2-14*B7/D7)*((1+S_D)/2)^(0.5)*(1-W/B7)*(L7/H)
Table_volumen=[V1 V2 V3 V4 V5 V6 V7]';
Table_BxS=[BXS1 BXS2 BXS3 BXS4 BXS5 BXS6 BXS7]';
Table_B=[B1 B2 B3 B4 B5 B6 B7]';
Table_S=[S1 S2 S3 S4 S5 S6 S7]';
Table_D_V_BXS_B_S=[Table_diameter Table_volumen Table_BxS Table_B
Table_S]
%Paso 5. El tamaño carácterístico (XC) es determinado utilizando la
%siguiente ecuanción
disp('-Hallando el tamaño carácterístico "XC"')
XC1=(X/(log(1/0.5))^(1/n1))
XC2=(X/(log(1/0.5))^(1/n2))
XC3=(X/(log(1/0.5))^(1/n3))
XC4=(X/(log(1/0.5))^(1/n4))
XC5=(X/(log(1/0.5))^(1/n5))
XC6=(X/(log(1/0.5))^(1/n6))
XC7=(X/(log(1/0.5))^(1/n7))
Table_n=[n1 n2 n3 n4 n5 n6 n7]';
Table_XC=[XC1 XC2 XC3 XC4 XC5 XC6 XC7]';
Table_D_n_Xc=[Table_diameter Table_n Table_XC]
%Paso 6. Uso de la siguiente ecuación para hallar los valores de R.
disp('-Hallando la retención de fracción para 5,30,50,100 cm')
p1=5
p2=30
p3=50
p4=100

%Porcentaje retenido para 165mm


R_165_1=exp(-(p1/XC4)^n4)
R_165_2=exp(-(p2/XC4)^n4)
R_165_3=exp(-(p3/XC4)^n4)
R_165_4=exp(-(p4/XC4)^n4)

3. PARA EL SGTE PROYECTO ANALIZAR


4. SEGÚN LA TABLA

5. DETERMINE FS
A)
function varargout = MATLAB1(varargin)
% MATLAB1 MATLAB code for MATLAB1.fig
% MATLAB1, by itself, creates a new MATLAB1 or raises the
existing
% singleton*.
%
% H = MATLAB1 returns the handle to a new MATLAB1 or the handle
to
% the existing singleton*.
%
% MATLAB1('CALLBACK',hObject,eventData,handles,...) calls the
local
% function named CALLBACK in MATLAB1.M with the given input
arguments.
%
% MATLAB1('Property','Value',...) creates a new MATLAB1 or raises
the
% existing singleton*. Starting from the left, property value
pairs are
% applied to the GUI before MATLAB1_OpeningFcn gets called. An
% unrecognized property name or invalid value makes property
application
% stop. All inputs are passed to MATLAB1_OpeningFcn via
varargin.
%
% *See GUI Options on GUIDE's Tools menu. Choose "GUI allows
only one
% instance to run (singleton)".
%
% See also: GUIDE, GUIDATA, GUIHANDLES

% Edit the above text to modify the response to help MATLAB1


% Last Modified by GUIDE v2.5 12-Jun-2019 20:39:58

% Begin initialization code - DO NOT EDIT


gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @MATLAB1_OpeningFcn, ...
'gui_OutputFcn', @MATLAB1_OutputFcn, ...
'gui_LayoutFcn', [] , ...
'gui_Callback', []);
if nargin && ischar(varargin{1})
gui_State.gui_Callback = str2func(varargin{1});
end

if nargout
[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
else
gui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT

% --- Executes just before MATLAB1 is made visible.


function MATLAB1_OpeningFcn(hObject, eventdata, handles, varargin)
% This function has no output args, see OutputFcn.
% hObject handle to figure
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% varargin command line arguments to MATLAB1 (see VARARGIN)

% Choose default command line output for MATLAB1


handles.output = hObject;

% Update handles structure


guidata(hObject, handles);

% UIWAIT makes MATLAB1 wait for user response (see UIRESUME)


% uiwait(handles.figure1);

% --- Outputs from this function are returned to the command line.
function varargout = MATLAB1_OutputFcn(hObject, eventdata, handles)
% varargout cell array for returning output args (see VARARGOUT);
% hObject handle to figure
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)

% Get default command line output from handles structure


varargout{1} = handles.output;

% --- Executes on button press in pushbutton1.


function pushbutton1_Callback(hObject, eventdata, handles)
H = str2double( get(handles.edit2, 'string'));
Z = str2double( get(handles.edit6, 'string'));
Op = str2double( get(handles.edit5, 'string'));
A =(H-Z)/(sin(pi/(180/Op)))

Yw = str2double( get(handles.edit11, 'string'));


Zw = str2double( get(handles.edit7, 'string'));
U=0.5*Yw*Zw*(A)

V=0.5*Yw*Zw^2

Ot = str2double( get(handles.edit3, 'string'));


Y = str2double( get(handles.edit10, 'string'));
W=0.5*Y*H^2*(((1-(Z/H)^2)/tan(pi/(180/Op))-(1/tan(pi/(180/Ot)))))

c = str2double( get(handles.edit8, 'string'));


f = str2double( get(handles.edit9, 'string'));

FS=((c*A)+(tan(pi/(180/f))*((W*cos(pi/(180/Op)))-U-
(V*sin(pi/(180/Op))))))/((W*sin(pi/(180/Op))+(V*cos(pi/(180/Ot)))))

set( handles.edit4, 'string',num2str(FS));

% hObject handle to pushbutton1 (see GCBO)


% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)

function edit1_Callback(hObject, eventdata, handles)


% hObject handle to edit1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of edit1 as text


% str2double(get(hObject,'String')) returns contents of edit1
as a double

% --- Executes during object creation, after setting all properties.


function edit1_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

% Hint: edit controls usually have a white background on Windows.


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

% --- Executes during object creation, after setting all properties.


function axes1_CreateFcn(hObject, eventdata, handles)
imshow('_________TALUD________.jpg')
% hObject handle to axes1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

% Hint: place code in OpeningFcn to populate axes1


function edit2_Callback(hObject, eventdata, handles)
% hObject handle to edit2 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of edit2 as text


% str2double(get(hObject,'String')) returns contents of edit2
as a double

% --- Executes during object creation, after setting all properties.


function edit2_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit2 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

% Hint: edit controls usually have a white background on Windows.


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function edit3_Callback(hObject, eventdata, handles)


% hObject handle to edit3 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of edit3 as text


% str2double(get(hObject,'String')) returns contents of edit3
as a double

% --- Executes during object creation, after setting all properties.


function edit3_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit3 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

% Hint: edit controls usually have a white background on Windows.


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function edit4_Callback(hObject, eventdata, handles)


% hObject handle to edit4 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of edit4 as text


% str2double(get(hObject,'String')) returns contents of edit4
as a double

% --- Executes during object creation, after setting all properties.


function edit4_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit4 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

% Hint: edit controls usually have a white background on Windows.


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function edit5_Callback(hObject, eventdata, handles)


% hObject handle to edit5 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of edit5 as text


% str2double(get(hObject,'String')) returns contents of edit5
as a double

% --- Executes during object creation, after setting all properties.


function edit5_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit5 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

% Hint: edit controls usually have a white background on Windows.


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function edit6_Callback(hObject, eventdata, handles)


% hObject handle to edit6 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of edit6 as text


% str2double(get(hObject,'String')) returns contents of edit6
as a double
% --- Executes during object creation, after setting all properties.
function edit6_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit6 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

% Hint: edit controls usually have a white background on Windows.


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function edit7_Callback(hObject, eventdata, handles)


% hObject handle to edit7 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of edit7 as text


% str2double(get(hObject,'String')) returns contents of edit7
as a double

% --- Executes during object creation, after setting all properties.


function edit7_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit7 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

% Hint: edit controls usually have a white background on Windows.


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function edit8_Callback(hObject, eventdata, handles)


% hObject handle to edit8 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of edit8 as text


% str2double(get(hObject,'String')) returns contents of edit8
as a double

% --- Executes during object creation, after setting all properties.


function edit8_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit8 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

% Hint: edit controls usually have a white background on Windows.


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function edit9_Callback(hObject, eventdata, handles)


% hObject handle to edit9 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of edit9 as text


% str2double(get(hObject,'String')) returns contents of edit9
as a double

% --- Executes during object creation, after setting all properties.


function edit9_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit9 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

% Hint: edit controls usually have a white background on Windows.


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function edit10_Callback(hObject, eventdata, handles)


% hObject handle to edit10 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of edit10 as text


% str2double(get(hObject,'String')) returns contents of edit10
as a double

% --- Executes during object creation, after setting all properties.


function edit10_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit10 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

% Hint: edit controls usually have a white background on Windows.


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function edit11_Callback(hObject, eventdata, handles)


% hObject handle to edit11 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of edit11 as text


% str2double(get(hObject,'String')) returns contents of edit11
as a double

% --- Executes during object creation, after setting all properties.


function edit11_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit11 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

% Hint: edit controls usually have a white background on Windows.


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function edit12_Callback(hObject, eventdata, handles)


% hObject handle to edit12 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of edit12 as text


% str2double(get(hObject,'String')) returns contents of edit12
as a double

% --- Executes during object creation, after setting all properties.


function edit12_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit12 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

% Hint: edit controls usually have a white background on Windows.


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function edit13_Callback(hObject, eventdata, handles)
% hObject handle to edit13 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of edit13 as text


% str2double(get(hObject,'String')) returns contents of edit13
as a double

% --- Executes during object creation, after setting all properties.


function edit13_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit13 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

% Hint: edit controls usually have a white background on Windows.


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

B) ANALISIS CUANDO Zw VARIA EN RELACION AL FS

Zw FS
0 1.35
3.75 1.25
7.5 1.11
11.25 0.95
15 0.78

FS
1.60
1.40
1.20
1.00
Axis Title

0.80
FS
0.60
0.40
y = -0.0384x + 1.376 Linear (FS)

0.20 R² = 0.9908
0.00
0 5 10 15 20
Axis Title

SE PUEDE DECIR QUE AMBAS VARIABLES TIENEN UNA FUERTE CORRELACION PUESTO QUE EL
R2 (COEFICIENTE DE CORRELACION) ES CERCANO A 1, con ello se puede interpretar que ambas
variables tienen una relación de tipo lineal con pendiente negativa, que nos dice que cuando
uno sube otra tiende a bajar.

You might also like