Skip to content
Snippets Groups Projects
Commit f7b8b8e0 authored by Ruben Haag's avatar Ruben Haag
Browse files

Pareto Check as notebook

parent 45bc2584
No related branches found
No related tags found
No related merge requests found
%% Cell type:code id:f72cf662 tags:
``` julia
function paretoCheck(x, pointcloud, better= <)
# Usag: filter(x->parethoCheck(x, pointcloud), pointcloud)
for p in pointcloud
sum(better.(p,x)) == length(x) ? (return false) : nothing
end
return true
end
#gib true zurück, wenn ein x_i besser ist als das entsprechende p_i für alle p_s, wo die reslichen p_j schlechter sind
# Paretho Optimal: x ist in einer Richtung besser, als alle, die in anderen Richtungen besser sind.
# Oder wenn ich einen Punkt finde, der in mehr als einer Richtung besser ist als x, dann ist
```
%% Output
parethoCheck (generic function with 2 methods)
%% Cell type:code id:cbeb2c32 tags:
``` julia
```
%% Output
5-element Vector{Vector{Float64}}:
[1.0, 2.0]
[1.0, 4.0]
[0.5, 2.0]
[5.0, 6.0]
[1.0, 3.0]
%% Cell type:code id:90cd0638 tags:
``` julia
# Problem:
# Ich habe einen Index und muss darauf basierend einen
# Version A:
# Lege einfach alle Parameter zufällig fest (Gleichverteilt, mit vorgegebenen mini-und maxima)
# Version B:
# Umrechnen von 1D index in XD Parameterraums
#
```
%% Cell type:code id:a3da0aa6 tags:
``` julia
```
%% Output
rand_intervall (generic function with 2 methods)
%% Cell type:code id:6b2f66dc tags:
``` julia
```
%% Output
-0.6445598171068538
%% Cell type:code id:26a22574 tags:
``` julia
rand()
```
%% Output
0.7344013350577958
%% Cell type:code id:287bb92b tags:
``` julia
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment