-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Attach the C++ implementation to the Python symbols.
- Loading branch information
Dimitri Rusin
committed
Feb 1, 2024
1 parent
2eb95ab
commit 54f8995
Showing
3 changed files
with
193 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
import ioh | ||
|
||
print("ioh.problem.RealSingleObjective.problems") | ||
print(ioh.problem.RealSingleObjective.problems) | ||
|
||
f1 = ioh.get_problem(1001, 1, 2) | ||
x1 = [2, 31] | ||
y1 = f1(x1) | ||
print() | ||
print("function 1001") | ||
print(x1) | ||
print(y1) | ||
|
||
f2 = ioh.get_problem(1002, 1, 2) | ||
x2 = [2, 31] | ||
y2 = f2(x2) | ||
print() | ||
print("function 1002") | ||
print(x2) | ||
print(y2) | ||
|
||
f3 = ioh.get_problem(1003, 1, 2) | ||
x3 = [2, 31] | ||
y3 = f3(x3) | ||
print() | ||
print("function 1003") | ||
print(x3) | ||
print(y3) | ||
|
||
f4 = ioh.get_problem(1004, 1, 2) | ||
x4 = [2, 31] | ||
y4 = f4(x4) | ||
print() | ||
print("function 1004") | ||
print(x4) | ||
print(y4) | ||
|
||
f = ioh.get_problem(1005, 1, 2) | ||
x = [2, 31] | ||
y = f(x) | ||
print() | ||
print("function 1005") | ||
print(x) | ||
print(y) | ||
|
||
f = ioh.get_problem(1006, 1, 20) | ||
x = [1,2,5,3,22,2,2,7,6,5,5,4,34,1,2,-13,4,5,6,7] | ||
y = f(x) | ||
print() | ||
print("function 1006") | ||
print(x) | ||
print(y) | ||
|
||
f = ioh.get_problem(1007, 1, 20) | ||
x = [1,2,5,3,22,2,2,7,6,5,5,4,34,1,2,-13,4,5,6,7] | ||
y = f(x) | ||
print() | ||
print("function 1007") | ||
print(x) | ||
print(y) | ||
|
||
f = ioh.get_problem(1008, 1, 20) | ||
x = [1,2,5,3,22,2,2,7,6,5,5,4,34,1,2,-13,4,5,6,7] | ||
y = f(x) | ||
print() | ||
print("function 1008") | ||
print(x) | ||
print(y) | ||
|
||
f = ioh.get_problem(1009, 1, 2) | ||
x = [2, 31] | ||
y = f(x) | ||
print() | ||
print("function 1009") | ||
print(x) | ||
print(y) | ||
|
||
f = ioh.get_problem(1010, 1, 2) | ||
x = [2, 31] | ||
y = f(x) | ||
print() | ||
print("function 1010") | ||
print(x) | ||
print(y) | ||
|
||
f = ioh.get_problem(1011, 1, 2) | ||
x = [2, 31] | ||
y = f(x) | ||
print() | ||
print("function 1011") | ||
print(x) | ||
print(y) | ||
|
||
f = ioh.get_problem(1012, 1, 2) | ||
x = [2, 31] | ||
y = f(x) | ||
print() | ||
print("function 1012") | ||
print(x) | ||
print(y) |