Skip to main content
1-Visitor
Sep 22, 2014 11:03 PM UTC
Solved

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?

RichardJAnswer
19-Tanzanite
Sep 23, 2014 12:54 PM UTC

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.

2 replies

RichardJ19-TanzaniteAnswer
19-Tanzanite
Sep 23, 2014 12:54 PM UTC

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.

Translate
DanJoffe1-VisitorAuthor
1-Visitor
Sep 23, 2014 4:52 PM UTC

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

Translate