Main Page   Class Hierarchy   Compound List   File List   Contact   Download   Symbolic Constraints   Examples  

nf.c

00001 #include<scil/scil.h>
00002 
00003 using namespace SCIL;
00004 
00005 #define N 10000000
00006 
00007 int main() {
00008 
00009   ILP_Problem IP(Optsense_Min);
00010 
00011   var x,y;
00012 
00013   x=IP.add_variable(N,-N,N,Vartype_Integer);
00014   y=IP.add_variable(N,-N,N,Vartype_Integer);
00015 
00016   IP.add_basic_constraint(N*x + N*y >= 1);
00017 
00018   IP.optimize();
00019 
00020   cout<<IP.get_solution(x)<<" "<<IP.get_solution(y)<<endl;
00021 
00022   return 0;
00023 };
Generated on Mon Mar 28 22:03:49 2011 for SCIL by  doxygen 1.6.3