Login
Login

Reply To: Constrained Optimization

Home 21090308 Forums Numerical Method Optimization Constrained Optimization Reply To: Constrained Optimization

#2819
hao.ding
Member

In the example you mentioned, it represents the constraint x>=1 because it evaluates 1-x, and when the evaluation is smaller than 0, the constraint is satisfied.

Therefore when you want to construct a constraint Ax>=b, in the evaluation part you should return b-AX.