Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbee86f6

Browse files
committed
README update with new objective func images
1 parent81724dc commitbee86f6

File tree

3 files changed

+42
-8
lines changed

3 files changed

+42
-8
lines changed

‎README.md‎

Lines changed: 42 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,42 @@ The no preference method of multi-objective optimization, but a Pareto Front is
7979
The optimizer minimizes the absolute value of the difference from the target outputs and the evaluated outputs. Future versions may include options for function minimization absent target values.
8080

8181
####Internal Objective Function Example
82-
The current internal optimization function takes 3 inputs, and has 2 outputs. It was created as a simple 3-variable optimization objective function that would be quick to converge.
82+
83+
There are three functions included in the repository:
84+
1) Himmelblau's function, which takes 2 inputs and has 1 output
85+
2) A multi-objective function with 3 inputs and 2 outputs (see lundquist_3_var)
86+
3) A single-objective function with 1 input and 1 output (see one_dim_x_test)
87+
88+
Each function has four files in a directory:
89+
1) configs_F.py - contains imports for the objective function and constraints, CONSTANT assignments for functions and labeling, boundary ranges, the number of input variables, the number of output values, and the target values for the output
90+
2) constr_F.py - contains a function with the problem constraints, both for the function and for error handling in the case of under/overflow.
91+
3) func_F.py - contains a function with the objective function.
92+
4) graph.py - contains a script to graph the function for visualization.
93+
94+
Other multi-objective functions can be applied to this project by following the same format (and several have been collected into a compatible library, and will be released in a separate repo)
95+
8396
<palign="center">
84-
<img src="https://github.com/LC-Linkous/cat_swarm_python/blob/main/media/obj_func_pareto.png" alt="Function Feasible Decision Space and Objective Space with Pareto Front" height="200">
97+
<img src="https://github.com/LC-Linkous/chicken_swarm_python/blob/main/media/himmelblau_plots.png" alt="Himmelblau function" height="250">
8598
</p>
86-
<palign="center">Function Feasible Decision Space and Objective Space with Pareto Front</p>
99+
<palign="center">Plotted Himmelblau Function with 3D Plot on the Left, and a 2D Contour on the Right</p>
100+
101+
```math
102+
f(x, y) = (x^2 + y - 11)^2 + (x + y^2 - 7)^2
103+
```
104+
105+
| Global Minima| Boundary| Constraints|
106+
|----------|----------|----------|
107+
| f(3, 2) = 0| $-5 \leq x,y \leq 5$||
108+
| f(-2.805118, 3.121212) = 0| $-5 \leq x,y \leq 5$||
109+
| f(-3.779310, -3.283186) = 0| $-5 \leq x,y \leq 5$||
110+
| f(3.584428, -1.848126) = 0| $-5 \leq x,y \leq 5$||
111+
112+
113+
114+
<palign="center">
115+
<img src="https://github.com/LC-Linkous/chicken_swarm_python/blob/main/media/obj_func_pareto.png" alt="Function Feasible Decision Space and Objective Space with Pareto Front" height="200">
116+
</p>
117+
<palign="center">Plotted Multi-Objective Function Feasible Decision Space and Objective Space with Pareto Front</p>
87118

88119
```math
89120
\text{minimize}:
@@ -97,12 +128,15 @@ f_{2}(\mathbf{x}) = (x_3-0.2)^4
97128
|----------|----------|----------|
98129
| 3| $0.21\leq x_1\leq 1$ <br> $0\leq x_2\leq 1$ <br> $0.1 \leq x_3\leq 0.5$| $x_3\gt \frac{x_1}{2}$ or $x_3\lt 0.1$|
99130

100-
This function has three files:
101-
1) configs_F.py - contains imports for the objective function and constraints, CONSTANT assignments for functions and labeling, boundary ranges, the number of input variables, the number of output values, and the target values for the output
102-
2) constr_F.py - contains a function with the problem constraints, both for the function and for error handling in the case of under/overflow.
103-
3) func_F.py - contains a function with the objective function.
104131

105-
Other multi-objective functions can be applied to this project by following the same format (and several have been collected into a compatible library, and will be released in a separate repo)
132+
<palign="center">
133+
<img src="https://github.com/LC-Linkous/chicken_swarm_python/blob/main/media/1D_test_plots.png" alt="Function Feasible Decision Space and Objective Space with Pareto Front" height="200">
134+
</p>
135+
<palign="center">Plotted Single Input, Single-objective Function Feasible Decision Space and Objective Space with Pareto Front</p>
136+
137+
```math
138+
f(\mathbf{x}) = sin(5 * x^3) + cos(5 * x) * (1 - tanh(x^2))
139+
```
106140

107141

108142
##Example Implementations

‎media/1D_test_plots.png‎

28.3 KB
Loading

‎media/himmelblau_plots.png‎

256 KB
Loading

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp