<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>ACADO Toolkit - Forum</title>
<description>This is the ACADO (Automatic Control and Dynamic Optimization) forum. Post all your questions, bug reports and feature requests here! Registered forum users can receive updates and our newsletter by e-mail.</description><link>http://forum.acadotoolkit.org/index.php</link><lastBuildDate>Sun, 20 May 2012 00:39:41 +0000</lastBuildDate>
<generator>Phorum 5.2.15a</generator>
<item>
<guid>http://forum.acadotoolkit.org/read.php?1,253,253#msg-253</guid>
<title>Forum registration closed due to spam issues (no replies)</title><link>http://forum.acadotoolkit.org/read.php?1,253,253#msg-253</link><description><![CDATA[ Please send your questions by mail (see contact page)]]></description>
<dc:creator>David</dc:creator>
<category>Announcements / Releases</category><pubDate>Sat, 22 Jan 2011 15:10:28 +0000</pubDate></item>
<item>
<guid>http://forum.acadotoolkit.org/read.php?6,249,249#msg-249</guid>
<title>pow(Expression, double) with LagrangianFormalism results in 1.#QNAN0 (no replies)</title><link>http://forum.acadotoolkit.org/read.php?6,249,249#msg-249</link><description><![CDATA[ Hi there,<br /><br />In 1.0.2367beta, using the pow(Expression, double) function in the LagrangianFormalism results in a solution from the integrator consisting entirely of 1.#QNAN0.<br /><br />Test case:<br /><pre class="bbcode">
#include &lt;acado_toolkit.hpp&gt;

using namespace std;
USING_NAMESPACE_ACADO

int main(int argc, char *argv[])
{
	const double g	= 9.81;	// gravitational acceleration
	const double m	= 5.0;	// mass
	
	// DEFINE VALRIABLES:
	// ---------------------------
	DifferentialState   q(1);   // the generalized coordinate of the particle (y-axis)
	DifferentialState  dq(1);   // the associated velocities

	// COMPUTE THE KINETIC ENERGY T AND THE POTENTIAL V:
	// -------------------------------------------------
	IntermediateState dq0Sqr = pow(dq(0),2);	// doesn't work! (solution is 1.#QNAN0)
	//IntermediateState dq0Sqr = dq(0)*dq(0);	// works

	IntermediateState T = 0.5*m*(dq0Sqr);
	IntermediateState V = m*q(0)*g;	//gravity on y-axis
	

	// AUTOMATICALLY DERIVE THE EQUATIONS OF MOTION BASED ON THE LAGRANGIAN FORMALISM:
	// -------------------------------------------------------------------------------
	DifferentialEquation  f;
	LagrangianFormalism( f, T - V, q, dq );

	// Define an integrator:
	// ---------------------
	double t_start    =   0.0;
	double t_end      =   3.0;
	double q_start[2] = {0.0, 0.0};	//y-axis, y-axis velocity

	IntegratorBDF integrator( f );
	integrator.set( INTEGRATOR_PRINTLEVEL, HIGH );
	integrator.set( INTEGRATOR_TOLERANCE, 1e-5 );

	Grid timeInterval(t_start, t_end, 60 );
	integrator.integrate(timeInterval, q_start);

	// Output solution:
	// ---------------------
	VariablesGrid rx;
	integrator.getX(rx);

	FILE *file = fopen(&quot;solution.txt&quot;, &quot;w&quot; );
	for(int t = 0; t &lt; rx.getLastIndex(); t++)
	{
		Vector v = rx.getVector(t);
		acadoFPrintf(file, &quot;%f\n&quot;, v(0));
	}
	fclose(file);

	return 0;
}</pre><br />Expected output:<br /><pre class="bbcode">
0.000000
-0.012682
-0.050727
-0.114135
etc...</pre><br />Actual output:<br /><pre class="bbcode">
0.000000
1.#QNAN0
1.#QNAN0
1.#QNAN0
etc...</pre><br />Thanks,<br />Spacecookies]]></description>
<dc:creator>Spacecookies</dc:creator>
<category>Bug Reports</category><pubDate>Sat, 22 Jan 2011 01:50:48 +0000</pubDate></item>
<item>
<guid>http://forum.acadotoolkit.org/read.php?6,246,246#msg-246</guid>
<title>Multiplication of Matrix and Scalar - Error (2 replies)</title><link>http://forum.acadotoolkit.org/read.php?6,246,246#msg-246</link><description><![CDATA[ Hi,<br /><br />I'm getting an error message when doing a simple multiplication of a scalar and a matrix, but due to my limited C++ knowledge have no idea what is missing.<br /><br />The following example code raises the error message &quot;|error: no match for 'operator=' in 'A = ACADO::operator*(const double&amp;, const ACADO::Expression&amp;)(((const ACADO::Expression&amp;)(&amp;Expression(((const ACADO::Matrix&amp;)((const ACADO::Matrix*)(&amp;A)))))))'|&quot;<br /><br /><pre class="bbcode">
#include &lt;acado/include/acado_optimal_control.hpp&gt;

