Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multipcse #1392

Draft
wants to merge 69 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
1323e4c
pcse
teytaud Jan 20, 2022
d5f5a48
pcse
teytaud Jan 20, 2022
9a69ed3
fix
teytaud Jan 20, 2022
f351125
pcse
teytaud Jan 20, 2022
d82572d
fix
teytaud Jan 20, 2022
548e26b
nlopt
teytaud Jan 20, 2022
ef1d9db
nlopt
teytaud Jan 20, 2022
6d521d6
nlopt
teytaud Jan 20, 2022
40fa906
fix
teytaud Jan 20, 2022
3c39904
fix
teytaud Jan 20, 2022
df0859e
fix
teytaud Jan 20, 2022
5ebef57
po
teytaud Jan 20, 2022
c225aba
po
teytaud Jan 20, 2022
8d64d9f
po
teytaud Jan 20, 2022
38c52f2
po
teytaud Jan 20, 2022
7212971
to
teytaud Jan 20, 2022
d7d30b6
Merge branch 'main' of github.com:facebookresearch/nevergrad into pcse
teytaud Jan 20, 2022
53c3e7c
fix
teytaud Jan 20, 2022
7d379fb
fix
teytaud Jan 20, 2022
4ba35a5
Update __init__.py
teytaud Jan 21, 2022
461c47a
Update experiments.py
teytaud Jan 21, 2022
e8b61d9
Update nevergrad/optimization/optimizerlib.py
teytaud Feb 16, 2022
1ffd9e3
Update test_optimizerlib.py
teytaud Feb 16, 2022
2485297
Update test_pcse.py
teytaud Feb 16, 2022
bb0bfdf
Update pcse.py
teytaud Feb 16, 2022
292ce5c
Update experiments.py
teytaud Feb 16, 2022
3af4cf3
Merge branch 'main' of github.com:facebookresearch/nevergrad into pcse
teytaud Mar 2, 2022
1691eaa
Pcse2: irrigation challenge (#1341)
teytaud Mar 2, 2022
c75d0e8
Update bench.txt
teytaud Mar 2, 2022
a1d172b
Update irrigation.py
teytaud Mar 2, 2022
fc2b4a4
fix
teytaud Mar 2, 2022
e07a6f9
Merge branch 'main' into pcse
teytaud Mar 7, 2022
ec48d5e
Update irrigation.py
teytaud Mar 7, 2022
87100b9
pcse_license
teytaud Mar 7, 2022
f349f85
fix_details
teytaud Mar 7, 2022
7265466
fix
teytaud Mar 7, 2022
fb56213
dependencies
teytaud Mar 7, 2022
0c326e9
dependencies
teytaud Mar 7, 2022
8bc105b
dependencies
teytaud Mar 7, 2022
5bd8f63
dependencies
teytaud Mar 7, 2022
6857caa
dependencies
teytaud Mar 7, 2022
f6a00cf
dependencies
teytaud Mar 7, 2022
31ea8ba
pcse
teytaud Mar 7, 2022
6429b5f
Update irrigation.py
teytaud Mar 8, 2022
77a3953
add_folders
teytaud Mar 8, 2022
9b470ab
Update irrigation.py
teytaud Mar 8, 2022
87b7239
black
teytaud Mar 10, 2022
b4b1a04
Merge branch 'main' into pcse
teytaud Mar 10, 2022
103868f
fix
teytaud Mar 10, 2022
2af1d82
fix
teytaud Mar 10, 2022
5d780eb
fix
teytaud Mar 10, 2022
31740f0
fix
teytaud Mar 10, 2022
6b9bc45
fix
teytaud Mar 10, 2022
2599cbd
fix
teytaud Mar 10, 2022
b54a37a
Update irrigation.py
teytaud Mar 10, 2022
696f80f
Update pcse.py
teytaud Mar 10, 2022
db55266
pcse
teytaud Mar 11, 2022
217eb21
multipcse
teytaud Mar 17, 2022
f6ec35e
black_improve
teytaud Mar 17, 2022
24c37e7
fix
teytaud Mar 17, 2022
eefb9c3
Update bench.txt
teytaud Mar 17, 2022
8af502c
Update irrigation.py
teytaud Mar 17, 2022
0d8655c
Update dev.txt
teytaud Mar 17, 2022
85819e8
Update dev.txt
teytaud Mar 17, 2022
53d8f99
Update dev.txt
teytaud Mar 17, 2022
dc25e41
Update irrigation.py
teytaud Mar 17, 2022
61cebf3
Update irrigation.py
teytaud Mar 24, 2022
554499b
rebase
teytaud Jun 18, 2022
df73053
fix
teytaud Jun 18, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
pcse
  • Loading branch information
teytaud committed Jan 20, 2022
commit d5f5a480bfb5e3ad7f8db4c5865204a3ae2fba46
20 changes: 20 additions & 0 deletions nevergrad/benchmark/experiments.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
from nevergrad.functions.powersystems import PowerSystem
from nevergrad.functions.stsp import STSP
from nevergrad.functions.rocket import Rocket
from nevergrad.functions.pcse import Pcse
from nevergrad.functions.mixsimulator import OptimizeMix
from nevergrad.functions.unitcommitment import UnitCommitmentProblem
from nevergrad.functions import control
Expand Down Expand Up @@ -1176,6 +1177,25 @@ def rocket(seed: tp.Optional[int] = None, seq: bool = False) -> tp.Iterator[Expe
yield xp


@registry.register
def pcse(seed: tp.Optional[int] = None) -> tp.Iterator[Experiment]:
"""Crop simulator.

Low dimensional problem, only 2 vars.
"""
funcs = [Pcse()]
seedg = create_seed_generator(seed)
optims = get_optimizers("basics", seed=next(seedg))
for budget in [25, 50, 100, 200]:
for num_workers in [1, 10, 40]:
if num_workers < budget:
for algo in optims:
for fu in funcs:
xp = Experiment(fu, algo, budget, num_workers=num_workers, seed=next(seedg))
if not xp.is_incoherent:
yield xp


@registry.register
def mono_rocket(seed: tp.Optional[int] = None) -> tp.Iterator[Experiment]:
"""Sequential counterpart of the rocket problem."""
Expand Down
6 changes: 3 additions & 3 deletions nevergrad/functions/pcse/pcse.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# LICENSE file in the root directory of this source tree.

"""
Approximate Pcse Simulation
Approximate crop Simulation
Based on
https://raw.githubusercontent.com/purdue-orbital/pcse-simulation/master/Simulation2.py
"""
Expand All @@ -22,7 +22,7 @@
class Pcse(ArrayExperimentFunction):


def __init__(self, symmetry: int = 0) -> None:
def __init__(self) -> None:
import sys
import matplotlib
import matplotlib.pyplot as plt
Expand Down Expand Up @@ -144,4 +144,4 @@ def __call__(self, par_values, grad=None):
# print("Objective function value with default parameters (%s): %s" % (defaults, error))

param = ng.p.Array(shape=(2,), lower=(TDWI_range[0], SPAN_range[0]), upper=(TDWI_range[1], SPAN_range[1]))
super().__init__(objfunc_calculator, parametrization=param, symmetry=symmetry)
super().__init__(objfunc_calculator, parametrization=param)