//
//Nonliner planning command
//
//Syntax
nlp/
(condition)
;
//(conditions) are scripts about optimize and condition.
init:variable=value //initialize value of variable
//cond:formula comp value //restrict condition with comparison operate and value
//optimize:formula //optimize=/max/min/ optimaize condition
//
//Example 1 max optimization of a Nonlinear planing problem
//Optimum condition
//Execute non linear optimization
nlp/
init:x=0;
init:y=0;
cond:x**2+y**2<=25;
cond:(x-3)**2-y+3>=0
cond:x >= 0;
cond:y >= 0;
max:x+y;
;
//Example 2 min optimization of a Nonlinear planing problem
//Optimum condition
//Execute non linear optimization
nlp/
init:x=0;
init:y=0;
cond:x**2+y**2<=25;
cond:(x-3)**2-y+3<=0
cond:x >= 0;
cond:y >= 0;
min:x+y;
;