int main() {

    USING_NAMESPACE_ACADO

    Matrix A(2,2);
    A(0,0) = 1.0;  A(0,1) = 1.0;
    A(1,0) = 0.0;  A(1,1) = 2.0;

    // works
    printf(&quot;\nThe matrix 5.0*A is:\n&quot;);
    A *= 5.0;
    A.print();

    // does not work
    printf(&quot;\nThe matrix 5.0*A is:\n&quot;);
    A = 5.0 * A;
    A.print();

    return 0;
}</pre><br />The multiplication A *= 5.0; works fine, but A = 5.0 * A; fails with the error.<br /><br />I would be really glad about any help!<br /><br />Thank you very much!<br />Tobias]]></description>
<dc:creator>Tobias</dc:creator>
<category>Bug Reports</category><pubDate>Fri, 21 Jan 2011 08:57:03 +0000</pubDate></item>
<item>
<guid>http://forum.acadotoolkit.org/read.php?6,233,233#msg-233</guid>
<title>Exporting to a C function - variable names not used (no replies)</title><link>http://forum.acadotoolkit.org/read.php?6,233,233#msg-233</link><description><![CDATA[ In the tutorial <a href="http://www.acadotoolkit.org/tutorials/inspect.php#Method1" rel="nofollow" >Inspecting IntermediateStates, DifferentialStates and Expressions</a>, under Method 1: Exporting to a C function, it says &quot;If the DifferentialStates were declared with a name, they would appear with this name in the generated C code.&quot;<br /><br />In my tests with 1.0.2367beta though, this doesn't seem to work. The variables are always named acado_xd[0], acado_xd[1] etc...<br /><br />Test case:<br /><pre class="bbcode">
#include &lt;acado_toolkit.hpp&gt;

using namespace std;
USING_NAMESPACE_ACADO

int main(int argc, char *argv[])
{
	DifferentialState x(&quot;x&quot;),y(&quot;y&quot;);
	IntermediateState v = x * y + x;
	Function f;
	f &lt;&lt; v;
	FILE *file = fopen(&quot;debug.cpp&quot;, &quot;w&quot; );
	file &lt;&lt; f;
	fclose(file);
}</pre><br />Expected output:<br /><pre class="bbcode">
// COMPUTE THE INTERMEDIATE STATES:
// --------------------------------
acadoWorkspace.acado_aux[0] = ((x*y)+x);</pre><br />Actual output:<br /><pre class="bbcode">
// COMPUTE THE INTERMEDIATE STATES:
// --------------------------------
acadoWorkspace.acado_aux[0] = ((acado_xd[0]*acado_xd[1])+acado_xd[0]);</pre><br />(Additionally there is a small typo in the tutorial... flcose(file) should be fclose(file).)]]></description>
<dc:creator>Spacecookies</dc:creator>
<category>Bug Reports</category><pubDate>Mon, 17 Jan 2011 00:53:38 +0000</pubDate></item>
<item>
<guid>http://forum.acadotoolkit.org/read.php?12,232,232#msg-232</guid>
<title>How Do I debug C++ files in matlab? (no replies)</title><link>http://forum.acadotoolkit.org/read.php?12,232,232#msg-232</link><description><![CDATA[ Debugging in WINDOWS, Microsoft Visual C++ EXPRESS<br /><ol type="1"><li>Open make.m</li><li>Set the DEBUG flag to 1</li><li>Run make.m</li><li>Start Microsoft Visual C++ Express Edition. Do not exit your MATLAB session.</li><li>From the menu, select Tools -&gt; Attach to process</li><li>In the Process GUI that opens, select the MATLAB.exe process and click Attach</li><li>You can now close the Process GUI if you wish.</li><li>Open the source files by selecting File -&gt; Open-&gt;File</li><li>Set a breakpoint on the desired line of code by right-clicking on the line of code, and selecting Insert Breakpoint. If you have not run the model yet and the breakpoint shows up with a &quot;?&quot; in it, do not worry. The .mexw32 file will load when you run the model.</li><li>Start the simulation in matlab (eg. run getting_started.m), and you should be running the S-function in the Microsoft Development Environment.</li></ol><br /><br />Debugging in UNIX<br />See <a href="http://www.mathworks.com/support/tech-notes/1800/1819.html" rel="nofollow" >http://www.mathworks.com/support/tech-notes/1800/1819.html</a><br /><br /><br /><br />Other interesting documentation<br />* Matlab MEX guide<br /><a href="http://www.mathworks.com/support/tech-notes/1600/1605.html" rel="nofollow" >http://www.mathworks.com/support/tech-notes/1600/1605.html</a><br /><br />* Installing Microsoft Visual C++ EXPRESS for Windows<br /><a href="http://www.microsoft.com/Express/VC/" rel="nofollow" >http://www.microsoft.com/Express/VC/</a><br /><br />* Installing GCC for Windows (MinGW and GNUMEX)<br /><a href="http://gnumex.sourceforge.net/" rel="nofollow" >http://gnumex.sourceforge.net/</a><br /><a href="http://www.mingw.org/wiki/MinGWiki" rel="nofollow" >http://www.mingw.org/wiki/MinGWiki</a>]]></description>
<dc:creator>David</dc:creator>
<category>FAQ</category><pubDate>Sun, 16 Jan 2011 07:42:44 +0000</pubDate></item>
<item>
<guid>http://forum.acadotoolkit.org/read.php?5,211,211#msg-211</guid>
<title>examples/modeling_tools (2 replies)</title><link>http://forum.acadotoolkit.org/read.php?5,211,211#msg-211</link><description><![CDATA[ Hi all,<br /><br />I started experimenting with the acado toolkit (v1.0.2367beta) today, and so far I'm very impressed! I was particularly thrilled to see the examples/modeling_tools directory. This would seem to make the specification of mechanical systems *much* easier.<br /><br />However, the modeling_tools examples are not built by default. I attempted to build them with:<br /><pre class="bbcode">
cd examples/modeling_tools
make</pre><br />But there are some compiler errors...<br /><pre class="bbcode">
$ make
Creating spinningtop.exe
g++ -o spinningtop.exe -DLINUX -Wall -pedantic -Wfloat-equal -Wshadow -Winline -
D__DEBUG__ -g -O0 -finline-functions spinningtop.o -L../../libs   -lacado_toolki
t -lqpOASESextras2.0 -lcsparse
spinningtop.o: In function `main':
/cygdrive/c/lib/ACADOtoolkit/examples/modeling_tools/spinningtop.cpp:47: undefin
ed reference to `ACADO::Frame::Frame(ACADO::String const&amp;, ACADO::Expression con
st&amp;, ACADO::Expression const&amp;, ACADO::Expression const&amp;)'
/cygdrive/c/lib/ACADOtoolkit/examples/modeling_tools/spinningtop.cpp:48: undefin
ed reference to `tr(ACADO::Expression const&amp;, ACADO::Expression const&amp;, ACADO::E
xpression const&amp;)'
/cygdrive/c/lib/ACADOtoolkit/examples/modeling_tools/spinningtop.cpp:48: undefin
ed reference to `TRy(ACADO::Expression const&amp;)'
/cygdrive/c/lib/ACADOtoolkit/examples/modeling_tools/spinningtop.cpp:48: undefin
ed reference to `TRz(ACADO::Expression const&amp;)'
/cygdrive/c/lib/ACADOtoolkit/examples/modeling_tools/spinningtop.cpp:48: undefin
ed reference to `ACADO::Frame::Frame(ACADO::String const&amp;, ACADO::Frame const&amp;,
ACADO::Expression const&amp;)'

