Skip to main content
1-Visitor
March 1, 2016
Solved

Solve Block, Vary initial Guess Value

  • March 1, 2016
  • 2 replies
  • 3067 views

Hi guys,

solve block.JPG

My objective is to find LCC as close as possible to 1.

Upon my Initial Guess Value of 1mm, it returns tcalc3 = 13.803mm

second guess value of tcalc3 = 13.803mm,  returns LCC of 0.795 and tcalc3 = 12.3mm

My question is how can I make it as iterative, so that  I dont have to keep manually changing the initial guess value (tcalc3) to find LCC close to 1

Thanks!!

Best answer by Werner_E

The normal way would be to turn the variable assignments into functions of t.calc3, so they can change when t.calc3 changes.

Then use those functions in the equation(s) of the solve block

I am still confused that we get a solution even if we use more than one equation in the solve block but obviously the equations are dependent and redundant and (the right) one of them would suffice. Didn't investigate in this , though.

Anyway - it seems you get what you are looking for

Regards

Werner

2 replies

25-Diamond I
March 1, 2016

You may consider posting your worksheet instead of just posting a screenshot, if possible.

19-Tanzanite
March 1, 2016

You should avoid numeric assignments in solve blocks. They are never necessary, and just make things confusing. In earlier versions of Mathcad it was not even allowed, and, IMO, it should have been left that way. Aside from that, which is just a cosmetic issue, you have four equations in your solve block and are only solving for one unknown. That's a problem, and the solve block is not doing what you think it is (I'm somewhat surprised it doesn't just give you an error). If the solve block is structured correctly it will give you the value of tcalc3 that makes LCC equal to 1, if such a value exists, or as close to 1 as possible if it doesn't. Please post your worksheet (in the edit dialog, click on "Use advanced editor" at the top right").

jgan1-VisitorAuthor
1-Visitor
March 2, 2016

Hi Please find the attached documents,Thanks for your help. How do I assigned the programming without using the numeric assignments?

Werner_E25-Diamond IAnswer
25-Diamond I
March 2, 2016

The normal way would be to turn the variable assignments into functions of t.calc3, so they can change when t.calc3 changes.

Then use those functions in the equation(s) of the solve block

I am still confused that we get a solution even if we use more than one equation in the solve block but obviously the equations are dependent and redundant and (the right) one of them would suffice. Didn't investigate in this , though.

Anyway - it seems you get what you are looking for

Regards

Werner