I think maybe I can first generate c1 and c2 randomly with the constraints
- Condition1: c1>=0, c2>-0
- Condition2: c1+c2<=100
Then I check if the answers satisfies the constraints
- Condition3: Maximum >= f(c1,c2)>=C
If it satisfies, then great. But if not, then I repeat the first step again and again until find a set of c1 and c2 satisfies condition3. So I think I need a loop with uncertain reiterations. Now my questions are
- If this method will violates the randomness of what I want actually
- How to do a loop with random reiterations