Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X
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?
Solved! Go to Solution.
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.
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
