User Portlet
| Discussions |
|---|
| My question is simple, I know that Mathematica program trace the parameter through the provided formula and all constraints during debugging the program or the code. So, my question is how to trace a particular variable and to know which function and... |
| This Set::write: Tag Plus in a0+b0 is Protected. error is probably because of using = instead of == in z0+z1+z2+z3==1 |
| There are no doubt one-line statements which can do this, but here is a hopefully understandable approach: (* objective function *) obj[x_] := (x - 5)^2 + 3 Plot[obj[x], {x, 0, 10}] (* candidate values *) xList... |
| I'm not sure i understnad. if they are all 0 or 1 then the equation x1+x2+x3==1 cannot equal one unless only one is 1 (it is a matter only of whether the equations are consistent, not of optimizing). then there is only a matter of which is one, not... |
| When I used **PPA0 + PPA1 + PPA2 + PPA3 + PPB0 + PPB1 + PPB2 == 1** I got the following: {{PPA0 -> 0.199557, PPA1 -> 0.147766, PPA2 -> 0.110302, PPA3 -> 0.0847503, PPB0 -> 0.199557, PPB1 -> 0.147766, PPB2 -> 0.110302}} |