Skip to main content
1-Visitor
September 22, 2014
Solved

limiting an optimization vector result to positive entries

  • September 22, 2014
  • 2 replies
  • 1457 views

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?

Best answer by RichardJ

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
September 23, 2014

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.

DanJoffe1-VisitorAuthor
1-Visitor
September 23, 2014

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