[SciPy-user] argmin and optimization
dmitrey
openopt@ukr....
Thu Jul 26 06:49:02 CDT 2007
Nils Wagner wrote:
> dmitrey wrote:
>
>> So your Omega is just all x: (x,x)<1?
>>
>>
> (x,x) <= 1 ("closed ball constraint")
>
>
>> (Can you attach non-Latex notation elseware?)
>>
>>
> I can't see what you mean here.
>
I meant couldn't you describe what does Omega and P_Omega mean w/o Latex?
And/or describe howto see Latex strings in Linux?
>> Why can't you just set P_Omega(y) = {
>> y, for ||y|| <=1
>> y/||y||, for ||y|| > 1
>> }
>> ?
>>
>>
> I don't see your point.
>
> Nils
>
I meant is this true that the func P_Omega will yield the result you intend?
from numpy.linalg import norm
def P_Omega(y):
n_y = norm(y)
if n_y <= 1: return y
else: return y/ny
HTH, D
>
> _______________________________________________
> SciPy-user mailing list
> SciPy-user@scipy.org
> http://projects.scipy.org/mailman/listinfo/scipy-user
>
>
>
>
More information about the SciPy-user
mailing list