Skip to main content
1-Visitor
March 21, 2016
Question

Nested while loops

  • March 21, 2016
  • 1 reply
  • 7318 views

Hello,

Is there a maximum number of nested while loops allowed in Prime 3.1?

Thank you,

Ken

1 reply

19-Tanzanite
March 21, 2016

Not that I know of. Why do you ask?

kriley1-VisitorAuthor
1-Visitor
March 21, 2016

Hello Richard,

I'm attempting to write an optimization  type program. I have 10 nested  while loops, each varying a variable. I get so far into adding the while statements then I get

"unknown error: mpl%_exception". I'm trying to find my error.

kriley1-VisitorAuthor
1-Visitor
April 27, 2016

Hello Werner,

I've been away from this project for awhile but I am now getting back to it. I corrected the .incrp increment issue you mentioned. This did not help with the error.

What I'm trying to do is create a series of equations which are based on specific variable inputs. Calculating the variables minimum and maximum values then increment each variable from its minimum thru maximum values. As the program goes thru its iterations, I want to find what set of variables produce the highest value for a specific out put such as torque or weight or size. I've gone back and studied the use of "while loops" but I'm still missing something. Any thoughts? Is there a better approach?

Ken