<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Numerical Optimization Forum]]></title>
		<link>http://forum.openopt.org/index.php</link>
		<description><![CDATA[The most recent topics at Numerical Optimization Forum.]]></description>
		<lastBuildDate>Sat, 12 May 2012 21:18:31 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Linear programming]]></title>
			<link>http://forum.openopt.org/viewtopic.php?id=569&amp;action=new</link>
			<description><![CDATA[<p>Hi,</p><p>&nbsp; &nbsp;I am trying to solve a problem of the form:&nbsp; f(x) - lambda||x||1 (this term is the first norm of x). This in itself is not a linear program since lamba||x|| term makes in non-linear. Can anyone suggest how I could solve this? Ideally I would like to convert this into a linear program and use a LP solver. But, I can&#039;t seem to find a way to do that. </p><p>&nbsp; Any help or advise will be greatly appreciated.</p><p>Regards,<br />Sudhamsh.</p>]]></description>
			<author><![CDATA[dummy@example.com (Reddy)]]></author>
			<pubDate>Sat, 12 May 2012 21:18:31 +0000</pubDate>
			<guid>http://forum.openopt.org/viewtopic.php?id=569&amp;action=new</guid>
		</item>
		<item>
			<title><![CDATA[DerApproximator has been ported to PyPy]]></title>
			<link>http://forum.openopt.org/viewtopic.php?id=568&amp;action=new</link>
			<description><![CDATA[<p><a href="http://openopt.org/DerApproximator">DerApproximator</a> now works with <a href="http://pypy.org">PyPy</a>, the required code changes have been committed to subversion repository. </p><p>See a small benchmark results <a href="http://pastebin.com/CJHi8EBG">here</a></p><p>So, for vectorized functions CPython currently may work faster, because SSE are not implemented properly in PyPy yet.</p><p>According to a PyPy developer proposition I have filed a <a href="https://bugs.pypy.org/issue1140">bugreport</a> , but they will go for it after SSE branch.</p><p>These 211 elements of 544 are already present in PyPy (obtained via len(dir(numpy)), however, some of the items are modules):</p><p>False_ Inf Infinity NAN NINF NZERO NaN PINF PZERO True_ abs absolute add alen all alltrue amax amin any arange arccos arccosh arcsin arcsinh arctan arctan2 arctanh argmax argmin argsort around array array2string array_equal array_repr array_str arrayprint asanyarray asarray average base_repr bitwise_and bitwise_not bitwise_or bitwise_xor bool8 bool_ byte ceil character choose clip compress concatenate copysign core cos cosh count_reduce_items cumprod cumproduct cumsum deg2rad degrees diagonal divide dot dtype e empty equal exp exp2 expm1 fabs flatiter flexible float32 float64 float_ floating floor floor_divide fmax fmin fmod fromnumeric fromstring generic greater greater_equal identity inexact inf infty int16 int32 int64 int8 int_ intc integer intp invert isfinite isinf isna isnan isneginf isposinf left_shift less less_equal little_endian log log10 log1p log2 logaddexp logaddexp2 logical_and logical_not logical_or logical_xor longlong math max maximum mean min minimum multiarray multiply nan ndarray ndim negative newaxis nonzero not_equal number numeric ones pi power prod product ptp put pypy rad2deg radians rank ravel reciprocal repeat reshape resize right_shift round_ searchsorted set_string_function shape short sign signbit signedinteger sin sinh size sometrue sort sqrt square squeeze std str_ subtract sum swapaxes sys take tan tanh trace transpose true_divide trunc typeinfo ubyte ufunc uint16 uint32 uint64 uint8 uintc uintp ulonglong unicode_ unsignedinteger ushort var void where zeros</p><p>And for OpenOpt / FuncDesigner mostly these functions are missing in PyPy yet:</p><p>array_equal nanargmax hstack diag nanmin atleast_1d asscalar eye zeros_like tile empty_like array_equiv asfarray nanargmin vstack nansum copy diff cross flipud isscalar insert nanmax</p>]]></description>
			<author><![CDATA[dummy@example.com (Dmitrey)]]></author>
			<pubDate>Tue, 08 May 2012 12:35:04 +0000</pubDate>
			<guid>http://forum.openopt.org/viewtopic.php?id=568&amp;action=new</guid>
		</item>
		<item>
			<title><![CDATA[OpenOpt in Top-10 wikipedia most viewed optimization software]]></title>
			<link>http://forum.openopt.org/viewtopic.php?id=567&amp;action=new</link>
			<description><![CDATA[<p><a href="http://openopt.org/">OpenOpt</a> in top-10 wikipedia most viewed mathematical optimization software entries from 38 taken into account in the category.</p><p>From the top-10 7 packages are proprietary, MPS is format (not software), and only 2 are free: GLPK (only linear problems, LP and MILP), and OpenOpt.</p><p>And OpenOpt is the only one package from the Top-10 with permissive license (BSD), that allows using it in any software, possibly commercial closed-source one.</p><p>See <a href="http://top-topics.thefullwiki.org/Mathematical_optimization_software">http://top-topics.thefullwiki.org/Mathe &#133; n_software</a></p><p>and local snapshots taken today: </p><p>&nbsp; &nbsp; Topic &nbsp; &nbsp; Wikipedia&nbsp; topic views (AFAIK for 2 weeks)<br />1 &nbsp; &nbsp; Mathematica &nbsp; &nbsp; 1,279 &nbsp; &nbsp; <br />2 &nbsp; &nbsp; CPLEX &nbsp; &nbsp; 126 &nbsp; &nbsp; <br />3 &nbsp; &nbsp; MPS (format) &nbsp; &nbsp; 96 &nbsp; &nbsp; <br />4 &nbsp; &nbsp; AMPL &nbsp; &nbsp; 89 &nbsp; &nbsp; <br />5 &nbsp; &nbsp; General Algebraic Modeling System &nbsp; &nbsp; 89 &nbsp; &nbsp; <br />6 &nbsp; &nbsp; GAUSS (software) &nbsp; &nbsp; 67 &nbsp; &nbsp; <br />7 &nbsp; &nbsp; GNU Linear Programming Kit &nbsp; &nbsp; 66 &nbsp; &nbsp; <br />8 &nbsp; &nbsp; MapleSim &nbsp; &nbsp; 61 &nbsp; &nbsp; <br />9 &nbsp; &nbsp; APMonitor &nbsp; &nbsp; 60 &nbsp; &nbsp; <br />10 &nbsp; &nbsp; OpenOpt &nbsp; &nbsp; 48 &nbsp; &nbsp; <br />11 &nbsp; &nbsp; ASCEND &nbsp; &nbsp; 43 &nbsp; &nbsp; <br />12 &nbsp; &nbsp; Concorde TSP Solver &nbsp; &nbsp; 29 &nbsp; &nbsp; <br />13 &nbsp; &nbsp; CUTEr &nbsp; &nbsp; 27 &nbsp; &nbsp; <br />14 &nbsp; &nbsp; IOSO &nbsp; &nbsp; 23 &nbsp; &nbsp; <br />15 &nbsp; &nbsp; SNOPT &nbsp; &nbsp; 20 &nbsp; &nbsp; <br />16 &nbsp; &nbsp; DIDO (optimal control) &nbsp; &nbsp; 20 &nbsp; &nbsp; <br />17 &nbsp; &nbsp; NMath &nbsp; &nbsp; 20 &nbsp; &nbsp; <br />18 &nbsp; &nbsp; TOMLAB &nbsp; &nbsp; 19 &nbsp; &nbsp; <br />19 &nbsp; &nbsp; ASTOS &nbsp; &nbsp; 18 &nbsp; &nbsp; <br />20 &nbsp; &nbsp; PROPT &nbsp; &nbsp; 18 &nbsp; &nbsp; <br />21 &nbsp; &nbsp; MCSim &nbsp; &nbsp; 17 &nbsp; &nbsp; <br />22 &nbsp; &nbsp; FortSP &nbsp; &nbsp; 16 &nbsp; &nbsp; <br />23 &nbsp; &nbsp; IPOPT &nbsp; &nbsp; 15 &nbsp; &nbsp; <br />24 &nbsp; &nbsp; KNITRO &nbsp; &nbsp; 15 &nbsp; &nbsp; <br />25 &nbsp; &nbsp; Nl (format) &nbsp; &nbsp; 14 &nbsp; &nbsp; <br />26 &nbsp; &nbsp; MINTO &nbsp; &nbsp; 12 &nbsp; &nbsp; <br />27 &nbsp; &nbsp; OPL Development Studio &nbsp; &nbsp; 12 &nbsp; &nbsp; <br />28 &nbsp; &nbsp; Gurobi &nbsp; &nbsp; 11 &nbsp; &nbsp; <br />29 &nbsp; &nbsp; Investigative Optimization Library &nbsp; &nbsp; 10 &nbsp; &nbsp; <br />30 &nbsp; &nbsp; Inverse (program) &nbsp; &nbsp; 8 &nbsp; &nbsp; <br />31 &nbsp; &nbsp; Galahad library &nbsp; &nbsp; 7 &nbsp; &nbsp; <br />32 &nbsp; &nbsp; TOMNET &nbsp; &nbsp; 7 &nbsp; &nbsp; <br />33 &nbsp; &nbsp; TOMVIEW &nbsp; &nbsp; less than 5 views &nbsp; &nbsp; <br />34 &nbsp; &nbsp; FortMP &nbsp; &nbsp; less than 5 views &nbsp; &nbsp; <br />35 &nbsp; &nbsp; MINOS (optimization software) &nbsp; &nbsp; less than 5 views &nbsp; &nbsp; <br />36 &nbsp; &nbsp; PENOPT &nbsp; &nbsp; less than 5 views &nbsp; &nbsp; <br />37 &nbsp; &nbsp; TomSym &nbsp; &nbsp; less than 5 views &nbsp; &nbsp; <br />38 &nbsp; &nbsp; Madeline (software) &nbsp; &nbsp; less than 5 views &nbsp; &nbsp; </p><p><span class="postimg"><img src="http://openopt.org/images/3/33/opt_soft_trend.png" alt="rating" /></span></p>]]></description>
			<author><![CDATA[dummy@example.com (Dmitrey)]]></author>
			<pubDate>Fri, 04 May 2012 19:52:27 +0000</pubDate>
			<guid>http://forum.openopt.org/viewtopic.php?id=567&amp;action=new</guid>
		</item>
		<item>
			<title><![CDATA[Failed employment proposition]]></title>
			<link>http://forum.openopt.org/viewtopic.php?id=566&amp;action=new</link>
			<description><![CDATA[<p>I had a preliminary employment proposition from a financial corporation (that uses OpenOpt) to go to their USA department in New York, unfortunately, they informed me that situation has changed and chances of this are close to zero.</p>]]></description>
			<author><![CDATA[dummy@example.com (Dmitrey)]]></author>
			<pubDate>Tue, 01 May 2012 19:06:47 +0000</pubDate>
			<guid>http://forum.openopt.org/viewtopic.php?id=566&amp;action=new</guid>
		</item>
		<item>
			<title><![CDATA[IMPL with GLPK]]></title>
			<link>http://forum.openopt.org/viewtopic.php?id=565&amp;action=new</link>
			<description><![CDATA[<p>to be Ing Francisco Huerta, Universidad De los Andes, Santiago, Chile.</p><p>I&#039;m making a binary problem, i&#039;ve already installed CVOXPT with glpk for OpenOpt, Using Spyder IDE, on Windows 7 x64, and all works like a charm. But how do i do to call some specific glpk options, i want the sensitivity analysis, and to get more output from each point, cos its outputs like 3 points of 12800 or something, whatsoever this is my code:</p><p>import xlrd<br />from openopt import *<br />from numpy import *<br />#from cvxopt import *<br />wb = xlrd.open_workbook(&#039;datos.xls&#039;)<br />wb.sheet_names()</p><p>sh=wb.sheet_by_index(0)<br />m=[]<br />h=[]<br />p=[]<br />def chunks(l, inicio,largo):<br />&nbsp; &nbsp; return l[inicio:inicio+largo] </p><p>for rownum in range(80):#grupo 1<br />&nbsp; &nbsp; temp=sh.row_values(rownum+7)<br />&nbsp; &nbsp; m=m+chunks(temp, 8, 80)<br />&nbsp; &nbsp; #print m<br />&nbsp; &nbsp; h=h+chunks(temp, 92, 80)<br />&nbsp; &nbsp; <br />for rownum in range(673, 673+80):#maximo de hembras por perro<br />&nbsp; &nbsp; temp=sh.row_values(rownum)<br />&nbsp; &nbsp; p.append(temp[8])<br />&nbsp; &nbsp; #print p</p><p>#I=identity(80)<br />#lb = zeros(80**2*2)<br />#ub = ones(80**2*2)</p><p>#print ub<br />#print a[0]<br />#print I<br />def matriz(n):<br />&nbsp; &nbsp; #listoflists=[ [0]*4 ] *5<br />&nbsp; &nbsp; O=[ [0]*n**2*2 for y in range(n*3) ]<br />&nbsp; &nbsp;# print O<br />&nbsp; &nbsp; for x in range(n*2):<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for z in range(x*n,((x+1)*n)):<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; O[x].insert(z,1)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; O[x].pop(z+1)<br />&nbsp; &nbsp; for x in range (n):<br />&nbsp; &nbsp; &nbsp; &nbsp; for z in range(n):&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; O[n*2+x].insert((z)*n+x,1)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; O[n*2+x].pop((z)*n+x+1)<br />&nbsp; &nbsp; return O<br />I=matriz(80)<br />#print I<br />#print I<br />pp=[1]*160</p><p>f = m+h<br />A=I<br />b=p<br />print size(b)<br />b=p+pp<br />print size(b)</p><p>print size(f)<br />print size(I[0])<br />print size(I)<br />print size (b)<br />binVars=range(80**2*2)<br />print size(binVars)<br />#print intVars<br />#p = MILP(f, A=A, b=b, lb=lb, ub=ub, intVars=intVars, goal=&#039;max&#039;)<br />p = MILP(f=f, A=A, b=b, binVars=binVars, goal=&#039;max&#039;)<br />r=p.solve(&#039;glpk&#039;, iprint =-1, )<br />#r.glp_print_ranges<br />print &#039;objFunValue:&#039;, r.ff<br />print &#039;x_opt:&#039;, r.xf</p><p><strong>the output:</strong></p><p>GLPK Integer Optimizer, v4.47<br />240 rows, 12800 columns, 19200 non-zeros<br />12800 integer variables, all of which are binary<br />Preprocessing...<br />240 rows, 12800 columns, 19200 non-zeros<br />12800 integer variables, all of which are binary<br />Scaling...<br /> A: min|aij| = 1.000e+000&nbsp; max|aij| = 1.000e+000&nbsp; ratio = 1.000e+000<br />Problem data seem to be well scaled<br />Constructing initial basis...<br />Size of triangular part = 240<br />Solving LP relaxation...<br />GLPK Simplex Optimizer, v4.47<br />240 rows, 12800 columns, 19200 non-zeros<br />*&nbsp; &nbsp; &nbsp;0: obj = -6.660000000e+002&nbsp; infeas = 0.000e+000 (0)<br />*&nbsp; &nbsp;345: obj = -1.289800000e+004&nbsp; infeas = 0.000e+000 (0)<br />OPTIMAL SOLUTION FOUND<br />Integer optimization begins...<br />+&nbsp; &nbsp;345: mip =&nbsp; &nbsp; &nbsp;not found yet &gt;=&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -inf&nbsp; &nbsp; &nbsp; &nbsp; (1; 0)<br />+&nbsp; &nbsp;345: &gt;&gt;&gt;&gt;&gt; -1.289800000e+004 &gt;= -1.289800000e+004&nbsp; &nbsp;0.0% (1; 0)<br />+&nbsp; &nbsp;345: mip = -1.289800000e+004 &gt;=&nbsp; &nbsp; &nbsp;tree is empty&nbsp; &nbsp;0.0% (0; 1)<br />INTEGER OPTIMAL SOLUTION FOUND<br />objFunValue: 12898.0<br />x_opt: [ 0.&nbsp; 0.&nbsp; 0. ...,&nbsp; 0.&nbsp; 0.&nbsp; 0.]</p><p>reading at glpk, the command option should be something like: glpsol ... --ranges file.sen<br />I know that glpsol it&#039;s the binary and not what we are using here...<br />maybe it should be something to be with the Informational APIs of glpk?</p><p>glp_print_ranges should print a human readable sensitivity analysis report</p><p>how do I call glpk with this option?</p><p>for your time thanks<br />regards<br />Francisco</p>]]></description>
			<author><![CDATA[dummy@example.com (Francisco)]]></author>
			<pubDate>Fri, 27 Apr 2012 05:56:36 +0000</pubDate>
			<guid>http://forum.openopt.org/viewtopic.php?id=565&amp;action=new</guid>
		</item>
		<item>
			<title><![CDATA[interalg: categorical variables and general logical constraints]]></title>
			<link>http://forum.openopt.org/viewtopic.php?id=564&amp;action=new</link>
			<description><![CDATA[<p>Hi OpenOpt users,<br />I&#039;m glad to inform you: now <a href="http://openopt.org/interalg">interalg</a> can handle categorical variables and general logical constraints, so now the solver is capable of solving <a href="http://openopt.org/GDP">GDP</a> (Generalized Disjunctive Programming), searching for global extrema with specifiable accuracy. Moreover, it can handle multiobjective problems with these data (<a href="http://trac.openopt.org/openopt/browser/PythonPackages/FuncDesigner/FuncDesigner/examples/categoricalVars.py">example</a>)</p><p>Modern solvers, e.g.&nbsp; <a href="http://openopt.org/LogMIP">LogMIP</a>, use Convex-Hull or Big-M algorithms for these nonlinear GDP, casting a GDP to series of <a href="http://openopt.org/MINLP">MINLP</a>, each one is usually solved by a sequence of (possibly nonconvex) <a href="http://openopt.org/NLP">NLP</a>, while interalg uses absolutely different method and doesn&#039;t create any auxiliary variables and problems. </p><p>See also updated chapters of <a href="http://openopt.org/FuncDesigner">FuncDesigner</a> doc: <a href="http://openopt.org/FuncDesignerDoc#Boolean_variables_and_functions">Boolean variables and functions</a> and <a href="http://openopt.org/FuncDesignerDoc#Discrete_and_categorical_variables">Discrete and categorical variables</a></p>]]></description>
			<author><![CDATA[dummy@example.com (Dmitrey)]]></author>
			<pubDate>Tue, 24 Apr 2012 12:50:22 +0000</pubDate>
			<guid>http://forum.openopt.org/viewtopic.php?id=564&amp;action=new</guid>
		</item>
		<item>
			<title><![CDATA[interalg scalability]]></title>
			<link>http://forum.openopt.org/viewtopic.php?id=563&amp;action=new</link>
			<description><![CDATA[<p>Those tests in <a href="http://openopt.org/interalg_bench">interalg_bench</a> initially were done by OpenOpt v 0.34 with small-scaled functions (6 variables) and high accuracy (10^-9) (BTW most of them run much almost 2 times with current OpenOpt suite version 0.38). </p><p>Since the declared problems for <a href="http://openopt.org/interalg">interalg</a> are NP-Hard, sometimes it takes too long to get solution with required accuracy, but sometimes some problems with hundreds of variables were solved during several minutes by slow notebook (here&#039;s an <a href="http://trac.openopt.org/openopt/browser/PythonPackages/FuncDesigner/FuncDesigner/examples/interalg100vars.py">example</a> with 100 variables that takes less than 500 seconds on notebook Intel Atom 2 GHz, peak memory consumption 130 MB). Last OpenOpt svn snapshot was used, but I don&#039;t think difference with rev 0.38 will be essential in the case.</p><p>I expect essential speedup with PyPy (hey say several months till full NumPy support remains), also, I have some ideas for further interalg speedup.</p>]]></description>
			<author><![CDATA[dummy@example.com (Dmitrey)]]></author>
			<pubDate>Mon, 23 Apr 2012 16:13:57 +0000</pubDate>
			<guid>http://forum.openopt.org/viewtopic.php?id=563&amp;action=new</guid>
		</item>
		<item>
			<title><![CDATA[interalg improvements for boolean variables]]></title>
			<link>http://forum.openopt.org/viewtopic.php?id=562&amp;action=new</link>
			<description><![CDATA[<p>some interalg improvements for handling boolean variables have been committed (you should have bool variables defined as &quot;...,domain = bool&quot;, not &quot;..., domain = [0,1]&quot;, that will work slower as general discrete variable; maybe I&#039;ll fix it later).</p>]]></description>
			<author><![CDATA[dummy@example.com (Dmitrey)]]></author>
			<pubDate>Thu, 19 Apr 2012 15:28:49 +0000</pubDate>
			<guid>http://forum.openopt.org/viewtopic.php?id=562&amp;action=new</guid>
		</item>
		<item>
			<title><![CDATA[bvls on 64bit Enthought]]></title>
			<link>http://forum.openopt.org/viewtopic.php?id=561&amp;action=new</link>
			<description><![CDATA[<p>Hello,</p><p>I&#039;m trying to use solver bvls.</p><p>Following your docs, I did &quot;f2py -c -m bvls bvls.f&quot; but the solver does not work.<br />(Stays in x0, or diverges.)</p><p>I guess that the problem might be the in the fact that I use x86_64 Windows, MINGW compiler, as packed in the Enthought Python distribution.</p><p>In case you can help me, I&#039;d be grateful.</p><p>Stepan</p>]]></description>
			<author><![CDATA[dummy@example.com (kasal)]]></author>
			<pubDate>Wed, 18 Apr 2012 18:04:09 +0000</pubDate>
			<guid>http://forum.openopt.org/viewtopic.php?id=561&amp;action=new</guid>
		</item>
		<item>
			<title><![CDATA[LCP errors]]></title>
			<link>http://forum.openopt.org/viewtopic.php?id=560&amp;action=new</link>
			<description><![CDATA[<p>Hi,</p><p>My name is Sudhamsh Reddy. I am a grad student at university of Texas at Arlington, USA. I am trying to use the openopt python library to solve a LCP problem. I am using python version 2.7.2, numpy 1.5.1 and openopt 0.34. I am getting a numpy error. I am including a snapshot of my code with the output error details.<br />\<br />\<br />Code:<br />#!/usr/bin/python</p><p>from numpy import *<br />from scipy import *<br />from openopt import LCP</p><p>M = array([[0, 0, -3.0, -1.0], [0,0,-3.0,-1.0], [-3.0,-1.0,0,0], [-10.0,-2.0,0,0]])</p><p>q = array([[-1.0],[-1.0],[-1.0],[-1.0]])</p><p>p=LCP(M,q)<br />a=p.solve(&#039;lcpsolve&#039;)</p><p>------------------------------------</p><p>Error:</p><p>sudhamsh@sudhamsh-Parallels-Virtual-Platform:~$ python lcp_nash.py </p><p>------------------------- OpenOpt 0.34 -------------------------<br />solver: lcp&nbsp; &nbsp;problem: unnamed&nbsp; &nbsp; type: LCP<br /> iter&nbsp; &nbsp;objFunVal&nbsp; &nbsp;<br />&nbsp; &nbsp; 0&nbsp; 4.000e+00 <br />Traceback (most recent call last):<br />&nbsp; File &quot;lcp_nash.py&quot;, line 22, in &lt;module&gt;<br />&nbsp; &nbsp; a=p.solve(&#039;lcpsolve&#039;)<br />&nbsp; File &quot;/usr/lib/pymodules/python2.7/openopt/kernel/baseProblem.py&quot;, line 235, in solve<br />&nbsp; &nbsp; return runProbSolver(self, *args, **kwargs)<br />&nbsp; File &quot;/usr/lib/pymodules/python2.7/openopt/kernel/runProbSolver.py&quot;, line 237, in runProbSolver<br />&nbsp; &nbsp; solver(p)<br />&nbsp; File &quot;/usr/lib/pymodules/python2.7/openopt/solvers/HongKongOpt/lcpsolve_oo.py&quot;, line 20, in __solver__<br />&nbsp; &nbsp; w, z, retcode = LCPSolve(p.M,p.q, pivtol=self.pivtol)<br />&nbsp; File &quot;/usr/lib/pymodules/python2.7/openopt/solvers/HongKongOpt/LCPSolve.py&quot;, line 58, in LCPSolve<br />&nbsp; &nbsp; tableau = hstack([eye(dimen), -M, -ones((dimen, 1)), asarray(asmatrix(q).T)])<br />&nbsp; File &quot;/usr/lib/pymodules/python2.7/numpy/core/shape_base.py&quot;, line 258, in hstack<br />&nbsp; &nbsp; return _nx.concatenate(map(atleast_1d,tup),1)<br />ValueError: array dimensions must agree except for d_0</p>]]></description>
			<author><![CDATA[dummy@example.com (Dmitrey)]]></author>
			<pubDate>Wed, 18 Apr 2012 18:02:19 +0000</pubDate>
			<guid>http://forum.openopt.org/viewtopic.php?id=560&amp;action=new</guid>
		</item>
		<item>
			<title><![CDATA[pymls crash]]></title>
			<link>http://forum.openopt.org/viewtopic.php?id=559&amp;action=new</link>
			<description><![CDATA[<p>Hello, I observe a crash of pymls_oo.py, in the following code:</p><p>&nbsp; &nbsp; &nbsp; &nbsp; if phase==1:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; A_free = A[:,i_free.squeeze()]<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if m_free&lt;=k:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if m_free&gt;0:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; p_free=np.linalg.lstsq(-A_free,r)[0]&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; q1,r1=qr(A_free.T)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; p_free=-q1.dot(np.solve(r1.T,r))<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; p=np.zeros((m,1))<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; p[i_free.squeeze()]=p_free</p><p>The situation is like this:<br />i = 3;&nbsp; &nbsp; m_free = 0;&nbsp; &nbsp; i_free = [[True], [False], [False]];&nbsp; &nbsp; p_free.shape = (2,1)</p><p>The problem seems to be that for m_free=0, the variable p_free is not assigned, so it contains a value from previous computation.&nbsp; In my case, it&#039;s shape was not suitable, so I got an error message.</p><p>Could you please give me a hint how this can be fixed?&nbsp; (If you commit a fix, I can find it there.)</p><p>Thank you very much.</p>]]></description>
			<author><![CDATA[dummy@example.com (kasal)]]></author>
			<pubDate>Tue, 17 Apr 2012 06:52:24 +0000</pubDate>
			<guid>http://forum.openopt.org/viewtopic.php?id=559&amp;action=new</guid>
		</item>
		<item>
			<title><![CDATA[IPOPT issue solving consecutive problems (segmentation fault)]]></title>
			<link>http://forum.openopt.org/viewtopic.php?id=558&amp;action=new</link>
			<description><![CDATA[<p>Hi guys,</p><p>I&#039;m trying to develop&nbsp; C code for solving some distributed optimization problems which employs IPOPT. </p><p>I&#039;m trying to solve problems&nbsp; in a FOR loop ( at each step i define a new Ipopt problem and then i free it with FreeIpoptProblem), but after the first step the IPOPT solver starts and i get a segmentation fault. </p><p>Everything in the first step runs just dandy, i get status==Solve_Succeeded, etc.</p><p> I tried it as direct code in my main function, then i defined a separate function where i call Ipoptsolve, but to no avail, same result.</p><p>Has anyone encountered this issue before?</p><p> Any advice would be appreciated, thanks.</p>]]></description>
			<author><![CDATA[dummy@example.com (Dmitrey)]]></author>
			<pubDate>Fri, 06 Apr 2012 15:21:09 +0000</pubDate>
			<guid>http://forum.openopt.org/viewtopic.php?id=558&amp;action=new</guid>
		</item>
		<item>
			<title><![CDATA[Chemical Kinetics and OpenOPT]]></title>
			<link>http://forum.openopt.org/viewtopic.php?id=557&amp;action=new</link>
			<description><![CDATA[<p>OpenOpt in chemical Kinetics</p><br /><p>I wish someone collaborate on this discussion. Sundials and others are too complex?<br />Excel too slow when necessary to integrate!</p>]]></description>
			<author><![CDATA[dummy@example.com (qgfreire)]]></author>
			<pubDate>Wed, 04 Apr 2012 19:29:49 +0000</pubDate>
			<guid>http://forum.openopt.org/viewtopic.php?id=557&amp;action=new</guid>
		</item>
		<item>
			<title><![CDATA[Question about multiple global minima and single point results]]></title>
			<link>http://forum.openopt.org/viewtopic.php?id=556&amp;action=new</link>
			<description><![CDATA[<p>Hello,</p><p>&nbsp; I am Sándor Kolumbán, a Hungarian PhD student and I am using interalg fo solve some global optimization problems with multiple global minima.</p><p>&nbsp; As interalg is an interval analytic solver I assume it evaluates the whole decision space. It may be that my assumption is wrong, but in case it is not, I have some questions:</p><p>1.: The end result of the optimization is given as a single point. I would have expected to get a small box that contains the global minimum. Why is this? I understand that the underlying interval analysis module does not count the rounding errors but even so, returning a point estimate is not what I expected?</p><p>2.: My functions always have more than one global minima but only one of them is found. Since the location of the other global minima has to be examined somehow that it does not contain a better point I would have expected to get that other point as well. Is there any reason for the other global optimum points not being delivered?</p><p>3.: I would like to read about the algorithm that is implemented in the toolbox. Can you point to a paper or some literature?</p><p>Best regards,</p><p> Kolumbán</p>]]></description>
			<author><![CDATA[dummy@example.com (kolumban)]]></author>
			<pubDate>Wed, 04 Apr 2012 13:30:24 +0000</pubDate>
			<guid>http://forum.openopt.org/viewtopic.php?id=556&amp;action=new</guid>
		</item>
		<item>
			<title><![CDATA[Time complexity of a non-linear optimization model]]></title>
			<link>http://forum.openopt.org/viewtopic.php?id=552&amp;action=new</link>
			<description><![CDATA[<p>Hello</p><p>I have faced a non-linear problem in my modeling. My model is as follows:<br />max sigma {x_i}<br />s.t.<br />&nbsp; &nbsp;x_i.y_i=z_i&nbsp; 1&lt;i&lt;n<br />&nbsp; &nbsp;....<br />&nbsp; &nbsp;some linear constrains</p><p>In this models, x_i, y_i, and z_i are continuous variables for {1&lt;i&lt;n}. As you can see we have a product term in constrains. My question is if this problem is P or NP? I strongly think it is NP. This is because the I found that the product term can be approximated by peicewise linear optimization techniques (</p>]]></description>
			<author><![CDATA[dummy@example.com (jamedadi)]]></author>
			<pubDate>Sun, 01 Apr 2012 19:29:35 +0000</pubDate>
			<guid>http://forum.openopt.org/viewtopic.php?id=552&amp;action=new</guid>
		</item>
	</channel>
</rss>

