chrono::ChSolverParallelSPGQP Class Reference

Description

Spectral Projected Gradient solver.

#include <ChSolverParallel.h>

Inheritance diagram for chrono::ChSolverParallelSPGQP:
Collaboration diagram for chrono::ChSolverParallelSPGQP:

Public Member Functions

uint Solve (ChShurProduct &ShurProduct, ChProjectConstraints &Project, const uint max_iter, const uint size, const DynamicVector< real > &b, DynamicVector< real > &x)
 Solve using a more streamlined but harder to read version of the BB method. More...
 
void UpdateR ()
 
- Public Member Functions inherited from chrono::ChSolverParallel
void Setup (ChParallelDataManager *data_container_)
 
void ComputeSRhs (custom_vector< real > &gamma, const custom_vector< real > &rhs, custom_vector< real3 > &vel_data, custom_vector< real3 > &omg_data, custom_vector< real > &b)
 Compute rhs value with relaxation term.
 
void AtIterationEnd (real maxd, real maxdeltalambda)
 
real LargestEigenValue (ChShurProduct &ShurProduct, DynamicVector< real > &temp, real lambda=0)
 

Public Attributes

real alpha
 
real f_max
 
real xi
 
real beta_bar
 
real beta_tilde
 
real beta_k
 
real gam
 
DynamicVector< real > g
 
DynamicVector< real > d_k
 
DynamicVector< real > x
 
DynamicVector< real > temp
 
DynamicVector< real > Ad_k
 
DynamicVector< real > g_alpha
 
DynamicVector< real > x_candidate
 
std::vector< real > f_hist
 
- Public Attributes inherited from chrono::ChSolverParallel
int current_iteration
 The current iteration number of the solver.
 
ChConstraintRigidRigidrigid_rigid
 
ChConstraintBilateralbilateral
 
Ch3DOFContainerthree_dof
 
Ch3DOFContainerfem
 
Ch3DOFContainermpm
 
ChParallelDataManagerdata_manager
 Pointer to the system's data manager.
 
DynamicVector< real > eigen_vec
 

Member Function Documentation

uint ChSolverParallelSPGQP::Solve ( ChShurProduct ShurProduct,
ChProjectConstraints Project,
const uint  max_iter,
const uint  size,
const DynamicVector< real > &  b,
DynamicVector< real > &  x 
)
virtual

Solve using a more streamlined but harder to read version of the BB method.

Parameters
ShurProductSchur product
ProjectConstraints
max_iterMaximum number of iterations
sizeNumber of unknowns
bRhs vector
xThe vector of unknowns

Implements chrono::ChSolverParallel.