S
Steve M
Does anyone know if setting constraints with the SolverAdd command that
limits the "Changing Cells" to only positive numbers and also uses the
SolverOptions command with a AssumeNonNeg:= true causes the solver to use
negative numbers in the "Change cells"?
I have the following type of problem.
y1=a1*rate1 + b1*rate2
Constraints
0<=a1<=340
0<=b1<=340
y1 is a givens and I am attempting to minimize a1+b1. the values being
changed are a1 & b1,
In addition to setting the constraints for a1 & b1 as only positive number
by using the SolverAdd command I also use the SolverOptions AssumeNonNeg
:=True.
This example oversimplifies the problem in reality there are over 100 y's
and up to 13 terms in each equation. The solver returns correct results when
the rate1 and rate2 are different. However when they are the same the
solver will disreguard the non negative constraint and set one value to
negative.
I capture the solver completion codes and record it for each equation and
the solver returns 0 indicating convergence and constraints satisfied.
Any ideas?
Thanks
limits the "Changing Cells" to only positive numbers and also uses the
SolverOptions command with a AssumeNonNeg:= true causes the solver to use
negative numbers in the "Change cells"?
I have the following type of problem.
y1=a1*rate1 + b1*rate2
Constraints
0<=a1<=340
0<=b1<=340
y1 is a givens and I am attempting to minimize a1+b1. the values being
changed are a1 & b1,
In addition to setting the constraints for a1 & b1 as only positive number
by using the SolverAdd command I also use the SolverOptions AssumeNonNeg
:=True.
This example oversimplifies the problem in reality there are over 100 y's
and up to 13 terms in each equation. The solver returns correct results when
the rate1 and rate2 are different. However when they are the same the
solver will disreguard the non negative constraint and set one value to
negative.
I capture the solver completion codes and record it for each equation and
the solver returns 0 indicating convergence and constraints satisfied.
Any ideas?
Thanks