Comments (1)
`import nevergrad as ng
from nevergrad.functions.powersystems.core import PowerSystem
budget = 3500
width = 6
depth = 6
num_dams = 6
year_to_day_ratio = 0.5
back_to_normal = 0.5
num_thermal_plants = 6
constant_to_year_ratio = 4.0
power_system_loss = PowerSystem(
num_dams=num_dams,
depth=depth,
width=width,
year_to_day_ratio=year_to_day_ratio,
back_to_normal=back_to_normal,
num_thermal_plants=num_thermal_plants,
constant_to_year_ratio=constant_to_year_ratio,
)
added line:
param = int(power_system_loss.dimension/power_system_loss.num_dams)
changed 'parametrization=power_system_loss.dimension' in the optimizer parameters:
optimizer = ng.optimizers.SplitOptimizer(
parametrization=param, budget=budget, num_workers=1
)
optimizer.minimize(power_system_loss)
power_system_loss(optimizer.provide_recommendation().value)
power_system_loss.make_plots(
f"ps_{num_dams}dams_{depth}_{width}_ytdr{year_to_day_ratio}_btn{back_to_normal}"
f"_num_thermal_plants{num_thermal_plants}_ctyr{constant_to_year_ratio}_budget{budget}.png"
)`
from nevergrad.
Related Issues (20)
- Documentation Bug: Examples - Nevergrad for Machine Learning HOT 1
- Nevergrad 0.12 introduces dependency on ax-platform and torch, which take a lot of space
- Issue with constrained optimization HOT 2
- Powell's DFO methods: the Fortran 77 implementation of COBYLA / NEWUOA is unmaintained and buggy; Switch to PRIMA? HOT 1
- Not sure how to use Non Object Optimizers HOT 2
- Ask function outputting repeated points
- ParametrizedMetaModel(multivariate_optimizer=CmaFmin2) runs are not reproducible HOT 1
- Defining constraint vs. incorporating this info in the objective function
- Unable to pickle FCMAES optimizer
- ParaPortfolio throwing budget errors with multiple workers. HOT 1
- Inability to update Optimizer's Parameters Bound HOT 1
- Overflow when setting bounds for NGOpt
- CMAbounded and CMApara: errors and warnings depending on number of workers and parameters; Nevergrad version 1.0.1
- Multiple constraints HOT 1
- Int has an overflow on windows
- Latest version (1.02) does not follow semantic versioning conventions HOT 2
- Optimize all parameters in Pytorch module that require gradient HOT 1
- Set up step size in nevergrad
- tell() casts loss into float
- CMA optimizer error: InjectionWarning: orphanated injected solution
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nevergrad.