Realiza bien este codigo de optimizacion: from linopy import Model m=Model() P1=m.add_variables(lower=0, name='P1'); m.add_constraints(P1-850 == 0); m.add_objective( 7,92 P1 + 0,001562 (P1*P1) ) m.solve()
from linopy import Model m=Model() P1=m.add_variables(lower=0, name='P1'); m.add_constraints(P1-850 == 0); m.add_objective( 7,92 P1 + 0,001562 (P1*P1) ) m.solve()