Skip to content

Commit 001e8e5

Browse files
committed
sugar
1 parent 4acc7be commit 001e8e5

3 files changed

Lines changed: 26 additions & 15 deletions

File tree

docs/src/assets/Manifest.toml

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
julia_version = "1.11.7"
44
manifest_format = "2.0"
5-
project_hash = "065c5ff164fc1623d5f59149cbffa347e8e4b04a"
5+
project_hash = "9b6e0817ee9912a4be0b8035c284f9703f84de08"
66

77
[[deps.ADNLPModels]]
88
deps = ["ADTypes", "ForwardDiff", "LinearAlgebra", "NLPModels", "Requires", "ReverseDiff", "SparseArrays", "SparseConnectivityTracer", "SparseMatrixColorings"]
@@ -192,9 +192,9 @@ weakdeps = ["HTTP", "JSON"]
192192

193193
[[deps.CTDirect]]
194194
deps = ["CTBase", "CTModels", "DocStringExtensions", "HSL", "MKL", "SparseArrays"]
195-
git-tree-sha1 = "4a670a973d901dc38ca4f86fbf3967c1f0ae97bb"
195+
git-tree-sha1 = "5f7bd0cc0a2b4ff09a6621071bdc07aa121349a2"
196196
uuid = "790bbbee-bee9-49ee-8912-a9de031322d5"
197-
version = "0.17.1"
197+
version = "0.17.2"
198198
weakdeps = ["ADNLPModels", "ExaModels", "MadNLPMumps", "NLPModelsIpopt", "NLPModelsKnitro"]
199199

200200
[deps.CTDirect.extensions]
@@ -228,9 +228,9 @@ weakdeps = ["JLD2", "JSON3", "Plots"]
228228

229229
[[deps.CTParser]]
230230
deps = ["CTBase", "DocStringExtensions", "MLStyle", "OrderedCollections", "Parameters", "Unicode"]
231-
git-tree-sha1 = "507a19db4be22ac5aa6967d78c97e68fd95a670a"
231+
git-tree-sha1 = "7e95684a3b47015e3d2feac81292a89d60a9dae6"
232232
uuid = "32681960-a1b1-40db-9bff-a1ca817385d1"
233-
version = "0.6.4"
233+
version = "0.7.0"
234234

235235
[[deps.Cairo_jll]]
236236
deps = ["Artifacts", "Bzip2_jll", "CompilerSupportLibraries_jll", "Fontconfig_jll", "FreeType2_jll", "Glib_jll", "JLLWrappers", "LZO_jll", "Libdl", "Pixman_jll", "Xorg_libXext_jll", "Xorg_libXrender_jll", "Zlib_jll", "libpng_jll"]
@@ -1230,9 +1230,9 @@ version = "2.41.1+0"
12301230

12311231
[[deps.Libtiff_jll]]
12321232
deps = ["Artifacts", "JLLWrappers", "JpegTurbo_jll", "LERC_jll", "Libdl", "XZ_jll", "Zlib_jll", "Zstd_jll"]
1233-
git-tree-sha1 = "4ab7581296671007fc33f07a721631b8855f4b1d"
1233+
git-tree-sha1 = "f04133fe05eff1667d2054c53d59f9122383fe05"
12341234
uuid = "89763e89-9b03-5906-acba-b20f662cd828"
1235-
version = "4.7.1+0"
1235+
version = "4.7.2+0"
12361236

12371237
[[deps.Libuuid_jll]]
12381238
deps = ["Artifacts", "JLLWrappers", "Libdl"]
@@ -2220,6 +2220,11 @@ weakdeps = ["SparseArrays", "StaticArraysCore"]
22202220
SciMLOperatorsSparseArraysExt = "SparseArrays"
22212221
SciMLOperatorsStaticArraysCoreExt = "StaticArraysCore"
22222222

2223+
[[deps.SciMLPublic]]
2224+
git-tree-sha1 = "ed647f161e8b3f2973f24979ec074e8d084f1bee"
2225+
uuid = "431bcebd-1456-4ced-9d72-93c2757fff0b"
2226+
version = "1.0.0"
2227+
22232228
[[deps.SciMLStructures]]
22242229
deps = ["ArrayInterface"]
22252230
git-tree-sha1 = "566c4ed301ccb2a44cbd5a27da5f885e0ed1d5df"
@@ -2365,10 +2370,10 @@ uuid = "860ef19b-820b-49d6-a774-d7a799459cd3"
23652370
version = "1.0.3"
23662371

23672372
[[deps.Static]]
2368-
deps = ["CommonWorldInvalidations", "IfElse", "PrecompileTools"]
2369-
git-tree-sha1 = "f737d444cb0ad07e61b3c1bef8eb91203c321eff"
2373+
deps = ["CommonWorldInvalidations", "IfElse", "PrecompileTools", "SciMLPublic"]
2374+
git-tree-sha1 = "1e44e7b1dbb5249876d84c32466f8988a6b41bbb"
23702375
uuid = "aedffcd0-7271-4cad-89d0-dc628f76c6d3"
2371-
version = "1.2.0"
2376+
version = "1.3.0"
23722377

23732378
[[deps.StaticArrayInterface]]
23742379
deps = ["ArrayInterface", "Compat", "IfElse", "LinearAlgebra", "PrecompileTools", "Static"]

docs/src/assets/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ CTBase = "0.16"
3333
CTDirect = "0.17"
3434
CTFlows = "0.8"
3535
CTModels = "0.6"
36-
CTParser = "0.6"
36+
CTParser = "0.7"
3737
CommonSolve = "0.2"
3838
DataFrames = "1"
3939
DifferentiationInterface = "0.7"

docs/src/manual-ai-ded.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,20 @@
33
Using now common models from AI, it is an elementary task to have such an agent learn the syntax of OptimalControl.jl DSL, then use the agent to translate standard math into this DSL. Here is a typical prompt, pointing to the [DSL syntax](@ref manual-abstract-syntax):
44

55
```
6-
learn the syntax of optimalcontrol.jl dsl described at the link below to translate math into this dsl (julia language):
7-
https://control-toolbox.org/OptimalControl.jl/stable/manual-abstract.html
6+
Learn the syntax of OptimalControl.jl DSL described at the link below
7+
to translate math into this DSL (Julia language):
8+
https://control-toolbox.org/OptimalControl.jl/stable/manual-abstract.html.
89
```
910

1011
Now, here is an extract of, *e.g.*, [claude.ai](https://claude.ai) answer (Sonnet 4 model) to the request below:
1112

1213
```
13-
translate the problem below into this DSL: minimise the final time tf under the constraint q''(t) = u(t) with -1 <= u(t) <= 1, q(0) = 1, q'(0) = -2, q(tf) = 3, q'(tf) = 1, and q'(t) <= 1
14+
Translate the problem below into this DSL:
15+
16+
minimise the final time tf
17+
under the constraint q''(t) = u(t)
18+
with -1 <= u(t) <= 1,
19+
q(0) = 1, q'(0) = -2, q(tf) = 3, q'(tf) = 1, and q'(t) <= 1.
1420
```
1521

1622
```julia
@@ -48,7 +54,7 @@ end
4854
The answer is syntactically correct and can be updated, for instance according to the new request below:
4955

5056
```
51-
use a form compatible with examodels
57+
Use a form compatible with examodels.
5258
```
5359

5460
```julia

0 commit comments

Comments
 (0)