xxxxxxxxxx
def _(a=[2,3,4],b=[3,4,5],c=[1,2,3]):
A=([a,1],[1,a+1]); B=(b,b+1); C=(c,c+4)
s='Interactive Linear Programming Problem'
P=InteractiveLPProblem(
A,B,C,['x','y'],problem_type='max',
constraint_type='<=',variable_type='>=')
pretty_print(s,fontsize=15)
pretty_print((P.standard_form(),
P.optimal_solution()),fontsize=15)
P.plot().show(figsize=5,legend_font_size=12)
No comments:
Post a Comment