Etc...</pre><br />It looks like an #include is missing. Before I debug further though, I thought I would simply ask about the state of these modeling_tools and their examples. Should they be working or are they still a 'work in progress'?<br /><br />Thanks!<br />Spacecookies]]></description>
<dc:creator>Spacecookies</dc:creator>
<category>General Help</category><pubDate>Sat, 22 Jan 2011 13:02:31 +0000</pubDate></item>
<item>
<guid>http://forum.acadotoolkit.org/read.php?6,194,194#msg-194</guid>
<title>cosine multiplication bug (no replies)</title><link>http://forum.acadotoolkit.org/read.php?6,194,194#msg-194</link><description><![CDATA[ Hi there, and happy newyear!<br /><br />The master student Jan Goos just noticed a very weird bug in acado (1.0.2367beta release, not checked with svn trunk).<br /><br />The bugreport is committed as /tests/bugreports/bug4.cpp, but the important part is included here:<br /><pre class="bbcode">

	IntermediateState	x						= 0.0;

	IntermediateState v(6);

  v(0)=cos(x);
  v(1)=cos(x)*1.0;
  v(2)=cos(x)*1;
  v(3)=cos(x)/1;
  v(4)=1.0*cos(x);
  v(5)=cos(0)*1.0;</pre><br />v should evaluate to a vector with all zeros, but v(1) and v(2) are displayed as 0.0<br />We can avoid the bug for now, but it should be looked at.<br /><br />regards,<br />Joris]]></description>
