TomSym Simple Trigonometric Example: Difference between revisions

From TomWiki
Jump to navigationJump to search
(Created page with "{{Part Of Manual|title=the TomSym Manual|link=TomSym Manual}} TomSym implementation of GAMS Example (TRIG,SEQ=261) Simple trigonometric problem from the LGO library ...")
 
No edit summary
 
Line 23: Line 23:
<pre>
<pre>
Problem type appears to be: con
Problem type appears to be: con
Time for symbolic processing: 0.12674 seconds
Time for symbolic processing: 0.12088 seconds
Starting numeric solver
Starting numeric solver
===== * * * =================================================================== * * *
===== * * * =================================================================== * * *
Line 36: Line 36:


FuncEv    6 GradEv    5 ConstrEv    5 ConJacEv    3 Iter    5  
FuncEv    6 GradEv    5 ConstrEv    5 ConJacEv    3 Iter    5  
CPU time: 0.031200 sec. Elapsed time: 0.031000 sec.  
CPU time: 0.015600 sec. Elapsed time: 0.022000 sec.  


</pre>
</pre>

Latest revision as of 09:35, 8 November 2011

Notice.png

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.