Giter VIP home page Giter VIP logo

mixsimulator's People

Contributors

foloso avatar rasoanaivo-10 avatar synapticarbors avatar tokyaxel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

mixsimulator's Issues

Bug in parametrization when use max_variation

Traceback

`/usr/local/lib/python3.7/dist-packages/mixsimulator/MixSimulator.py in optimizeMix(self, carbon_quota, demand, lost, optimizer, step, time_index, time_interval, penalisation, carbon_cost, plot, average_wide)
320
321 # tune optimizer parametrization
--> 322 self.__opt_params(self.time_index)
323
324 # init constraints

/usr/local/lib/python3.7/dist-packages/mixsimulator/MixSimulator.py in __opt_params(self, time_index)
271
272 def __opt_params(self, time_index):
--> 273 self.__optimizer.set_parametrization(self.get_opt_params(time_index))
274
275 def get_opt_params(self, time_index):

/usr/local/lib/python3.7/dist-packages/mixsimulator/MixSimulator.py in get_opt_params(self, time_index)
282 # check the params by
283 # print(self.__centrals[central_index].get_variation_params())
--> 284 variable_parametrization += [self.__centrals[central_index].get_variation_params()]
285 return ng.p.Tuple(*variable_parametrization)
286

/usr/local/lib/python3.7/dist-packages/mixsimulator/power_plants/classic/PowerCentral.py in get_variation_params(self)
143 if low == up:
144 continue
--> 145 final_params.append(ng.p.Scalar(lower=low, upper=up))
146 discret = ng.p.Choice(self._choices)
147 final_params.append(discret)

/usr/local/lib/python3.7/dist-packages/nevergrad/parametrization/data.py in init(self, init, lower, upper, mutable_sigma)
469 if bounded:
470 if init is None:
--> 471 init = (lower + upper) / 2.0 # type: ignore
472 if init is None:
473 init = 0.0

TypeError: unsupported operand type(s) for /: 'list' and 'float'`

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.