<dc:creator>jgillis</dc:creator>
<category>Bug Reports</category><pubDate>Mon, 03 Jan 2011 23:33:21 +0000</pubDate></item>
<item>
<guid>http://forum.acadotoolkit.org/read.php?5,193,193#msg-193</guid>
<title>Constraints implementation (1 reply)</title><link>http://forum.acadotoolkit.org/read.php?5,193,193#msg-193</link><description><![CDATA[ Hello all,<br /><br />My name is Fernando, this is my first post here. Thanks a lot for your software, and your effort.<br /><br />I have a question about how the constraints are implemented. If I have a constraint of the type f(y,x,t)-limitmax &lt; 0 (limitmax is a number, and f(y,x,t) a expression that depends on the states,algebraic and/or control variables), in an OCP problem, which is the constraint value what is sent to the NLP solver, i.e, is the maximum of that difference f(y,x,t)-limitmax (when it is greater than zero) in the integration? is the area of the integration in which f is greater than limitmax, etc??<br /><br />Thanks in advance!!<br /><br />Greetings<br /><br />Fernando]]></description>
<dc:creator>ferqtpo</dc:creator>
<category>General Help</category><pubDate>Mon, 17 Jan 2011 09:50:26 +0000</pubDate></item>
<item>
<guid>http://forum.acadotoolkit.org/read.php?8,192,192#msg-192</guid>
<title>single shooting (no replies)</title><link>http://forum.acadotoolkit.org/read.php?8,192,192#msg-192</link><description><![CDATA[ Hi,<br /><br />I have installed 1.0.2367beta release, compiled the Matlab interface, and run the package successfully.<br /><br />I was trying to set the discretization mode to single shooting using<br /><br />algo=acado.OptimizationAlgorithm(ocp);<br />algo.set('DISCRETIZATION_TYPE','SINGLE_SHOOTING');<br /><br />but received same results.<br /><br />Is single shooting supported in this release?<br /><br />msz]]></description>
<dc:creator>msz</dc:creator>
<category>General Help</category><pubDate>Tue, 21 Dec 2010 07:58:13 +0000</pubDate></item>
<item>
<guid>http://forum.acadotoolkit.org/read.php?5,186,186#msg-186</guid>
<title>setting decomposition (no replies)</title><link>http://forum.acadotoolkit.org/read.php?5,186,186#msg-186</link><description><![CDATA[ Is it possible to set Cholesky decomposition? I have NLP problem and in each iterate of SQP i would like to apply Cholesky decomposition while solving QP problem by active-set method. I have no idea how to do that. Anyone can help me?]]></description>
<dc:creator>ukasz</dc:creator>
<category>General Help</category><pubDate>Mon, 13 Dec 2010 01:10:03 +0000</pubDate></item>
<item>
<guid>http://forum.acadotoolkit.org/read.php?5,183,183#msg-183</guid>
<title>The use of INTERMEDIATESTATES (2 replies)</title><link>http://forum.acadotoolkit.org/read.php?5,183,183#msg-183</link><description><![CDATA[ Hi,<br /><br />I would like to use Intermediate states to generate a trajectory with fixed points between start end end positions.<br /><br />For example in 2D : calculation of optimal path (with dynamics as constrains and minimize to time)<br /><br />START point = (1,1)<br />Intermediate point = (5,5) No time specified when the trajectory should pass this point !<br />END point = (8,11)<br /><br />How can I implement this extra constrain ? Should i use IntermediateState and how should i initialize it ?<br /><br />Thanks a lot !<br /><br />Jonas]]></description>
<dc:creator>Jonas</dc:creator>
<category>General Help</category><pubDate>Sun, 19 Dec 2010 12:04:52 +0000</pubDate></item>
<item>
<guid>http://forum.acadotoolkit.org/read.php?5,181,181#msg-181</guid>
<title>Function x^4 (1 reply)</title><link>http://forum.acadotoolkit.org/read.php?5,181,181#msg-181</link><description><![CDATA[ hello,<br /><br />Is there a function available to get a power of x , like x^4 or x^5 ... .<br /><br />thanks]]></description>
<dc:creator>Jonas</dc:creator>
<category>General Help</category><pubDate>Fri, 26 Nov 2010 23:22:09 +0000</pubDate></item>
<item>
<guid>http://forum.acadotoolkit.org/read.php?5,173,173#msg-173</guid>
<title>Is it possible to store all the differential states at each step of the integrator? (3 replies)</title><link>http://forum.acadotoolkit.org/read.php?5,173,173#msg-173</link><description><![CDATA[ I want to store all the values of the differential states of my ODE's system at each step of the integrator, so that I can afterwards print them in gnuplot.<br /><br />My integration is not discretized, and I am using the RK45.<br /><br />Actually I am using:<br /><br />VariablesGrid differentialStates;<br />integrator.getX( differentialStates );<br /><br />and:<br /><br />VariablesGrid difstates;<br />integrator.getAll(LOG_DIFFERENTIAL_STATES, difstates);<br /><br />The first gives me back only the differential states at the end, and the second gives me an error.<br /><br />any suggestion?]]></description>
<dc:creator>Mattia</dc:creator>
<category>General Help</category><pubDate>Fri, 26 Nov 2010 12:31:36 +0000</pubDate></item>
<item>
<guid>http://forum.acadotoolkit.org/read.php?5,166,166#msg-166</guid>
<title>Problem with two ACADO problems in one file (2 replies)</title><link>http://forum.acadotoolkit.org/read.php?5,166,166#msg-166</link><description><![CDATA[ Hi,<br /><br />in a larger project, I have separate pieces, a controller and a system (which later might become a real system).<br /><br />I have modeled both in ACADO, the controller is a solved OCP and the system is a DynamicalEquation in a Process.<br /><br />Both are in independent C++ functions (in their own files) and called on their own, they work totally fine.<br /><br />However, if I execute both functions, the Process will no longer work, because for some reason it believes that the DynamicalSystem is larger than it actually is (specifically the number of controls is wrong).<br /><br />If have created a small and heavily simplified test file which illustrates the problem (from the simple_ocp.cpp and the process/getting_started.cpp from the examples folder). The main() function is calling the controller() and the simulate_system(), both independent ACADO problems. If I just execute one of the functions (by commenting out the other one in the main() function), everything is fine.<br />However, if I execute both, the simulation of the process will no longer work, because the Process in simulate_system() suddenly believes that it has two controls. (See line 66 which results in the output &quot;PROBLEM: Controls: 2&quot;, although there's only one control in the Process/function!)<br /><br />What am I doing wrong here?<br />I would expect that the problems (as they are running in different functions) will not interfere with each other, but it seems as if there are some global variables that are used in both functions?<br />Do I need to reset those somehow?<br /><br />Thanks a lot for looking into this!<br />Best wishes,<br />Tobias<br /><br />The file:<br /><pre class="bbcode">
// file &quot;test.cpp&quot;

#include &lt;acado_toolkit.hpp&gt;

// Header
void controller();
void simulate_system();

// MAIN
int main(){
    controller();
    simulate_system();
    return 0;
}

/*********************************************************************/
void controller() {

    USING_NAMESPACE_ACADO

    DifferentialState        s, v, m    ;     // the differential states
    Control                  u          ;     // the control input u
    Parameter                T          ;     // the time horizon T
    DifferentialEquation     f_1( 0.0, T );     // the differential equation
    f_1 &lt;&lt; dot(s) == v;                         // an implementation
    f_1 &lt;&lt; dot(v) == (u-0.2*v*v)/m;             // of the model equations
    f_1 &lt;&lt; dot(m) == -0.01*u*u;                 // for the rocket.

    OCP ocp( 0.0, T );                        // time horizon of the OCP: [0,T]
    ocp.minimizeMayerTerm( T );               // the time T should be optimized
    ocp.subjectTo( f_1                 );     // minimize T s.t. the model,
    ocp.subjectTo( AT_START, s ==  0.0 );     // the initial values for s,
    ocp.subjectTo( AT_START, v ==  0.0 );     // v,
    ocp.subjectTo( AT_START, m ==  1.0 );     // and m,

    ocp.subjectTo( AT_END  , s == 10.0 );     // the terminal constraints for s
    ocp.subjectTo( AT_END  , v ==  0.0 );     // and v,

    ocp.subjectTo( -0.1 &lt;= v &lt;=  1.7   );     // as well as the bounds on v
    ocp.subjectTo( -1.1 &lt;= u &lt;=  1.1   );     // the control input u,
    ocp.subjectTo(  5.0 &lt;= T &lt;= 15.0   );     // and the time horizon T.

    OptimizationAlgorithm algorithm(ocp);     // the optimization algorithm
    algorithm.solve();                        // solves the problem.
    std::cout &lt;&lt; &quot;Controller done.&quot; &lt;&lt; std::endl;
}

