-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Omit original variables in atom reduction
- Loading branch information
Showing
4 changed files
with
44 additions
and
25 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
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,36 @@ | ||
import CvxLean.Command.Solve | ||
import CvxLean.Tactic.ChangeOfVariables.Basic | ||
import CvxLean.Tactic.Convexify.Convexify | ||
import CvxLean.Test.Util.TimeCmd | ||
|
||
namespace Stanford | ||
|
||
noncomputable section | ||
|
||
open CvxLean Minimization Real | ||
|
||
/- Exercise 3.67. -/ | ||
section E367 | ||
|
||
def e367 := | ||
optimization (x1 x2 x3 x4 x5 x6 : ℝ) | ||
minimize (-(sqrt x1 + sqrt x2 + sqrt x3 + sqrt x4 + sqrt x5 + sqrt x6) ^ (2 : ℝ)) | ||
subject to | ||
h1 : 0 < x1 | ||
h2 : 0 < x2 | ||
h3 : 0 < x3 | ||
h4 : 0 < x4 | ||
h5 : 0 < x5 | ||
h6 : 0 < x6 | ||
|
||
set_option maxHeartbeats 100000000 | ||
time_cmd reduction red367/dcp367 : e367 := by | ||
convexify | ||
|
||
#print dcp367 | ||
|
||
end E367 | ||
|
||
end | ||
|
||
end Stanford |