marcoaaguiar / yaocptool Goto Github PK
View Code? Open in Web Editor NEW(YAOCPTool)Yet Another Optimal Control Tool
(YAOCPTool)Yet Another Optimal Control Tool
use "import logging"
Should not the name of the project be Y(et)A(nother)O(ptimal)C(ontrol)TOOL (yaoctool) instead of yaocptool?
Reference #31
This creates an exception "eval_sx" for integrator object (which do not accept SX.sym as input)
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?
This would avoid a duplicated implementations, for instance of the plot function. Or re-implementation in the case of improvement proposed by Issue #12
use 'x' instead of 'x_sym', the same for the other variables. for compatibility do this using @Property
and @x.setter
Ref Issue #30
Suggestion: create a dictionary with a mapping of variable names to the state vector.
Abstract class for:
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
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.
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,
Maybe I am missing something, but anyway could you please provide a manner to install this package through conda?
The following methods could be rewritten/eliminated
Methods:
Related to #7
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.