Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
PasaOpasen committed Apr 14, 2024
1 parent b557a20 commit c310385
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -982,12 +982,14 @@ def f(X):
dim = 25
varbound = [[0, 10]] * dim

model = ga(function=f, dimension=dim,
variable_type='real', variable_boundaries=varbound,
algorithm_parameters={
'max_num_iteration': 600
}
)
model = ga(
dimension=dim,
variable_type='real',
variable_boundaries=varbound,
algorithm_parameters={
'max_num_iteration': 600
}
)

# here model exists and has checked_reports field
# now u can append any functions to report
Expand All @@ -1001,7 +1003,10 @@ model.checked_reports.extend(
)

# run optimization process
model.run(no_plot=False)
model.run(
function=f,
no_plot=False
)

# now u have not only model.report but model.report_25 and so on

Expand Down

0 comments on commit c310385

Please sign in to comment.