/*********************************************************************/
void simulate_system() {
    USING_NAMESPACE_ACADO

    DifferentialState xB, xW, vB, vW;
    Control F;

    DifferentialEquation f_2;
    f_2 &lt;&lt; dot(xB) == vB;
    f_2 &lt;&lt; dot(xW) == vW;
    f_2 &lt;&lt; dot(vB) == ( -20000.0*xB + 20000.0*xW + F );
    f_2 &lt;&lt; dot(vW) == ( -200000.0*xB - (200000.0+20000.0)*xW - F ) / 50.0;

    DynamicSystem dynSys( f_2 );
    Process myProcess;
    myProcess.setDynamicSystem( dynSys, INT_RK45 );

    // This should NOT print &quot;2&quot;!
    std::cout &lt;&lt; &quot;ATTENTION: Controls: &quot; &lt;&lt; myProcess.getNU() &lt;&lt; std::endl;

    Vector x0( 4 );
    x0.setZero();
    VariablesGrid u( 1,0.0,1.0,6 );
    u.setZero();
    myProcess.init( 0.0, x0 );
    myProcess.run( u );
    std::cout &lt;&lt; &quot;Simulation done.&quot; &lt;&lt; std::endl;
}

</pre>]]></description>
<dc:creator>Tobias</dc:creator>
<category>General Help</category><pubDate>Wed, 24 Nov 2010 08:59:32 +0000</pubDate></item>
<item>
<guid>http://forum.acadotoolkit.org/read.php?1,163,163#msg-163</guid>
<title>Changelog (1 reply)</title><link>http://forum.acadotoolkit.org/read.php?1,163,163#msg-163</link><description><![CDATA[ Hi,<br /><br />today I noticed that a new version 1.0.2367beta was released.<br /><br />Unfortunately I could not find any hints on the changes that were made, like fixed bugs or new features.<br /><br />Is there a changelog available somewhere?<br />If not (which I can completely understand, as it is quite some extra work), is it possible to access the underlying SVN repository to read the commit messages, or is the repository private?<br /><br />Thanks a lot!<br />Best wishes,<br />Tobias]]></description>
<dc:creator>Tobias</dc:creator>
<category>Announcements / Releases</category><pubDate>Fri, 19 Nov 2010 15:17:04 +0000</pubDate></item>
<item>
<guid>http://forum.acadotoolkit.org/read.php?9,161,161#msg-161</guid>
<title>Error compiling matlab interface for ACADOtoolkit-1.0.2367beta (6 replies)</title><link>http://forum.acadotoolkit.org/read.php?9,161,161#msg-161</link><description><![CDATA[ I get the following error compiling in Matlab 2010b on Win32 XP machine:<br /><br /><pre class="bbcode">
&gt;&gt; make clean all
Cleaning up all ACADO files... 
Removing ACADO folders from Matlab path... 
Clean completed. 
Making ACADO... 

....................
....................
....................
....................
....................
....................
....................
....................
....................ACADOintegrators.cpp 
E:\HELICO~1\MODEL\ACADO\ACADOT~1.236\INTERF~1\MATLAB\..\..\INCLUDE\acado/variables_grid/matrix_variables_grid.ipp(417) : warning C4390: ';' : empty controlled statement found; is this the intent? 
E:\HELICO~1\MODEL\ACADO\ACADOT~1.236\INTERF~1\MATLAB\..\..\INCLUDE\acado/utils/matlab_acado_utils.hpp(132) : warning C4018: '&lt;' : signed/unsigned mismatch 
E:\HELICO~1\MODEL\ACADO\ACADOT~1.236\INTERF~1\MATLAB\..\..\INCLUDE\acado/utils/matlab_acado_utils.hpp(134) : warning C4018: '&lt;' : signed/unsigned mismatch 
INTEGR~1\ACADOintegrators.cpp(72) : error C3861: 'clearAllStaticCounters': identifier not found 
INTEGR~1\ACADOintegrators.cpp(1400) : error C3861: 'clearAllStaticCounters': identifier not found 
INTEGR~1\ACADOintegrators.cpp(1529) : warning C4018: '&lt;' : signed/unsigned mismatch 
INTEGR~1\ACADOintegrators.cpp(1581) : warning C4018: '&lt;' : signed/unsigned mismatch 
INTEGR~1\ACADOintegrators.cpp(1724) : warning C4018: '&lt;' : signed/unsigned mismatch 
INTEGR~1\ACADOintegrators.cpp(1746) : warning C4018: '&lt;' : signed/unsigned mismatch 
INTEGR~1\ACADOintegrators.cpp(1848) : warning C4018: '&lt;' : signed/unsigned mismatch 
INTEGR~1\ACADOintegrators.cpp(1870) : warning C4018: '&lt;' : signed/unsigned mismatch 
INTEGR~1\ACADOintegrators.cpp(1957) : warning C4018: '&lt;' : signed/unsigned mismatch 
INTEGR~1\ACADOintegrators.cpp(1959) : warning C4018: '&lt;' : signed/unsigned mismatch 
INTEGR~1\ACADOintegrators.cpp(1974) : warning C4018: '&lt;' : signed/unsigned mismatch 
INTEGR~1\ACADOintegrators.cpp(1976) : warning C4018: '&lt;' : signed/unsigned mismatch 
 
  E:\MATLAB\R2010B\BIN\MEX.PL: Error: Compile of 'INTEGR~1\ACADOintegrators.cpp' failed. 
 
