1>------ Build started: Project: Genfitter 5.0, Configuration: Release Win32 ------1> MyForm.cpp1>C:\Ceres\ceres-windows-master\glog\src\windows\glog/logging.h(1158): warning C4251: 'google::LogMessage::LogStream::streambuf_' : class 'google::base_logging::LogStreamBuf' needs to have dll-interface to be used by clients of class 'google::LogMessage::LogStream'1> C:\Ceres\ceres-windows-master\glog\src\windows\glog/logging.h(1088) : see declaration of 'google::base_logging::LogStreamBuf'1>c:\ceres\ceres-windows-master\ceres-solver\include\ceres\numeric_diff_cost_function.h(332): warning C4793: 'ceres::NumericDiffCostFunction<DDResidual,0,1,1,1,1,1,1,0,0,0,0,0>::Evaluate' : function compiled as native :1> Aligned data types not supported in managed code1>c:\ceres\ceres-windows-master\ceres-solver\include\ceres\internal\numeric_diff.h(194): warning C4793: 'ceres::internal::NumericDiff<DDResidual,0,1,1,1,1,1,1,0,0,0,0,0,0,1>::EvaluateJacobianForParameterBlock' : function compiled as native :1> Aligned data types not supported in managed code1>c:\ceres\ceres-windows-master\ceres-solver\include\ceres\internal\numeric_diff.h(194): warning C4793: 'ceres::internal::NumericDiff<DDResidual,0,1,1,1,1,1,1,0,0,0,0,0,1,1>::EvaluateJacobianForParameterBlock' : function compiled as native :1> Aligned data types not supported in managed code1>c:\ceres\ceres-windows-master\ceres-solver\include\ceres\internal\numeric_diff.h(194): warning C4793: 'ceres::internal::NumericDiff<DDResidual,0,1,1,1,1,1,1,0,0,0,0,0,2,1>::EvaluateJacobianForParameterBlock' : function compiled as native :1> Aligned data types not supported in managed code1>c:\ceres\ceres-windows-master\ceres-solver\include\ceres\internal\numeric_diff.h(194): warning C4793: 'ceres::internal::NumericDiff<DDResidual,0,1,1,1,1,1,1,0,0,0,0,0,3,1>::EvaluateJacobianForParameterBlock' : function compiled as native :1> Aligned data types not supported in managed code1>c:\ceres\ceres-windows-master\ceres-solver\include\ceres\internal\numeric_diff.h(194): warning C4793: 'ceres::internal::NumericDiff<DDResidual,0,1,1,1,1,1,1,0,0,0,0,0,4,1>::EvaluateJacobianForParameterBlock' : function compiled as native :1> Aligned data types not supported in managed code1>c:\ceres\ceres-windows-master\ceres-solver\include\ceres\internal\numeric_diff.h(194): warning C4793: 'ceres::internal::NumericDiff<DDResidual,0,1,1,1,1,1,1,0,0,0,0,0,0,1>::EvaluateJacobianForParameterBlock' : function compiled as native :1> Aligned data types not supported in managed code1>c:\ceres\ceres-windows-master\ceres-solver\include\ceres\internal\numeric_diff.h(194): warning C4793: 'ceres::internal::NumericDiff<DDResidual,0,1,1,1,1,1,1,0,0,0,0,0,1,1>::EvaluateJacobianForParameterBlock' : function compiled as native :1> Aligned data types not supported in managed code1>c:\ceres\ceres-windows-master\ceres-solver\include\ceres\internal\numeric_diff.h(194): warning C4793: 'ceres::internal::NumericDiff<DDResidual,0,1,1,1,1,1,1,0,0,0,0,0,2,1>::EvaluateJacobianForParameterBlock' : function compiled as native :1> Aligned data types not supported in managed code1>c:\ceres\ceres-windows-master\ceres-solver\include\ceres\internal\numeric_diff.h(194): warning C4793: 'ceres::internal::NumericDiff<DDResidual,0,1,1,1,1,1,1,0,0,0,0,0,3,1>::EvaluateJacobianForParameterBlock' : function compiled as native :1> Aligned data types not supported in managed code1>c:\ceres\ceres-windows-master\ceres-solver\include\ceres\internal\numeric_diff.h(194): warning C4793: 'ceres::internal::NumericDiff<DDResidual,0,1,1,1,1,1,1,0,0,0,0,0,4,1>::EvaluateJacobianForParameterBlock' : function compiled as native :1> Aligned data types not supported in managed code1> libglog_static.lib(vlog_is_on.obj) : MSIL .netmodule or module compiled with /GL found; restarting link with /LTCG; add /LTCG to the link command line to improve linker performance1> Generating code1> Finished generating code1>MyForm.obj : warning LNK4248: unresolved typeref token (01000030) for 'ceres.internal.ResidualBlock'; image may not run1> Genfitter 5.0.vcxproj -> C:\Users\boris\Documents\Visual Studio 2013\Projects\Genfitter 5.0\Release\Genfitter 5.0.exe========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
Solver Summary (v 1.11.0-eigen-(3.2.8)-no_lapack-eigensparse-openmp)Original ReducedParameter blocks 5 5Parameters 5 5Residual blocks 1599 1599Residual 1599 1599Minimizer TRUST_REGIONDense linear algebra library EIGENTrust region strategy LEVENBERG_MARQUARDTGiven UsedLinear solver DENSE_QR DENSE_QRThreads 1 1Linear solver threads 1 1Cost:Initial -1.000000e+000Minimizer iterations 0Successful steps 0Unsuccessful steps 0Time (in seconds):Preprocessor 0.0004Residual evaluation 0.0000Jacobian evaluation 0.0092Linear solver 0.0000Minimizer 0.0093Postprocessor 0.0001Total 0.0098Termination: FAILURE (Residual and Jacobian evaluation failed.)
--
You received this message because you are subscribed to the Google Groups "Ceres Solver" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ceres-solver...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ceres-solver/b23d84a4-ef42-4122-b59b-090a473472b6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to ceres-solver+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ceres-solver/b23d84a4-ef42-4122-b59b-090a473472b6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Ceres Solver" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/ceres-solver/CABqdRUDRixs1wp%3DdDcu%2BVJ-nHLBAU%3Dvd-bK6dzuSki7Qhs5Enw%40mail.gmail.com.To unsubscribe from this group and stop receiving emails from it, send an email to ceres-solver+unsubscribe@googlegroups.com.
Problem problem;
To unsubscribe from this group and stop receiving emails from it, send an email to ceres-solver...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ceres-solver/b23d84a4-ef42-4122-b59b-090a473472b6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Ceres Solver" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ceres-solver...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ceres-solver/05c580e7-b276-4c33-b830-3a1061aa2b3b%40googlegroups.com.
thanks for the tip,I changed the code and it compiles now:
const double bolt = 1.38064852e-23;double temperature = 25.0;double ideality1 = 1.0;double ideality2 = 2.0;
struct DDResidual {DDResidual(double x, double y): x_(x), y_(y) {}template <typename T> bool operator()(const T* const jph,const T* const j01, const T* const j02, const T* const Rs, const T* const Rp,T* residual) const {
T ex;T mul;mul = (T(x_) - T(y_)*Rs[0]);ex = exp(mul / bolt*temperature);residual[0] = j01[0] * (pow(ex, 1.0/ideality1) - 1.0) + j02[0] * (pow(ex, 1.0/ideality2) - 1.0) + mul/ Rp[0] - T(y_) - jph[0];
return true;}private:const double x_;const double y_;};
for (int i = 0; i < volt->Count; i++) {Problem problem;
Solver Summary (v 1.11.0-eigen-(3.2.8)-no_lapack-eigensparse-openmp)Original ReducedParameter blocks 5 5Parameters 5 5Residual blocks 1599 1599Residual 1599 1599Minimizer TRUST_REGIONDense linear algebra library EIGENTrust region strategy LEVENBERG_MARQUARDTGiven UsedLinear solver DENSE_QR DENSE_QRThreads 1 1Linear solver threads 1 1Cost:Initial -1.000000e+000Minimizer iterations 0Successful steps 0Unsuccessful steps 0Time (in seconds):
Preprocessor 0.0003Residual evaluation 0.0000Jacobian evaluation 0.0002Linear solver 0.0000Minimizer 0.0003Postprocessor 0.0001Total 0.0007
Termination: FAILURE (Residual and Jacobian evaluation failed.)
#pragma managed(push, off)#include "ceres/ceres.h"#include "glog/logging.h"#pragma managed(pop)
MyForm.obj : warning LNK4248: unresolved typeref token (01000033) for 'ceres.internal.ResidualBlock'; image may not run
So now the problem seems to be that there are values at which the evaluation of the cost function is failing.
If you are using glog then look at the -v=2 logs and it will show you the values it is failing on.
You can so add some logging of your own.
--
You received this message because you are subscribed to the Google Groups "Ceres Solver" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ceres-solver...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ceres-solver/b04efe59-eac9-4df2-a524-005035c381a3%40googlegroups.com.