Hello Onor,

you can set a single (additional or existing) objective coefficient with:
glp_set_obj_coef()

Best regards

Xypron

-------- Original-Nachricht --------
> Datum: Tue, 2 Aug 2011 15:42:24 +0200
> Betreff: Re: [Help-glpk] implementing constraints in Scala

> Thank you a lot
> 
> I have a little question that I didn't fine in glpk.pdf
> 
> 
> How can I add a variable in the objective after creating objective (I can
> have the coefficiente with GLPK.glp_get_obj_coef(lp,i) but I don't knew
> the
> size of coefficient)?
> Can I just add a variable without coping twice all coefficients?
> 
> Onor

-- 
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de

_______________________________________________
Help-glpk mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-glpk

Reply via email to