i want to update the matrix W .Here W is initialised with radom matrix. Such that W= u*W(WH-V)H'and u is keeps on increasing with 0.1 in each iteration.

9 Comments

Jan
Jan on 6 Aug 2017
Okay. What is your question? What does "u is keeps on increasing with 0.1 in each iteration" mean? Is u a scalar? Do you want to create a loop? What is H? What exactly is the problem? What have you tried so far?
u is a scalar. it is actually my step size.u _italic_should be changed until e=||v-w*h||<0.5.here, v,h,w are matrix.
I want to use this u(which has e<0.5) for my calculation of W= u*W(WH-V)H'
John BG
John BG on 6 Aug 2017
Edited: John BG on 7 Aug 2017
Hi Kitty
Please let me assist you by gathering a few more details about the question:
1.
how big are V and H W?
2.
is V sparse
3.
would you please be so kind that W and H are the upper and lower triangular of V?
4.
is H of V such
h_ij=abs(v_ij) if i=j, h_ij=-abs(v_ij) when i!=j
?
Jan
Jan on 6 Aug 2017
@kitty varghese: Please remember, that the readers in the forum do not have the faintest idea about what you are doing. A statement like "until e=||v-w*h||<0.5" is cryptic, when the meaning of "v, w, h" is unknown and even the norm "||.||" is not uniquely defined in consequence. Is "w" and "W" the same here?
Please edit the original question and insert all details required to understand, what you are doing and what you want to be solved. Posting the current code and explaining the occurring problems is a good idea also.
Jan
there's no need for Kitty to define the norm in the question, because whatever definition, as long as it is a mathematical norm, then it should work in the expression.
It's like, whether using for instance euclidean distance, or city block distance, or any custom norm definition, it doesn't matter, it shouldn't matter.
When applying each different norm it obviously gives different figures but Kitty's expression is general in the sense that
.
Jan, e=||v-w*h||<0.5 means keep decreasing u until e<0.5, provided there is convergence.
In the context of this question, the concise definition of the norm doesn't matter.
Just choose one, the one you like most, whichever you are more familiar with, and use it to calculate the error e.
If the decomposition of the singular (problematic, troublemaker) matrix V is correct, then V is gradually approximated with for instance with the upper triangular and lower triangular matrices.
Probably V cannot be inverted with 1/V (not to be confused here with 1./V) but the processing of V may be possible processing the decomposition of V.
To decompose V, one has to 'precondition' V, but there are different ways to precondition problematic matrices.
Please have a look to Chen's reference in my answer
regards
John BG
Mr Jan Simon
£108 is hard cover brand new, but sure there are cheaper used copies around for sale.
May be there's a copy of this wonderful book written by Chen in the Hildelberg University library.
Matrix preconditioning is a recurring point in any Maths 1st year University course, at least in all engineering modules I have heard of, and many teachers try to reduce the exposure, precisely to avoid questions that may require answer out of scope for a 1st year module.
You can define a particular norm, or you can refer to all norms, any norm, in an abstract way, and then there's no need to define any norm.
So no, Jan, it wouldn't be of any help to define a particular norm, in the context of this question.
If Chen had gone down to define particular norms, and he does in his book, but only here and there, as examples, the publication would require the length of the Encyclopedia Britannica.
And the very useful point is that the MATLAB scripts, you can download the for free, use the links I have supplied.
Chen scripts, actually do have examples with particular norms defined.
Regards
John BG
Jan
Jan on 8 Aug 2017
Edited: Jan on 8 Aug 2017
@John: I do not need explanations about matrix norms, neither from you nor from a book. Therefore this discussion is based on a misunderstanding. As said already, all I wanted to achieve was to encourage kitty to post more details.
John BG
John BG on 8 Aug 2017
Edited: John BG on 13 Aug 2017
then, if not for you, for the rest of readers.

Sign in to comment.

 Accepted Answer

John BG
John BG on 7 Aug 2017
Hi Kitty
It seems you want to solve a matrix preconditioning problem.
There's a really good book
Matrix Preconditioning Techniques and Applications, by Ke Chen
The author freely shares the MATLAB scripts here
in page 174 , the ILU algorithm matches the expression of your question.
I dare say that the solution to your question is already implemented in more than one Chen's scripts, depending on the format of V.
if you find this answer useful would you please be so kind to consider marking my answer as Accepted Answer?
To any other reader, if you find this answer useful please consider clicking on the thumbs-up vote link
thanks in advance
John BG
LIST OF SCRIPTS
help contents
%--- Alphbetical ordering of Mfiles and programs --- Total = 90 files
% ap2f.m
% ap2m.m
% banda.m
% bandb.m
% bandg.m
% bccb.m
% bprod.m
% bttb.m
% cf_split.m
% ch0_w2.m
% ch13.m
% ch3_fmm.m
% ch6_gs.m
% ch6_mg2.m
% ch8.m
% chebg.m
% cheb_fun.m
% circ_pre.m
% circ_toep.m
% cup1.f
% cup2.f
% cup23.in
% cup3.f
% cup4.f
% cup5.f
% cz.m
% def_no.m
% detect.m
% exafft16.m
% fft_fwt.m
% fwt.m
% fwts.m
% ge_all.m
% gh_all.m
% givens.m
% gj_ek.m
% gmrest_k.m
% gmres_c.m
% gmres_k.m
% gmres_nr.m
% g_e.m
% g_h.m
% g_j.m
% hb1.m
% hess_as.m
% hopf.m
% houses.m
% ifwt.m
% ilu_0.m
% ilu_t.m
% index2.m
% intera.m
% iperm0.m
% iperm2.m
% iter3.m
% iwts.m
% lap_lab.m
% matrix0.mat
% matrix1.mat
% matrix2.mat
% matrix3.mat
% mat_pr0.m
% mat_prt.m
% mat_prt4.m
% mgm_2d.m
% mgm_2f.m
% mgm_2s.m
% mgs.m
% mk_ek.m
% multic.m
% mygrid.m
% my_jordan.m
% nsh.m
% perm0.m
% perm2.m
% richa_nr.m
% run8.m
% run9.m
% run_ai.m
% schts.m
% size6.rua
% size6.m
% spai2.m
% spyc.m
% t_band.m
% t_dete.m
% wathen.m
% waz.m
% waz_all.m
% waz_t.m

More Answers (0)

Categories

Find more on Mathematics and Optimization in Help Center and File Exchange

Asked:

on 6 Aug 2017

Edited:

on 13 Aug 2017

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!