[Scilab-users] Scilab control after an impossible calculation
Tim Wescott
tim at wescottdesign.com
Thu Oct 6 21:23:17 CEST 2016
For that matter, you can pass a vector of infemums and supremums for
each element of the vector you're optimizing. (and +inf and -inf work,
for things that don't matter). As long as you can optimize within a
rectilinear space then you can easily dodge the "bad" values. It's in
the help for optim.
On Thu, 2016-10-06 at 13:12 +0200, Serge Steer wrote:
> If you use optim you can set the ind retured arg to -1 in the cost
> function to say that the function cannot be evaluated at this point.
>
> Serge
>
> Le 06/10/2016 à 10:51, paul.carrico at free.fr a écrit :
>
> > Hi All
> >
> >
> >
> > I’m using Scilab as the interface between my optimizer and my finite
> > element solver(s) and sometimes Scilab stops because of unexpected
> > and impossible calculus (1/x with x = 0 as an example ); obviously
> > Scilab stops (and so the optimization).
> >
> >
> >
> > I’m wondering if it’s possible:
> >
> > - To ask back Scilab a message such as “hey I crashed
> > because you’re a fool and you’ve not anticipated an impossible
> > calculation !!!”
> >
> > - To get back Scilab control in order to avoid optimization
> > process crash ? I’ve been thinking in affecting a cost function
> > value at %inf for example (not elegant I recognize)
> >
> >
> >
> > I don’t know if I’m understandable enough …
> >
> >
> >
> > Paul
> >
> >
> >
> >
> > _______________________________________________
> > users mailing list
> > users at lists.scilab.org
> > http://lists.scilab.org/mailman/listinfo/users
>
>
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
--
Tim Wescott
www.wescottdesign.com
Control & Communications systems, circuit & software design.
Phone: 503.631.7815
Cell: 503.349.8432
More information about the users
mailing list