Skip to content

Commit 2dd0062

Browse files
committed
comments
1 parent d854c26 commit 2dd0062

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

GA/GABase.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ This file is part of OptimTemplates.
3636

3737
namespace OptimT {
3838

39-
39+
///whether to record trainning curve of not
4040
enum RecordOption : uint8_t {
4141
RECORD_FITNESS=true,
4242
DONT_RECORD_FITNESS=false
4343
};
44-
44+
///optimization direction
4545
enum FitnessOption : uint8_t {
4646
FITNESS_LESS_BETTER=false,
4747
FITNESS_GREATER_BETTER=true,

GA/NSGA2.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ This file is part of OptimTemplates.
2525
#include <unordered_set>
2626
namespace OptimT
2727
{
28-
28+
///whether to protect pareto front when mutation or not
2929
enum PFOption : unsigned char {
3030
PARETO_FRONT_DONT_MUTATE=true,
3131
PARETO_FRONT_CAN_MUTATE=false
3232
};
3333

34-
34+
///NSGA2 MOGA solver
3535
template<typename Var_t,size_t ObjNum,
3636
FitnessOption isGreaterBetter,
3737
RecordOption Record,

0 commit comments

Comments
 (0)