Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum > General > > "Dummy varable"

Post Reply:
Name:
Email Address:

Please send email when my message is replied to.

Url (optional):
Subject:
Message: view original message?
Attachment (optional):
Please answer this:3+5 =



Original Message (ID '117537') By Bill Simpson:
To restrict the domain to 0,1 see what happens if you add a constraint x*(x-1)==0 for all your variables x. That appears to work for the small example I tried. In[1]:= NMinimize[{a*3+(b-2)*2,a*(a-1)==0&&b*(b-1)==0&&a+b==1},{a,b}] Out[1]= {-2.0000, {a->-1.8626*^-9, b->1.0000}}