cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

limiting an optimization vector result to positive entries

DanJoffe
1-Newbie

limiting an optimization vector result to positive entries

Is there a way to convince mathcad optimizer that your really serious when you want all the entries of an optimization vector to be positive?

1 ACCEPTED SOLUTION

Accepted Solutions
RichardJ
19-Tanzanite
(To:DanJoffe)

minerr treats constraints as soft constraints, and minimizes the error in them along with all other errors. If you want to make them hard constraints you need to weight them very heavily. Use v*10^15>0.

View solution in original post

2 REPLIES 2
RichardJ
19-Tanzanite
(To:DanJoffe)

minerr treats constraints as soft constraints, and minimizes the error in them along with all other errors. If you want to make them hard constraints you need to weight them very heavily. Use v*10^15>0.

Richard,

Thanks...I had encouraged it with 10^6 before I posted the question. It obviously wasn't enough encouragement.

Your suggestion of 10^15 worked great!

Thanks...

Dan

Top Tags