Beispiel #1
0
        public LBFGS(int thread_num)
        {
            iflag_  = 0; nfev = 0;
            point   = 0; npt = 0; iter = 0; info = 0;
            ispt    = 0; iypt = 0;
            stp     = 0.0;
            mcsrch_ = new Mcsrch(thread_num);

            parallelOption = new ParallelOptions();
            parallelOption.MaxDegreeOfParallelism = thread_num;
        }
Beispiel #2
0
        public LBFGS(int thread_num)
        {
            iflag_ = 0; nfev = 0;
            point = 0; npt = 0; iter = 0; info = 0;
            ispt = 0; iypt = 0;
            stp = 0.0;
            mcsrch_ = new Mcsrch(thread_num);

#if NO_SUPPORT_PARALLEL_LIB
#else
            parallelOption = new ParallelOptions();
            parallelOption.MaxDegreeOfParallelism = thread_num;
#endif
        }
Beispiel #3
0
        public LBFGS(int thread_num)
        {
            iflag_ = 0; nfev = 0;
            point = 0; npt = 0; iter = 0; info = 0;
            ispt = 0; iypt = 0;
            stp = 0.0;
            mcsrch_ = new Mcsrch(thread_num);

#if NO_SUPPORT_PARALLEL_LIB
#else
            parallelOption = new ParallelOptions();
            parallelOption.MaxDegreeOfParallelism = thread_num;
#endif
        }