Simbody  3.4 (development)
SimTK::ProjectResults Class Reference

Results for advanced users of project() methods. More...

#include <System.h>

List of all members.

Public Types

enum  Status {
  Invalid = -1,
  Succeeded = 0,
  FailedToAchieveAccuracy = 1,
  FailedToConverge = 2
}

Public Member Functions

 ProjectResults ()
ProjectResultsclear ()
 Restore this object to its default-constructed state, with the return status set to Invalid.
bool isValid () const
Status getExitStatus () const
bool getAnyChangeMade () const
int getNumIterations () const
Real getNormOnEntrance () const
Real getNormOnExit () const
int getWorstErrorOnEntrance () const
bool getProjectionLimitExceeded () const
ProjectResultssetExitStatus (Status status)
ProjectResultssetAnyChangeMade (bool changeMade)
ProjectResultssetProjectionLimitExceeded (bool limitExceeded)
ProjectResultssetNumIterations (int numIterations)
ProjectResultssetNormOnEntrance (Real norm, int worstError)
ProjectResultssetNormOnExit (Real norm)

Detailed Description

Results for advanced users of project() methods.


Member Enumeration Documentation

Enumerator:
Invalid 

This object has not been filled in yet and holds no results.

Succeeded 

The project() was successful either because no projection was necessary or projection was able to achieve the required accuracy.

FailedToAchieveAccuracy 

Projection converged but was unable to achieve the required accuracy.

FailedToConverge 

The Newton iterations were diverging.

This is especially common when the LocalOnly option is set since project() will quit at the first sign of divergence in that case. This is also the return if a projection limit has been set and the initial norm is larger.


Constructor & Destructor Documentation


Member Function Documentation

Restore this object to its default-constructed state, with the return status set to Invalid.

bool SimTK::ProjectResults::isValid ( ) const [inline]
bool SimTK::ProjectResults::getAnyChangeMade ( ) const [inline]
Real SimTK::ProjectResults::getNormOnExit ( ) const [inline]
ProjectResults& SimTK::ProjectResults::setNumIterations ( int  numIterations) [inline]
ProjectResults& SimTK::ProjectResults::setNormOnEntrance ( Real  norm,
int  worstError 
) [inline]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines