Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
TEACHING
NOS_public
Commits
2f1dcd1c
Commit
2f1dcd1c
authored
Jul 25, 2016
by
Gianluca Frison
Browse files
added sol script to 1.3
parent
a6903399
Changes
1
Hide whitespace changes
Inline
Side-by-side
exercises/ex01/solutions/beale_grad.mod
0 → 100644
View file @
2f1dcd1c
reset;
var x := 4.0, >= -5, <= 5;
var y := 0.4, >= -5, <= 5;
subject to
f1: (x*(1.0-y)-1.5)*(1-y) + (x*(1.0-y^2)-2.25)*(1.0-y^2) + (x*(1.0-y^3)-2.625)*(1.0-y^3) = 0;
f2: - (x*(1.0-y)-1.5)*x - (x*(1.0-y^2)-2.25)*2*x*y - (x*(1.0-y^3)-2.625)*3*x*y^2 = 0;
#option solver conopt;
#option solver knitro;
#option solver loqo;
#option solver minos;
#option solver snopt;
#option solver ipopt;
#option solver baron;
#option solver couenne;
solve;
display x, y;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment