New answers tagged constraint
2
votes
How to define variables $a$,$b$,$c$,$d$ are all elements of set $\{2,3,5,7\}$?
One idea is to use Element with the Region primitive Point. Let ...
2
votes
How to define variables $a$,$b$,$c$,$d$ are all elements of set $\{2,3,5,7\}$?
Or another Alternatives
And@@Thread[{a, b, c, d}==Alternatives@@{2, 3, 5, 7}]
...
6
votes
Accepted
How to define variables $a$,$b$,$c$,$d$ are all elements of set $\{2,3,5,7\}$?
And @@ Or @@@ (Thread[# == {2, 3, 5, 7}] & /@ {a, b, c, d})
...
5
votes
Accepted
LinearOptimization - how to solve with vector constraints?
Note: I have assumed that $p_k = \delta^k(1-\delta)^{n-k}$, as in OPs code.
Solution 1. One could use Minimize:
...
Top 50 recent answers are included
Related Tags
constraint × 143mathematical-optimization × 46
equation-solving × 25
calculus-and-analysis × 16
differential-equations × 15
plotting × 13
numerical-integration × 10
matrix × 9
numerics × 8
fitting × 8
boolean-computation × 8
probability-or-statistics × 7
linear-algebra × 6
physics × 6
nonlinear × 6
inequalities × 5
list-manipulation × 4
graphics × 4
function-construction × 4
symbolic × 4
parametric-functions × 4
vector × 4
maximum × 4
expression-construction × 4
functions × 3