Yangshen  
                
                  
                    November 13, 2022,  8:29am
                   
                  1 
               
             
            
              Hello,everyone
Has anyone called the optimization algorithm in ff NLopt? I think there seems to be less information in the document. It’s better to have an example for me to learn.
                                                                                                                                                   thank you
 
            
              
            
           
          
            
            
              You have exemple in plugin exemple
  
  
    
      load "ff-NLopt"
//A brief script to demonstrate how to use the freefemm interfaced nlopt routines
//The problem consist in solving a simple variational inequality using one of the
//optimization algorithm of nlopt. We restart the algorithlm a few times agter
//performing some mesh adaptation to get a more precise output.
int kas = 3; //    choose of the algo ...
int NN = 6;
mesh Th = square(NN,NN);
func f1=1.;
func f2=-1.;
func g1=0.;
func g2=0.1;
int iter=0;
int nadapt=2;
real starttol=1e-6,bctol=6.e-12;
fespace Vh(Th,P1);
Vh oldu1,oldu2;
show original 
   
  
    
    
  
  
 
             
            
              
            
           
          
            
              
                Yangshen  
              
                  
                    November 14, 2022,  9:56am
                   
                  3 
               
             
            
              Thank you,I will study this example carefully