[sage-support] Linear programming in sage
Hi, I am trying to solve some linear programs in sage. From the tutorial it seems that the right way to do this is nowadays the MixedIntegerLinearProgram() class. However, using the default glpk solver I can't find a way to distinguish between unbounded and unfeasible programs. That is p = MixedIntegerLinearProgram() t = p.new_variable() p.add_constraint(t[0]=-1) p.set_objective(t[0]) p.solve() (no solution) gives the same answer as p = MixedIntegerLinearProgram() t = p.new_variable() p.set_objective(t[0]) p.solve() (unbounded problem). Is there some official way how to distinguish these two cases? I suppose I could use cvxopt, but I fear it would be too slow for the real program I want to use it for. Thanks in advance, Robert Samal -- You received this message because you are subscribed to the Google Groups sage-support group. To post to this group, send email to sage-support@googlegroups.com. To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support?hl=en.
[sage-support] using legend_label in matrices
Hi, I am trying to create an array of ascending order matrices, and I would like to find a way to label each of them? code: -- ... ... ... m = [matrix(QQ, sqrt(a[i]),pri[i][0:len(pri[i])]) for i in range(len(pri))] mp = graphics_array([matrix_plot(m[i]) for i in range(len(m))], sqrt(b[i]) ,sqrt(b[i])) show(mp, frame = False, axes = False, dpi = 4*f^2) I have tried to add a label but nothing shows up even when I have both frame = true, and axes = true in the show function. -- You received this message because you are subscribed to the Google Groups sage-support group. To post to this group, send email to sage-support@googlegroups.com. To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support?hl=en.
[sage-support] error proxying Sage behind Apache2 after 5.2 update..... a '/' is missing in urls!?
I've been successfully proxying older versions of Sage behind Apache2 using SSL. The same script doesn't work with Sage 5.2 for some reason. Here is my Apache code below (Code below redirects all to HTTPS.) The new problem is that when I try to log in as adminSage tries to go to https://sage.phil4.comhome/admin instead of https://sage.phil4.com/home/admin (Notice missing / in the middle!) Any help greatly appreciated. VirtualHost 72.14.188.15:80 # = ServerName sage.phil4.com ServerAlias www.sage.phil4.com DocumentRoot/var/www Options Indexes FollowSymLinks # = Directory /home/seb/MAIN/phil4/apache Order Allow,Deny Allow from All /Directory # = Redirect / https://sage.phil4.com # = /VirtualHost VirtualHost 72.14.188.15:443 # = ServerName sage.phil4.com ServerAlias www.sage.phil4.com DocumentRoot/var/www Options Indexes FollowSymLinks # = Directory /home/seb/MAIN/phil4/apache Order Allow,Deny Allow from All /Directory # = SSLEngine On SSLCertificateFile /etc/apache2/ssl/sage.phil4.com.cert SSLCertificateKeyFile /etc/apache2/ssl/sage.phil4.com.private_key SSLCertificateChainFile /etc/apache2/ssl/sage.phil4.com.int_cert # = ProxyPass/ http://127.0.0.1:8000/ ProxyPassReverse / http://127.0.0.1:8000/ # = /VirtualHost -- You received this message because you are subscribed to the Google Groups sage-support group. To post to this group, send email to sage-support@googlegroups.com. To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support?hl=en.