You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*Note:* Option `cvt:socp=0` results in second-order conic
489
+
constraints being passed to the solver as quadratics.
490
+
491
+
434
492
General nonlinear functions
435
-
$$$$$$$$$$$$$$$$$$$$$$$$$$$
493
+
**********************************
436
494
437
495
- log (*expr*), log10 (*expr*)
438
496
*expr-valued:* The natural and base-10 logarithms of *expr*.
@@ -504,23 +562,3 @@ specifies 12 pieces for approximating the sin, cos, and exp functions in that ob
504
562
x[1]^2 - 12*x[1] + 11 + 10*cos(pi*x[1]/2) +
505
563
8*sin(pi*5*x[1]) - exp(-(x[2]-.5)^2/2)/sqrt(5);
506
564
507
-
508
-
Set membership operator
509
-
**********************************
510
-
511
-
- var *var-name* in *set-expr* ;
512
-
Defines a variable that must be a member of a specified AMPL set, as given by the expression *set-expr*. All members of the set must be numbers.
513
-
514
-
This is the simplest use of ``in`` to restrict the domain of a set; more generally, the *in set-expr* phrase may appear in any ``var`` definition that does not contain an *=* phrase.
515
-
516
-
Before sending a problem to the solver interface, AMPL converts variable definitions of this kind to alternative definitions that do not use the ``in`` operator. This may involve the definition of auxiliary binary variables and additional constraints. In the usual case where *set-expr* is a finite set, AMPL also defines suffixes ``.sos`` and ``.sosref`` which can be used by the solver interface to recognize variables and constraints that have been created to implement an ``in`` operator, and to support solvers that handle arbitrary variable domains by means of "special ordered sets of type 1". It is also possible to specify sets that contain continuous intervals -- and hence are infinite -- by using the AMPL expression *interval[expr1,expr2]*.
0 commit comments