??? Error using ==&gt; mex at 208
Unable to complete successfully.

Error in ==&gt; makehelper&gt;execute_command at 260
    eval (s) ;

Error in ==&gt; makehelper at 198
                counter = execute_command (cmd, counter, DEBUG, SRCMEX{i}) ;

Error in ==&gt; make at 80
    makehelper(0, {}, varargin);
 
&gt;&gt;
</pre>]]></description>
<dc:creator>alc</dc:creator>
<category>Bug Reports</category><pubDate>Mon, 22 Nov 2010 12:31:36 +0000</pubDate></item>
<item>
<guid>http://forum.acadotoolkit.org/read.php?13,158,158#msg-158</guid>
<title>gnuplot fix in OSX (1 reply)</title><link>http://forum.acadotoolkit.org/read.php?13,158,158#msg-158</link><description><![CDATA[ I've been having trouble getting gnuplot to work and I finally fixed the problem. (This may belong in the FAQ but I think only moderators have access to that.)<br /><br />Anyways, the problem is that aqua has problems on Snow Leopard, and aqua is gnuplot's default terminal. If you switch gnuplot to the x11 terminal (make sure x11 is installed) it should work fine.<br /><br />To do this, just set the GNUTERM environment variable to x11. I did this by adding<br /><br /><pre class="bbcode">
export GNUTERM=x11</pre><br />to my ~/.zshrc.local (If you're using bash, add it to your ~/.bashrc)]]></description>
<dc:creator>ghorn</dc:creator>
<category>FAQ</category><pubDate>Tue, 16 Nov 2010 19:08:10 +0000</pubDate></item>
<item>
<guid>http://forum.acadotoolkit.org/read.php?5,155,155#msg-155</guid>
<title>Compiling ACADO using VC (1 reply)</title><link>http://forum.acadotoolkit.org/read.php?5,155,155#msg-155</link><description><![CDATA[ Hi there,<br /><br />I was wondering if it is possible to compile ACADO using the VC compiler (VC2005, VC2008 doesnt really matter). I noticed in the makefiles (include.mk) that it is possible to set the compiler to GNU or VC.<br />I tried switching to VC and compile with nmake.... but had no success.<br /><br />Regards,<br />Paul McGahan]]></description>
<dc:creator>EllaGuru</dc:creator>
<category>General Help</category><pubDate>Fri, 19 Nov 2010 15:20:19 +0000</pubDate></item>
<item>
<guid>http://forum.acadotoolkit.org/read.php?9,145,145#msg-145</guid>
<title>installation ACADOtoolkit_1_0_2313_beta in Win7 64bit (3 replies)</title><link>http://forum.acadotoolkit.org/read.php?9,145,145#msg-145</link><description><![CDATA[ Hi<br />I am trying to install ACADOtoolkit_1_0_2313_beta in Win7 64bit with Matlab 2010a(64bit).<br /><br />But I got error during &quot;make clean all&quot; process<br /><br />Is that because my Window and Matlab are 64bit ver?<br /><br /><br />-----------------------------------------------------------------------------------<br /><br />Cleaning up all ACADO files...<br />Removing ACADO folders from Matlab path...<br />Clean completed.<br />Making ACADO...<br /><br />. Error: Could not find the compiler &quot;cl&quot; on the DOS path.<br />Use mex -setup to configure your environment properly.<br /><br /><br />C:\PROGRA~1\MATLAB\R2010A\BIN\MEX.PL: Error: Unable to locate compiler.<br /><br />??? Error using ==&gt; mex at 222<br />Unable to complete successfully.<br /><br />Error in ==&gt; makehelper&gt;execute_command at 260<br />eval (s) ;<br /><br />Error in ==&gt; makehelper at 184<br />counter = execute_command (cmd, counter, DEBUG, SRC{i})<br />;<br /><br />Error in ==&gt; make at 80<br />makehelper(0, {}, varargin);]]></description>
<dc:creator>sunahn</dc:creator>
<category>Bug Reports</category><pubDate>Sat, 16 Oct 2010 08:38:34 +0000</pubDate></item>
<item>
<guid>http://forum.acadotoolkit.org/read.php?8,139,139#msg-139</guid>
<title>Additional common functions (2 replies)</title><link>http://forum.acadotoolkit.org/read.php?8,139,139#msg-139</link><description><![CDATA[ Hi,<br /><br />in my differential equations I'd like to use different simple functions like <pre class="bbcode">abs</pre>, <pre class="bbcode">floor</pre>, <pre class="bbcode">ceil</pre>, <pre class="bbcode">round</pre> and so on.<br />Those are available in Matlab, and as far as I know also in C++ (if one maybe loads an extra lib).<br />As it seems however, they are not usable in ACADO, as I get an error message, when trying to compile my m-file to a mex-file (&quot;Undefined function or method '...' for input arguments of type 'acado.DifferentialState'.&quot;)<br /><br />I tried adding them by copying and adjusting one of the other folders in &lt;acado&gt;/interfaces/matlab/acado/packages/+acado.<br /><br />Unfortunately that does not seem to be enough. What other steps do I need to take to add the mentioned functions?<br /><br />Thanks a lot!<br />Tobias]]></description>
<dc:creator>Tobias</dc:creator>
<category>General Help</category><pubDate>Tue, 26 Oct 2010 10:12:37 +0000</pubDate></item>
<item>
<guid>http://forum.acadotoolkit.org/read.php?6,137,137#msg-137</guid>
<title>Wrong Eigenvalues (no replies)</title><link>http://forum.acadotoolkit.org/read.php?6,137,137#msg-137</link><description><![CDATA[ I was trying to use the written function getEigenvalues() for the Matrices as defined in ACADO.<br />For example for the 2 by 2-matrix: 1 2<br />3 -7, ACADO obtains 1.47214 en -7.47214 while the actual values are<br />-7.6904 and 1.6904.<br />With kind regards.]]></description>
<dc:creator>DTelen</dc:creator>
<category>Bug Reports</category><pubDate>Mon, 04 Oct 2010 13:07:16 +0000</pubDate></item>
<item>
<guid>http://forum.acadotoolkit.org/read.php?5,134,134#msg-134</guid>
<title>Order of state variables (5 replies)</title><link>http://forum.acadotoolkit.org/read.php?5,134,134#msg-134</link><description><![CDATA[ How is the order of differential state varibales determined in ACADO?<br /><br />I experienced some problems when integrating a large model. The inital values where kind of mixed up.<br /><br />To further specify my question, consider this example:<br /><br /><pre class="bbcode">
 DifferentialState x1, x2;

 DifferentialEquation f;

 f &lt;&lt; dot(x1) == .... ;
 f &lt;&lt; dot(x2) == ... ;</pre><br />Now, if I want to give intial values to the integration algorithms how do I know which state is the first one, and wich is the second one? I thought this is implicitly declared by the order of equations assigned to f. But in my model (not the one above) this order is apparently changed by ACADO.]]></description>
