MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Request for help - Minimize

  • To: mathgroup at smc.vnet.net
  • Subject: [mg97475] Re: Request for help - Minimize
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Sat, 14 Mar 2009 05:35:50 -0500 (EST)
  • Organization: Uni Leipzig
  • References: <gpda88$jnm$1@smc.vnet.net>
  • Reply-to: kuska at informatik.uni-leipzig.de

Hi,

a) you must assign CE[[i]]
b) CE /. _Minimize:> Sequence[]
    will remove the unevaluated minimization that fail.

Regards
   Jens

zhuoxin lee wrote:
> Please see the codes below (note the codes are used to show the problem, they may not executable). I use array CE to store the results of the function Minimize. Minimize may return error (becuase constraints[i] can not be satisfied). So I want to neglect the result in this case, I don't want the program stops in this case. How can I manage it?
> 
> Array[CE,100]
> For[i =1,i<=100,i++,
> 
>     CE[i] = Minimize [objfun[i],constraints[i]]
> 
> ]
> 


  • Prev by Date: Re: ListPointPlot3D not composable?
  • Next by Date: Re: The "Go Back" Button doesn't work
  • Previous by thread: Re: Request for help - Minimize
  • Next by thread: Re: Request for help - Minimize