~ubuntu-branches/ubuntu/hoary/scilab/hoary

« back to all changes in this revision

Viewing changes to demos/optimization/lmitool/dscr_lyap2.sci

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2005-01-09 22:58:21 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050109225821-473xr8vhgugxxx5j
Tags: 3.0-12
changed configure.in to build scilab's own malloc.o, closes: #255869

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 function [X]=dscr_lyap2(E,A)
 
2
// Copyright INRIA
 
3
// Generated by lmitool on Tue Jan 31 21:58:20 MET 1995
 
4
 Mbound = 1e3;
 
5
 abstol = 1e-10;
 
6
 nu = 10;
 
7
 maxiters = 100;
 
8
 reltol = 1e-10;
 
9
 options=[Mbound,abstol,nu,maxiters,reltol];
 
10
 /////////////////DO NOT REMOVE THIS LINE
 
11
 X_init=zeros(A)
 
12
 /////////////////DO NOT REMOVE THIS LINE
 
13
 XLIST0=list(X_init)
 
14
 XLIST=lmisolver(XLIST0,dscr_lyap2_eval,options)
 
15
 [X]=XLIST(:)
 
16
 /////////////////EVALUATION FUNCTION////////////////////////////
 
17
 function [LME,LMI,OBJ]=dscr_lyap2_eval(XLIST)
 
18
 [X]=XLIST(:)
 
19
 /////////////////DO NOT REMOVE THIS LINE
 
20
 LME=E'*X-X'*E
 
21
 LMI=list(-A'*X-X'*A-eye(),E'*X)
 
22
 OBJ=[]