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