Commit f3eb2342 authored by Gianluca Frison's avatar Gianluca Frison

added solution to 5.1 to 5.4

parent 26a65df9
reset;
var x >= -2.5;
var y >= -2.5;
minimize obj: x^2 - y^2;
s.t. c: x^2 + y^2 <= 1;
option solver cplex;
solve;
reset;
var x >= -2.5;
var y >= -2.5;
minimize obj: x^2 - y^2;
s.t. c: x^2 + y^2 <= 1;
option solver cplex;
option cplex_options "reqconvex=2";
solve;
display obj, x, y;
reset;
var x >= -2.5;
var y >= -2.5;
minimize obj: x^2 - y^2;
s.t. c: x + y <= 1;
option solver cplex;
option cplex_options "reqconvex=2";
solve;
display obj, x, y;
reset;
var x >= -2.5;
var y >= -2.5;
minimize obj: x^2 - y^2;
s.t. c: x + y <= 1;
option solver cplex;
option cplex_options "reqconvex=3";
solve;
display obj, x, y;
reset;
var x >= -2.5;
var y >= -2.5;
minimize obj: x^2 - y^2;
s.t. c: x + y <= 1;
option solver gurobi;
solve;
reset;
var x >= -2.5;
var y >= -2.5;
minimize obj: x^2 - y^2;
s.t. c: x + y <= 1;
option solver xpress;
solve;
display _var;
reset;
var x >= -2.5;
var y >= -2.5;
minimize obj: x^2 - y^2;
s.t. c: x + y <= 1;
option solver scip;
solve;
display obj,x,y;
reset;
var x >= -2.5 := 0.0;
var y >= -2.5 := -1.0;
minimize obj: x^2 - y^2;
s.t. c: x^2 + y^2 <= 1;
option solver scip;
solve;
display obj, x, y;
reset;
var x >= -2.5 := 0;
var y >= -2.5 := -1;;
minimize obj: x^2 - y^2;
s.t. c1: x^2 + y^2 >= 1;
s.t. c2: x^2 + y^2 <= 3;
option solver scip;
solve;
display obj, x, y;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment