## 749 Reputation

11 years, 115 days

## what is the relation between left and ri...

@vv what is the relation between left and right eigenvectors? should multiplication of them give the IdentityMatrix? but in maple i cannot achive this? how can i find diagonal form of the matrix using these eigenvectors? thank you for the help.

## exactly...

@mmcdara as u mentioned above, what is the idea for solving my problem? what should i use ?

## some points...

thank you for the responses. there are some points which i explain in the following:
1. @mmcdara when you do not set any method for the optimization, it means that maple itself will search for the proper method according to the help. only when the method is set modifiednewton maple can find an answer and for other methods such as sqp, maple can not find an answer and we got divison by zero error
2. is there any reason that you choosed those ranges for "x"s;(i.e  7..10, 5..10, 1..10). since for other ranges we can not reach an answer except with modifiednewton method.
3. dear @acer , actually we do NOT have any atitude on the integration's value, but on the modified code by @mmcdara the result is 2.204832770*10^6 which is positive. Could you please explain me why those values are wrong and what values for the integration are expected? actually i want to use your inforamtion for deeper understanding of the problem for further problems.

 > restart:with(LinearAlgebra):
 > N:=3:
 > m:=Vector([ 1 , log(x+b3) , b2/(x+b3) ]):
 > A:=m.m^+:
 > for i to N do m||i:=eval(A,[x=x||i]); od:
 > MM:=( LinearAlgebra:-Trace(MatrixInverse(M)) ):
 > IF1 := proc(__w1, __w2, __x1, __x2, __x3)   local J:   J := evalf(          Int(            eval(MM, [w1=__w1, w2=__w2, x1=__x1, x2=__x2, x3=__x3])            , [b2=1..2,b3=1..2]            , method = _d01ajc            , epsilon=0.001          )        ):    #print([_passed], J);   return J: end proc:
 > # check IF1(0.6, .1, 8, 7, 5);
 (1)
 > s:= Optimization:-NLPSolve(   IF1   , 0..1, 0..1, 1..10, 1..10, 1..10   , initialpoint=[0.6, .1, 8, 7, 5]   , maximize=false   , method=modifiednewton )
 (2)
 >
 >
 >

LinearLog-A-Bayesian_1_mmcdara_moodified_newton.mw

LinearLog-A-Bayesian_mmcdara3_sqp_method.mw

thank you for your patience and attention.
sincerely yours.

## some points...

@acer Actually, we are looking for a design for the model which finds minimum for the Information Matrix. The design points are x1,x2 and x3 and the weights are w1,w2 and 1-(w1+w2).
The information matrix is M.
According to the Beysian approach, ranges of b1 and b2 are considered.
we are looking for a global optimum; although in convex optimization problems, a locally optimal solution is also globally optimal.
The ranges for "w"s are necessary, but for "x"s we can consider identical ranges for them.
we thought that the integration is complicated so that we used this method, but if another simple way can be adopted, we gratefully will use that.
Thanks for your attention and help.

## yes, use restart...

@Miguel_Vega as you mentioned, just supress that line using # in front of the command and just restart the code.

## actually you are right, but ......

@tomleslie actually you are right, but the problem is the same pde with replacing z^2 with z, can be solved with these boundary/initial conditions. thus the analytical solution can be found, but maple can not do it for this problem.

 >
 >
 (1)
 >
 >
 >
 (2)
 >
 >
 (3)
 >

## right...

@tomleslie thank you for your explanation. i think i have made a mistake, tnx alot.

## there are some problems...

@Carl Love thank you for your answer, but therr is a problem.

The polynomials are correct  but betas are not correct and are different from the betas in equations above.

Are the betas in this procedure identical with the ones in the equation?

## is seq[reduce= `+`] equivalent to `+`(se...

@Carl Love is seq[reduce= `+`] equivalent to `+`(seq) ? it seems the latter is more efficient. Am i wrong?
on my question on page https://www.mapleprimes.com/questions/233919-Repated-Summetion, i reffered here. but i couldn't find out how to code nested loops. are nested loops explaind here?

 > restart: Iterator:-CartesianProduct([1,1]): #Force compilation P:= 2..4: #suffixes of m and c variables N:= [\$0..4]: #evaluation values of m variables B:= subs(     {_C= [\$P], _V= [c||P]},     proc(M)     local r:= add(M*~_C), s:= 1+r, t:= s-add(M);         r!*c0^t*mul(_V^~M)/t!/mul(M!~)/c1^s     end proc ): CodeTools:-Usage(     seq[reduce= `+`](B(v), v= Iterator:-CartesianProduct(N\$(rhs(P)-1))) ):
 memory used=0.69MiB, alloc change=0 bytes, cpu time=16.00ms, real time=14.00ms, gc time=0ns
 > restart: Iterator:-CartesianProduct([1,1]): #Force compilation P:= 2..4: #suffixes of m and c variables N:= [\$0..4]: #evaluation values of m variables B:= subs(     {_C= [\$P], _V= [c||P]},     proc(M)     local r:= add(M*~_C), s:= 1+r, t:= s-add(M);         r!*c0^t*mul(_V^~M)/t!/mul(M!~)/c1^s     end proc ): CodeTools:-Usage(     `+`(seq(B(v), v= Iterator:-CartesianProduct(N\$(rhs(P)-1)))) ):
 memory used=395.63KiB, alloc change=0 bytes, cpu time=0ns, real time=7.00ms, gc time=0ns
 >

## yes you are right...

@Carl Love yes as you said,  t[j] and t[i] are symbolic variables independent of t .the definiton of t[j] is as follows:

which if not of importance to use it here. i just want to know whether these summations and product can be coded?
tnx for the help

## thank you...

@mmcdara thank you for you comprehensive explanations. interesting code it was.

## equation 1 in terms of variables other t...

Actually i want equation one in terms of other functions and variables and differential opertors so that equation 1 doesn't contain the function psi(x,t).

Actually if i could write equation 2 in terms differential operators and then factor psi(x,t) (sth like isolating psi(x,t) in terms of other functions), i could replace it in equation 1 so that equation 1 does NOT contain any psi(x,t).

is it clear now?

can it be done by factoring differential operators and NOT directly using dsolve?

## Both qualitative and quantitative insigh...

@acer Thank you for clarifying explanations, actually we want to compare the results both qualitatively and quantitatively with the results of an article. But when mu=0 or mu=1 , there is an unwanted pick in the plot a shown blow:

For mu=8, qualitative asnwer is correct.

Here is the article:

2_5348170783959026711.pdf

## tnx for comprehensive explanations...

@mmcdara tnx for comprehensive explanations, but in my laptop in takes about several mintues(5-10) to get it solved.
mybale you use super computer or mine is very old and deprecated. anyways thank you. do you think solving it with more digits would change the results or not ?

## faster method...

@Preben Alsholm thank you for the solution provided, but it takes alot for maple to find a solution. isn't it any faster solution? espsecially for the case mu=0

 1 2 3 4 5 6 7 Last Page 1 of 23
﻿