TomSym Simple Trigonometric Example
From TomWiki
Jump to navigationJump to search
This page is part of the TomSym Manual. See TomSym Manual. |
TomSym implementation of GAMS Example (TRIG,SEQ=261)
Simple trigonometric problem from the LGO library
Janos Pinter, LGO - Users Guide, Pinter Consulting Services, Halifax, Canada, 2003.
toms x1
obj = sin(11*x1) + cos(13*x1) - sin(17*x1) - cos(19*x1);
eq1 = {-2 <= x1 <= 5
-x1+5*sin(x1) <= 0};
x0 ={x1 == 1};
options = struct;
options.solver = 'conopt';
solution = ezsolve(obj,eq1,x0,options);
Problem type appears to be: con Time for symbolic processing: 0.12088 seconds Starting numeric solver ===== * * * =================================================================== * * * TOMLAB - TOMLAB Development license 999007. Valid to 2011-12-31 ===================================================================================== Problem: --- 1: f_k 0.229779673691773210 f(x_0) -0.119850551407619690 Solver: CONOPT. EXIT=0. INFORM=2. Feasible Path GRG, CONOPT 3.14R Normal completion : Locally optimal FuncEv 6 GradEv 5 ConstrEv 5 ConJacEv 3 Iter 5 CPU time: 0.015600 sec. Elapsed time: 0.022000 sec.