2
$\begingroup$

I had formulated an optimization model, and along the way I had to change a variable into a parameter. In doing so, one of my constraints that contained the variable I changed no longer contained a decision variable; however, the model solved alright. I want to know if it is possible to have a constraint that does not contain any decision variables.

$\endgroup$
2
  • $\begingroup$ What software are you using? $\endgroup$
    – Reinderien
    Apr 29, 2023 at 18:46
  • $\begingroup$ I am using AMPL $\endgroup$
    – orion
    Apr 29, 2023 at 18:49

1 Answer 1

4
$\begingroup$

Constraints define your feasibility region; bounds your search space. A constraint with no dv (decision or optimization variable) simply becomes a testing condition. If parameter value satisfies the constraint, it evaluates the objective value, if not it throws a infeasible/out of bounds error.

$\endgroup$
1
  • $\begingroup$ Thank you very much. $\endgroup$
    – orion
    Apr 29, 2023 at 18:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.