<dc:creator>Manuel</dc:creator>
<category>General Help</category><pubDate>Tue, 12 Oct 2010 07:08:15 +0000</pubDate></item>
<item>
<guid>http://forum.acadotoolkit.org/read.php?1,130,130#msg-130</guid>
<title>Issues with spambots on forum (no replies)</title><link>http://forum.acadotoolkit.org/read.php?1,130,130#msg-130</link><description><![CDATA[ Due to some issues with spam we disabled anonymous reactions. We now require registration before you can respond to a message or when you want to post a new thread.<br /><br />Sorry for the inconvenience!]]></description>
<dc:creator>David</dc:creator>
<category>Announcements / Releases</category><pubDate>Tue, 14 Sep 2010 09:23:41 +0000</pubDate></item>
<item>
<guid>http://forum.acadotoolkit.org/read.php?8,117,117#msg-117</guid>
<title>Older matlab versions? (1 reply)</title><link>http://forum.acadotoolkit.org/read.php?8,117,117#msg-117</link><description><![CDATA[ I have already successfully worked with ACADO on Matlab 2008a, which is<br />the minimum requirement for ACADO, according to your website.<br /><br />Now, I'll unfortunately have to switch to an older computer where I only<br />have Matlab 7.1 available, and don't have a chance to get a new version<br />(financial reasons for the new licenses...).<br /><br />So, I'm wondering: What is the reason that Matlab 2008a is required? Is<br />the reason more on the Matlab side (i.e. with mex file integration or<br />something like that), or is it more of a C++ problem?]]></description>
<dc:creator>David</dc:creator>
<category>General Help</category><pubDate>Mon, 13 Sep 2010 09:51:12 +0000</pubDate></item>
<item>
<guid>http://forum.acadotoolkit.org/read.php?9,112,112#msg-112</guid>
<title>Error while compiling ACADO interface for Matlab (2 replies)</title><link>http://forum.acadotoolkit.org/read.php?9,112,112#msg-112</link><description><![CDATA[ Hello,<br /><br />I followed all the instructions to install ACADO interface for Matlab, on a 64-bit computer with Windows 7, Visual Studio 2008 Express Edition and &quot;x64 compilers and tools&quot; and Microsoft windows SDK installed in addition.<br />Here is the error in the final steps...<br /><br /><br /><img src="http://i1021.photobucket.com/albums/af338/autoto/code%20errors/Making_ACADO_error_02.png" class="bbcode" border="0" /><br /><br /><br />I hope it could help.<br />How do you think ?]]></description>
<dc:creator>Stefan Antonov</dc:creator>
<category>Bug Reports</category><pubDate>Sat, 04 Sep 2010 06:26:31 +0000</pubDate></item>
<item>
<guid>http://forum.acadotoolkit.org/read.php?9,111,111#msg-111</guid>
<title>Installation of 1.0.2292beta (1 reply)</title><link>http://forum.acadotoolkit.org/read.php?9,111,111#msg-111</link><description><![CDATA[ Hi,<br /><br />first of all, thanks for the great toolkit!<br /><br />I just saw the new update to 1.0.2292beta, but have trouble installing it (i.e. the MATLAB interface).<br /><br />A few details first:<br />- Windows XP Prof. SP3 with Matlab R2008a (7.6.0)<br />- Microsoft Visual C++ 2008 installed in C:\Program Files\Microsoft Visual Studio 9.0<br /><br />Installation of the previous version (1.0.1986beta) went absolutely flawless and was working fine.<br /><br />I now tried the update:<br />- Removed entire &lt;ACADOtoolkit-inst-dir&gt;<br />- Unpacked new zip file there.<br />- Followed installation procedure from <a href="http://acadotoolkit.org/matlab/gettingstarted.php" rel="nofollow" >http://acadotoolkit.org/matlab/gettingstarted.php</a><br />- &quot;mex -setup;&quot; went fine, selected correct compiler (Microsoft Visual C++ 2008)<br />- running &quot;make clean all;&quot; then starts, but at some point stops with this output:<br /><br /><pre class="bbcode">
&gt;&gt; make clean all;
Cleaning up all ACADO files... 
Removing ACADO folders from Matlab path... 
Clean completed. 
Making ACADO... 

