Skip to main content
1-Visitor
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

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

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

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