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

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

limiting an optimization vector result to positive entries

DanJoffe
7-Bedrock

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?

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

Announcements

Top Tags