> Continuous Optimization > Solving Problems with a Quadratic Objective (QP) > Example: Creating a QP, Optimizing, Finding a Solution |
Example: Creating a QP, Optimizing, Finding a Solution |
INDEX PREVIOUS NEXT |
This example shows you how to build and solve a QP. The problem being created and solved is:
Maximize | ||||||||||||||||
x1 |
+ |
2x2 |
+ |
3x3 |
- |
0.5 |
(33x12 |
+ |
22x22 |
+ |
11x32 |
- |
12x1x2 |
- |
23x2x3) | |
subject to | ||||||||||||||||
-x1 |
+ |
x2 |
+ |
x3 |
20 | |||||||||||
x1 |
- |
3x2 |
+ |
x3 |
30 | |||||||||||
with these bounds | ||||||||||||||||
0 |
x1 |
40 | ||||||||||||||
0 |
x2 |
+ | ||||||||||||||
0 |
x3 |
+ |
Copyright © 1987-2003 ILOG, S.A. All rights reserved. Legal terms. | PREVIOUS NEXT |