Here's a minimal working example of a problem I'm having:
FindInstance[#, {a, b}] & @@@ {{a + b > 1, a + b < 2}, {a + b > 2, a + b < 3}}
(*{{{a -> 0, b -> 2}}, {{a -> 0, b -> 3}}}*)
Obviously this is not what I'm after, as $a+b<2$ is not satisfied in the first and $a+b<3$ is not satisfied in the second case. Individually they work fine:
FindInstance[{a + b > 1, a + b < 2}, {a, b}]
(*{{a -> 0, b -> 3/2}}*)
And:
FindInstance[{a + b > 2, a + b < 3}, {a, b}]
(*{{a -> 0, b -> 5/2}}*)
I'm guessing my issue is something to do with the evaluation order. Or maybe it's only reading the first inequality in each constraint list? What am I missing here?
EDIT: I've changed the title to reflect the error in my understanding.
@@@
as "Map Apply" asMap
is not involved. Either function (Map
orApply
) can be specified to operate at any level or contiguous range of levels within an expression.@@@
isApply
with a levelspec of{1}
. $\endgroup$