[Bonmin-tickets] [Bonmin] #8: Disfunction of external function in AMPL using Bonmin as the solver

Bonmin coin-trac at coin-or.org
Sun Mar 4 15:55:11 EST 2007


#8: Disfunction of external function in AMPL using Bonmin as the solver
----------------------+-----------------------------------------------------
Reporter:  ytboy0208  |       Owner:  somebody                     
    Type:  defect     |      Status:  new                          
Priority:  critical   |   Component:  component1                   
 Version:             |    Keywords:  ampl bonmin external function
----------------------+-----------------------------------------------------
 system information:
 Linux n1 2.6.8-24-smp #1 SMP Wed Oct 6 09:16:23 UTC 2004 x86_64 x86_64
 x86_64 GNU/Linux
 Bonmin verstion:Bonmin-0.1.1
 1. Downloaded student verstion AMPL-Unix and compiled its binary
 successfully.
 2. Successfully installed and compiled Bonmin based on available manual.
 3. Put the Bonmin binary in the search path $PATH, which makes it workable
 and invokable from any directory.
 4. Got ASL/solvers.
 5. cd solvers;
 6. Since my machine is 64, I changed the "CC = cc" in solvers/makefile.u
 into "CC = cc -m32", and student version AMPL-Unix is for 32 system as far
 as I know.
 7. make -f makefile.u
 8. cd funclink
 9. Similar to 6, I changed "CC = cc" in solvers/funclink/makefile.linux
 into "CC = cc -m32".
 10. make -f makefile.linux
 11. wrote the script file myexample.x as following:
     reset;
     function ginv(Reals);
     var x;
     minimize Z:x*x+x+1+ginv(x);
     subject to cons:x>=0.8;
     option solver bonmin;
     solve;
 12. ampl myexample.x
 13. I got the following errors after I implement 12
     bonmin:
     Cannot load
 library
 /home/chen11q/AMPL_Learning/ampl_external_function/ASL/solvers/funclink/amplfunc.dll:
 /home/chen11q/AMPL_Learning/ampl_external_function/ASL/solvers/funclink/amplfunc.dll:
 cannot open shared object file: No such file or directory
 function ginv not available
 user-defined function not available
 exit code 255
 <BREAK>

-- 
Ticket URL: <https://projects.coin-or.org/Bonmin/ticket/8>
Bonmin <http://projects.coin-or.org/Bonmin>
Basic Open-source Nonlinear Mixed INteger programming



More information about the Bonmin-tickets mailing list