Reputation: 53
Can i get a complete example program in pyomo for optimizing quadratic objective functions with constraints with cplex solver? or an example for mixed integer quadratic programming python in pyomo
Upvotes: 0
Views: 3286
Reputation: 9
Yes, you can modify the model applying duality (Dual Theorem) so you will be able to get a linear objective function with a quadratic constraint. But if you are looking for a double quadratic model, i.e. a quadratic objective function with a quadratic constraint function, you should ensure that one of them is strictly concave and the other strictly convex in order to get only one solution.
Hope help
PS: sorry if I'm late.
Upvotes: 0
Reputation: 4465
From the looks of it, this is more a pure pyomo question than one having anything to do with CPLEX. The closest I can find is example4.py (in the pyomo github). This pyomo example only has a quadratic objective function, but it looks like it should be straightforward to modify the constraint_rule
method to include a quadratic constraint.
Upvotes: 1