11 views

### TD

Oct 23, 2023, 10:34:45 AM10/23/23
to Artelys Knitro forum
Hi there

I want to check something about setting bounds on my variables and how it would affect the solver.

I have the following constraint:
LB <= x1 <= x2 <= ... <= xn <= UB

The constraints x1 <= x2 <= ... <= xn I set as linear constraints, whereas LB and UB I place as bounds on the variables.

My question is, how should I apply the bounds (and why)?:
to all variables (LB <= x1,x,2,..xn <= UB), or
only at the boundaries (LB <= x1 and xn <= UB)

I guess the option (LB <= x1,x,2,..xn <= UB) would be redundant?

Thank you, and kind regards

### Richard Waltz

Oct 23, 2023, 10:47:37 AM10/23/23
to Artelys Knitro forum
Hi,

I would suggest only adding the necessary bounds (LB <= x1 and xn <= UB) and not the redundant bounds.  As a general modeling rule, at least with continuous problems, it is usually best to define the problem using the minimal set of constraints necessary to accurately model the problem.  Adding redundant/unnecessary constraints can often make the problem harder to solve (usually the Knitro presolver will just remove the redundant bounds/constraints by default anyway).  If you are providing an initial point, however, I would recommend specifying an initial value for all x1,x,2,..xn that is between LB and UB.

Regards,
-Richard Waltz

Sent: Monday, October 23, 2023 4:38 AM

--
You received this message because you are subscribed to the Artelys "Knitro Nonlinear Optimization Solver" google group.
To post to this group, send email to kni...@googlegroups.com
To unsubscribe from this group, send email to knitro-un...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/knitro?hl=en
Thank You,
Artelys
http://www.artelys.com/en/optimization-tools/knitro
---
You received this message because you are subscribed to the Google Groups "Artelys Knitro forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to knitro+un...@googlegroups.com.