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

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

limiting an optimization vector result to positive entries

DanJoffe
1-Newbie

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?

1 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

Top Tags