修订版 | a744ab4915f0db65383f6fc4ad0f1e8657cd492d (tree) |
---|---|
时间 | 2013-07-25 01:12:21 |
作者 | Mikiya Fujii <mikiya.fujii@gmai...> |
Commiter | Mikiya Fujii |
Some methods for opt in Parameters-class are inlined #27279
git-svn-id: https://svn.sourceforge.jp/svnroot/molds/trunk@1428 1136aad2-a195-0410-b898-f5ea1d11b9d8
@@ -402,71 +402,6 @@ void Parameters::SetSeedNASCO(unsigned long seed){ | ||
402 | 402 | this->seedNASCO = seed; |
403 | 403 | } |
404 | 404 | |
405 | -// Optimization | |
406 | -OptimizationMethodType Parameters::GetMethodOptimization() const{ | |
407 | - return this->methodOptimization; | |
408 | -} | |
409 | - | |
410 | -void Parameters::SetMethodOptimization(OptimizationMethodType method){ | |
411 | - this->methodOptimization = method; | |
412 | -} | |
413 | - | |
414 | -int Parameters::GetTotalStepsOptimization() const{ | |
415 | - return this->totalStepsOptimization; | |
416 | -} | |
417 | - | |
418 | -void Parameters::SetTotalStepsOptimization(int steps){ | |
419 | - this->totalStepsOptimization = steps; | |
420 | -} | |
421 | - | |
422 | -int Parameters::GetElectronicStateIndexOptimization() const{ | |
423 | - return this->electronicStateIndexOptimization; | |
424 | -} | |
425 | - | |
426 | -void Parameters::SetElectronicStateIndexOptimization(int electronicStateIndex){ | |
427 | - this->electronicStateIndexOptimization = electronicStateIndex; | |
428 | -} | |
429 | - | |
430 | -double Parameters::GetMaxGradientOptimization() const{ | |
431 | - return this->maxGradientOptimization; | |
432 | -} | |
433 | - | |
434 | -void Parameters::SetMaxGradientOptimization(double maxGradient){ | |
435 | - this->maxGradientOptimization = maxGradient; | |
436 | -} | |
437 | - | |
438 | -double Parameters::GetRmsGradientOptimization() const{ | |
439 | - return this->rmsGradientOptimization; | |
440 | -} | |
441 | - | |
442 | -void Parameters::SetRmsGradientOptimization(double rmsGradient){ | |
443 | - this->rmsGradientOptimization = rmsGradient; | |
444 | -} | |
445 | - | |
446 | -double Parameters::GetInitialTrustRadiusOptimization() const{ | |
447 | - return this->initialTrustRadiusOptimization; | |
448 | -} | |
449 | - | |
450 | -void Parameters::SetInitialTrustRadiusOptimization(double initialTrustRadius){ | |
451 | - this->initialTrustRadiusOptimization = initialTrustRadius; | |
452 | -} | |
453 | - | |
454 | -double Parameters::GetMaxNormStepOptimization() const{ | |
455 | - return this->maxNormStepOptimization; | |
456 | -} | |
457 | - | |
458 | -void Parameters::SetMaxNormStepOptimization(double maxNormStep){ | |
459 | - this->maxNormStepOptimization = maxNormStep; | |
460 | -} | |
461 | - | |
462 | -double Parameters::GetTimeWidthOptimization() const{ | |
463 | - return this->timeWidthOptimization; | |
464 | -} | |
465 | - | |
466 | -void Parameters::SetTimeWidthOptimization(double timeWidth){ | |
467 | - this->timeWidthOptimization = timeWidth; | |
468 | -} | |
469 | - | |
470 | 405 | // Frequencies |
471 | 406 | bool Parameters::RequiresFrequencies() const{ |
472 | 407 | return this->requiresFrequencies; |
@@ -191,22 +191,22 @@ public: | ||
191 | 191 | double GetTimeWidthNASCO() const; |
192 | 192 | void SetTimeWidthNASCO(double stepWidth); |
193 | 193 | // Optimization |
194 | - OptimizationMethodType GetMethodOptimization() const; | |
195 | - void SetMethodOptimization(OptimizationMethodType method); | |
196 | - int GetTotalStepsOptimization() const; | |
197 | - void SetTotalStepsOptimization(int totalSteps); | |
198 | - int GetElectronicStateIndexOptimization() const; | |
199 | - void SetElectronicStateIndexOptimization(int electronicStateIndex); | |
200 | - double GetMaxGradientOptimization() const; | |
201 | - void SetMaxGradientOptimization(double maxGradient); | |
202 | - double GetRmsGradientOptimization() const; | |
203 | - void SetRmsGradientOptimization(double rmsGradient); | |
204 | - double GetTimeWidthOptimization() const; | |
205 | - void SetTimeWidthOptimization(double timeWidth); | |
206 | - double GetInitialTrustRadiusOptimization() const; | |
207 | - void SetInitialTrustRadiusOptimization(double initialTrustRadius); | |
208 | - double GetMaxNormStepOptimization() const; | |
209 | - void SetMaxNormStepOptimization(double maxNormStep); | |
194 | + OptimizationMethodType GetMethodOptimization() const {return this->methodOptimization;} | |
195 | + void SetMethodOptimization(OptimizationMethodType m){this->methodOptimization = m;} | |
196 | + int GetTotalStepsOptimization() const {return this->totalStepsOptimization;} | |
197 | + void SetTotalStepsOptimization(int steps) {this->totalStepsOptimization = steps;} | |
198 | + int GetElectronicStateIndexOptimization() const {return this->electronicStateIndexOptimization;} | |
199 | + void SetElectronicStateIndexOptimization(int i) {this->electronicStateIndexOptimization = i;} | |
200 | + double GetMaxGradientOptimization() const {return this->maxGradientOptimization;} | |
201 | + void SetMaxGradientOptimization(double m) {this->maxGradientOptimization = m;} | |
202 | + double GetRmsGradientOptimization() const {return this->rmsGradientOptimization;} | |
203 | + void SetRmsGradientOptimization(double r) {this->rmsGradientOptimization = r;} | |
204 | + double GetTimeWidthOptimization() const {return this->timeWidthOptimization;} | |
205 | + void SetTimeWidthOptimization(double dt) {this->timeWidthOptimization = dt;} | |
206 | + double GetInitialTrustRadiusOptimization() const {return this->initialTrustRadiusOptimization;} | |
207 | + void SetInitialTrustRadiusOptimization(double r) {this->initialTrustRadiusOptimization = r;} | |
208 | + double GetMaxNormStepOptimization() const {return this->maxNormStepOptimization;} | |
209 | + void SetMaxNormStepOptimization(double n) {this->maxNormStepOptimization = n;} | |
210 | 210 | // Frequencies |
211 | 211 | bool RequiresFrequencies() const; |
212 | 212 | void SetRequiresFrequencies(bool requiresFrequencies); |