コード例 #1
0
ファイル: IpNLPScaling.cpp プロジェクト: AyMaN-GhOsT/simbody
 SmartPtr<const Vector> NLPScalingObject::apply_vector_scaling_x_LU(
   const Matrix& Px_LU,
   const SmartPtr<const Vector>& lu,
   const VectorSpace& x_space)
 {
   if (have_x_scaling()) {
     return ConstPtr(apply_vector_scaling_x_LU_NonConst(Px_LU, lu, x_space));
   }
   else {
     return lu;
   }
 }
コード例 #2
0
ファイル: IpNLPScaling.cpp プロジェクト: ChinaQuants/Ipopt
 SmartPtr<const Vector> NLPScalingObject::apply_vector_scaling_x_LU(
   const Matrix& Px_LU,
   const SmartPtr<const Vector>& lu,
   const VectorSpace& x_space)
 {
   DBG_START_METH("NLPScalingObject::apply_vector_scaling_x_LU", dbg_verbosity);
   if (have_x_scaling()) {
     return ConstPtr(apply_vector_scaling_x_LU_NonConst(Px_LU, lu, x_space));
   }
   else {
     return lu;
   }
 }