[scilab-Users] Problem on optimization function (Scilab 5.4)

Reinaldo rei.listas at yahoo.com
Fri May 25 16:53:40 CEST 2012


Hi

I compiled that code through "marking all the codes in Scilab notes and choosing the first option "simulte with eco". Well, 
I used to proceed like that using Scilab 5.3.

But now, under 5.4 version, it fails ... :-(

All best,
Reinaldo.


________________________________
 De: Adrien Vogt-Schilb <vogt at centre-cired.fr>
Para: users at lists.scilab.org 
Enviadas: Sexta-feira, 25 de Maio de 2012 10:33
Assunto: Re: [scilab-Users] Problem on optimization function (Scilab 5.4)
 

Hi

please try to send minimal programs that reproduce the problem (as
    above)

(you should also use the 'exec' command instead of copy/pasting your
    code in the console)

i cannot help you, as i am not familiar with linpro
are you sure that linpro accepts %inf as valid superior constraint?
    you cna check this in the linpro page



On 25/05/2012 14:59, Reinaldo wrote: 
 
>-->p = [-13 -16 -16 -14 -39]'; 
> 
>-->C =  [
>-->       11 53 5 5 29
>-->        3  6 5 1 34
>-->        1  0 0 0  0
>-->        0  1 0 0  0
>-->        0  0 1 0  0
>-->        0  0 0 1  0
>-->        0  0 0 0  1
>-->      ];  
> 
> 
>-->b = [40 20 1 1 1 1 1]';  
>-->ci=[0 0 0 0 0]';  
> 
>-->cs=[%inf %inf %inf %inf %inf]'; 
> 
>-->[x1,lagr,f]=linpro(p,C,b,ci,cs)  
>Warning:
>/Applications/scilab-5.4.0-alpha-1.app/Contents/MacOS/share/scilab/contrib/quapro/1.1-2/macros/quapro.bin
>
>
> f  =
> 
>    1.  
> lagr  =
> 
>    0.  
> x1  =
> 
>    0.  
> 
>Warning: stack problem..., solved
>
>
>-->
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20120525/05b858d3/attachment.htm>


More information about the users mailing list