....................
....................
....................
....................
..................lsq_term.cpp 
C:\ACADOtoolkit\src\objective\lsq_term.cpp(231) : error C2228: left of '.addMessage' must have class/struct/union 
        type is ''unknown-type'' 
C:\ACADOtoolkit\src\objective\lsq_term.cpp(231) : error C3861: 'ASSERT_RETURN': identifier not found 
 
  C:\PROGRA~1\MATLAB\R2008A\BIN\MEX.PL: Error: Compile of '..\..\src\objective\lsq_term.cpp' failed. 
 
??? Error using ==&gt; mex at 207
Unable to complete successfully.

Error in ==&gt; makehelper&gt;execute_command at 260
    eval (s) ;

Error in ==&gt; makehelper at 184
                counter = execute_command (cmd, counter, DEBUG, SRC{i}) ;

Error in ==&gt; make at 80
    makehelper(0, {}, varargin);</pre><br />As 1.0.1986beta worked fine, I suspect a bug in the new version? Or is the Matlab interface to the new version not yet ready? Your help is greatly appreciated! Thanks!<br /><br />Best wishes,<br />Tobias]]></description>
<dc:creator>Tobias</dc:creator>
<category>Bug Reports</category><pubDate>Thu, 02 Sep 2010 11:06:44 +0000</pubDate></item>
<item>
<guid>http://forum.acadotoolkit.org/read.php?7,109,109#msg-109</guid>
<title>Providing scaling information to ACADO (no replies)</title><link>http://forum.acadotoolkit.org/read.php?7,109,109#msg-109</link><description><![CDATA[ 1) Add the possibility to allow the user to provide scaling information to ACADO.<br />2) Possibly add an auto-scaling routine to ACADO.]]></description>
<dc:creator>ferreau</dc:creator>
<category>Feature Requests</category><pubDate>Mon, 30 Aug 2010 19:37:02 +0000</pubDate></item>
<item>
<guid>http://forum.acadotoolkit.org/read.php?5,103,103#msg-103</guid>
<title>Passing user data to external c functions (1 reply)</title><link>http://forum.acadotoolkit.org/read.php?5,103,103#msg-103</link><description><![CDATA[ I would like to pass some user data to a linked c function. In your example &quot;linking_c_functions2&quot; it looks like that there is a possibility to do this:<br /><pre class="bbcode">
void my_function( double *x_, double *f, void *userData ){

    double          t =  x_[ 0];    // the time
    double          x =  x_[ 1];    // the differential state

    f[0] = x*x + t;
    f[1] = t;
}</pre>
How do I use this <b>void *userData</b> argument in ACADO? I tried a couple of things. But it didn't work.]]></description>
<dc:creator>Manuel</dc:creator>
<category>General Help</category><pubDate>Mon, 30 Aug 2010 19:56:19 +0000</pubDate></item>
<item>
<guid>http://forum.acadotoolkit.org/read.php?6,95,95#msg-95</guid>
<title>&quot;examples/ocp/getting_started&quot; fails (1 reply)</title><link>http://forum.acadotoolkit.org/read.php?6,95,95#msg-95</link><description><![CDATA[ If I run the example &quot;ocp/getting_started&quot; I get an assertion after the first iteration:<br /><br /><blockquote class="bbcode"><div><small>Quote<br/></small><strong></strong><br/>
1: KKT tolerance = 4.597e-02 line search parameter = 1.000e+00 objective value = 1.3769e+00 merit function value = 1.3778e+00<br />assertion &quot;( getNumRows( ) == arg.getNumRows( ) ) &amp;&amp; ( getNumCols( ) == arg.getNumCols( ) )&quot; failed: file &quot;../../include/acado/matrix_vector/matrix.ipp&quot;, line 65, function: ACADO::Matrix ACADO::Matrix::operator+(const ACADO::Matrix&amp;) const<br />Aborted (core dumped)</div></blockquote><br />The problem can be resolved by making the differential equation explicit:<br /><pre class="bbcode">
//f &lt;&lt; -dot(x) -x*x + p + u*u + w;
f &lt;&lt; dot(x) == -x*x + p + u*u + w;	
</pre>]]></description>
<dc:creator>Manuel</dc:creator>
<category>Bug Reports</category><pubDate>Tue, 03 Aug 2010 10:06:50 +0000</pubDate></item>
<item>
<guid>http://forum.acadotoolkit.org/read.php?8,94,94#msg-94</guid>
<title>simulating a control profile (3 replies)</title><link>http://forum.acadotoolkit.org/read.php?8,94,94#msg-94</link><description><![CDATA[ Hello,<br /><br />I would like to simulate a specific control profile. Unfortunately, I cannot specify the control profile as<br /><pre class="bbcode">
settings.u = [0 5 10; 450 100 30];</pre>
wherein the 1st row contains the time points at which the corresponding control value in the 2nd row is valid. Is it possible to integrate a profile with ACADO or do I have to call the integrator in a for-loop over the time points?<br /><br />Best regards,<br />Niko]]></description>
<dc:creator>Niko</dc:creator>
<category>General Help</category><pubDate>Fri, 06 Aug 2010 10:25:05 +0000</pubDate></item>
</channel>
</rss>
