LastSolve 2D/3D• LastSolve[] returns the last solution rule returned by SolveMech. The values returned by LastSolve[] are used as the initial guesses at the next invocation of SolveMech. • LastSolve[All] includes the values that will be used the next time that initial guesses for the Lagrange multipliers are needed, regardless of whether or not they were part of the last solution returned by SolveMech. • See also: SetGuess. Further Examples Load the Modeler2D package and define a simple model. Here the model is solved at . LastSolve returns the most recently found solution.
Out[2]= | |
Out[3]= | |
If SetGuess is used to change specific initial guesses, the return value of LastSolve reflects the change.
Out[4]= | |
Out[5]= | |
Here the guesses are all reset to the values specified with SetBodies.
Out[6]= | |
See HelpModel2D.
|