forked from qiskit-community/qopt-best-practices
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request qiskit-community#1 from a-matsuo/qiskit_patterns
Added a sample lp file.
- Loading branch information
Showing
2 changed files
with
89 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
\ This file has been generated by DOcplex | ||
\ ENCODING=ISO-8859-1 | ||
\Problem name: Max-cut | ||
|
||
Maximize | ||
obj: 3 x_0 + 3 x_1 + 3 x_2 + 3 x_3 + 3 x_4 + 3 x_5 + 3 x_6 + 3 x_7 + 3 x_8 | ||
+ 3 x_9 + [ - 4 x_0*x_3 - 4 x_0*x_5 - 4 x_0*x_7 - 4 x_1*x_2 - 4 x_1*x_4 | ||
- 4 x_1*x_6 - 4 x_2*x_3 - 4 x_2*x_8 - 4 x_3*x_5 - 4 x_4*x_6 - 4 x_4*x_9 | ||
- 4 x_5*x_8 - 4 x_6*x_9 - 4 x_7*x_8 - 4 x_7*x_9 ]/2 | ||
Subject To | ||
|
||
Bounds | ||
0 <= x_0 <= 1 | ||
0 <= x_1 <= 1 | ||
0 <= x_2 <= 1 | ||
0 <= x_3 <= 1 | ||
0 <= x_4 <= 1 | ||
0 <= x_5 <= 1 | ||
0 <= x_6 <= 1 | ||
0 <= x_7 <= 1 | ||
0 <= x_8 <= 1 | ||
0 <= x_9 <= 1 | ||
|
||
Binaries | ||
x_0 x_1 x_2 x_3 x_4 x_5 x_6 x_7 x_8 x_9 | ||
End |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters