Comments (2)
Bisected to 789e1b
from casadi.
Failing example:
from pylab import *
from casadi import *
opti = Opti()
x = opti.variable(10)
y = opti.variable(10)
yr = opti.parameter()
V = 0.5*700*sum1((sqrt(diff(x)**2+diff(y)**2)-0.5)**2)
V = V + 9.81*sum1(4*y)
opti.minimize(V)
opti.subject_to(vertcat(x[0],y[0]) == vertcat(-2,0))
opti.subject_to(vertcat(x[-1],y[-1]) == vertcat(2,yr))
opti.set_initial(x,np.linspace(-2,2,10))
opti.solver('sqpmethod',{"qpsol":"qrqp","convexify_strategy": "regularize"})
par_nlp = opti.to_function("par_nlp",[yr],[x])
yrs = np.linspace(0,10,50)
m = par_nlp.map(50,"thread",1)
ys = m(yrs)
m = par_nlp.map(50,"thread",4)
ys = m(yrs)
from casadi.
Related Issues (20)
- Interpolant returns inconsistent results HOT 1
- How to use Debugging features
- Trying to use MA27 HOT 1
- Unreliable git clones of external modules due to performing full clone
- Bug in ca.jtimes when vector of size 0x1 is used HOT 1
- Unable to use allow_free option in Opti::to_function in Python HOT 3
- Problem with installation on Matlab r2023b HOT 7
- Outdated note in user guide
- OpenCL Support
- ipopt warm start
- Sign glitch in `detect_simple_bounds`? HOT 1
- Using external function in nlpsol codegen
- Support for BaseModelica symbolic import
- Update OpenModelica XML import into DaeBuilder
- Refactor handling of event dynamics in DaeBuilder
- Mapping with openmp segmentation faults sometimes
- Run-time warnings
- Linear system of equations with Casadi: A\b HOT 1
- Event support in integrator class
- Building Casadi with ipopt HOT 2
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 casadi.