Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dóra Kocsis
dynare
Commits
ccc3c513
Commit
ccc3c513
authored
Apr 19, 2012
by
Stéphane Adjemian
Browse files
Fixed bug (initialization of zero_delta).
parent
6180bc22
Changes
1
Hide whitespace changes
Inline
Side-by-side
matlab/simplex_optimization_routine.m
View file @
ccc3c513
...
...
@@ -151,7 +151,6 @@ else
delta
=
0.05
;
end
DELTA
=
delta
;
zero_delta
=
delta
/
200
;
% To be used instead of delta if x(i) is zero.
% Set max_no_improvements.
if
isfield
(
options
,
'max_no_improvements'
)
...
...
@@ -510,6 +509,7 @@ function [v,fv,delta] = simplex_initialization(objective_function,point,point_sc
v
(:,
1
)
=
point
;
fv
=
zeros
(
n
+
1
,
1
);
fv
(
1
)
=
point_score
;
zero_delta
=
delta
/
200
;
% To be used instead of delta if x(i) is zero.
if
length
(
delta
)
==
1
delta
=
repmat
(
delta
,
n
,
1
);
end
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment