Passing variables to a solver dynamically
Dear PTC Community,
I'm writing a MATHCAD solver block for a system that consists of 29 variables and 11 equations. The objective is to write a solver that can handle any combination of 11 unknowns from the set of 29 total variables. It is straightforward to write the solver if it is known in advance which variables are unknown. For that case, one simply assigns values to all 29 variables in the "guess" section, enters the 11 equations into the "constraints" section, and enters a single find function in the "solver" section that is passed the 11 variables whose values are to be found, something like "MyVector := find(var1,var2,...,var10,var11)".
What is more difficult is to make the solver dynamic so that any combination of 11 unknowns is solved for. As far as I know, you can't pass a vector as an argument to find, so I can't write "find(unknownVector)", because find wants to see variables or functions. Any ideas?
Regards,
James

