Question: Assigning Values from a List

I'm trying to have Maple automatically assign values to variables that are given in a list.

This is my function:

optp:=Maximize(F(w1,w2,w3))

optp:=[0.345,[w1=0.05,w2=0.6,w3=0.35]]

Now how do I get Maple to automatically assign w1,w2, and w3 to the values given in the output?

I tried this code:

w1:= optp[2][1];

w2:= optp[2][2];

w3:= optp[2][3];

This gave me a recursive assignment error. (I guess it's assigning "w1:=w1=0.05" and so on).

Any idea on how to fix this?

Please Wait...