GithubHelp home page GithubHelp logo

yaocptool's People

Contributors

marcoaaguiar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

yaocptool's Issues

Some bugs about examples in this repo

Hello~ I'm very interested in this project. However, I encountered some problems when trying this project.
For example, when I run pce_example.py, I meet the following error:

pce_problem = pce_converter.convert_socp_to_ocp_with_pce()
File "D:\programme\Anaconda\envs\multi-agent\lib\site-packages\yaocptool\stochastic\pce.py", line 150, in convert_socp_to_ocp_with_pce
self.model, cost_list = self._create_model(self.sampled_parameters)
File "D:\programme\Anaconda\envs\multi-agent\lib\site-packages\yaocptool\stochastic\pce.py", line 376, in _create_model
model.include_control(self.socp.model.u_sym)
AttributeError: 'SystemModel' object has no attribute 'u_sym'

And other examples maybe have some errors. I'm not sure if the problem is with the installed version, the Dev and Master versions conflict again. Could you help me?

Could not meet dependency requirements using conda package manager

I know it is indicated to use pip to install this package, but today is also very common to use conda as package manager to python, and also so setup environments.

When trying to use conda to install the dependencies for yaocptool I got some conflicting dependencies between them. More specifically,

  • casadi is available through the "conda-forge" channel, but is only available for python2.7, 3.5 or 3.6
  • sobol_seq is available only through "https://conda.binstar.org/naught101" channel, but requires python3.4

Maybe I am missing something, but anyway could you please provide a manner to install this package through conda?

Create an OptimizationProblem class

The nlp problem so far is split in "nlp_probl" dict, "nlp_call" dict, and the solver.
It would be better to have an OptimizationProblem class, possible sub-classes: NonlinearProblem and QuadraticProblem

Project name

Should not the name of the project be Y(et)A(nother)O(ptimal)C(ontrol)TOOL (yaoctool) instead of yaocptool?

Refactor SolutionMethodBase

The following methods could be rewritten/eliminated
Methods:

  • create_solver
  • call_solver
  • solve_raw
  • solve

Related to #7

Dataset improvements

  • Merge datasets.
  • Put gaps on plots where data is missing.
  • get_entry (?)
  • get_entry_names (?)
  • get_entry_size (?)

SytemModel parametrize_control

Currently the u_func and u_par are in the SytemModel class, but there is no method of chaning them, also no way to check if a model is parametrized, and number of control parameters.

OptimizatrionResult.dataset

Make a conversion function for OptimizationResult to dataset.
The plot function of the dataset could be used by the optimziationresult to avoid reimplementation of the plot function

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.