-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
34 additions
and
3 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
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
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
19 changes: 19 additions & 0 deletions
19
test/end2end/cases/categorized/fast/conic/socp_09_rsoc_hyperb_eoq.mod
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,19 @@ | ||
## Economic order quantity | ||
## MO-Book https://github.com/mobook/MO-book | ||
|
||
param h default 0.75; # cost of holding one item for one year | ||
param c default 500; # cost of processing one order | ||
param d default 10000; # annual demand | ||
|
||
# define variables for conic constraints | ||
var x >= 0; | ||
var y >= 0; | ||
|
||
# conic constraint | ||
s.t. q: | ||
x*y >= 1; | ||
|
||
# linear objective | ||
minimize eoq: | ||
h*x/2 + c*d*y; | ||
|