×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Iterating a Solve Block

Iterating a Solve Block

Iterating a Solve Block

(OP)
Hi
I am trying to iterate a solution from a solve block, but nothing seems to work. My block contains a simple matrix equation yielding a solution for the vector v (of two elements only), i.e.,

Solve

(v-b)'(X'X)(v-b)=G

Find(v)

Now, v consists of v0 and v1 elements. I want to use different input values for v0 (a range of values) and obtain a range of corresponding values for v1. Possible?

RE: Iterating a Solve Block

Can you put that equation into readable form so that I know, what you are talking about?

RE: Iterating a Solve Block

(OP)
Thanks for the answers, but it doesn't work. The problem is that I cannot make one of the elements of vector v a range variable, since MC won't allow this. To give you a better idea I rewrite my block in detail:
Vo=1 v1=1   (initial guesses)

Given
   (v-b)'(X'X)(v-b) = F
Find(v)

Now, b is a known vector of 2 elements, X'X is a defined square symmetric matrix, F is also known, v is the unknown vector to solve for. The solution comes out right if no iterations are made. But I want to let v0 take a range of values and calculate the range of solutions for v1. So far, I've tried different function arrangements (as the one proposed by IRstuff) but to no avail. If this can help, here is attached the equation in MC notation (by the way, I'm using MC15). I'd appreciate if anyone could solve this problem.

RE: Iterating a Solve Block

(OP)
Thanks, IRstuff. Your solution is right. However, I am not going to use it after all. The plot should produce an ellipse (joint confidence region of the two parameters), but due to the fact that MC returns one only root from the quadratic equation, the corresponding plot shows one only branch of the ellipse (the upper). So, I carried out the matrix calculations by hand, have got an explicit quadratic equation, solved it for the two roots, and got the ellipse right. Thanks for your help anyway. It showed me a way to split vectors if I needed do similar things in the future. Thanks again.

RE: Iterating a Solve Block

(OP)
Right! However, it sounds complicated seeking out roots when the equation is in matrix form. I could try this in the future. Thanks again.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources