Forum Discussion
FICO
7 years agoCommunity Manager
Permissions issue when writing lp file from mosel
We have an application written in C#, that runs a compiled Mosel model, running under Windows 10 that writes an lp file to a temporary folder. On the customer's installation machine we are receivin...
FICO
7 years agoCommunity Manager
Before trying to write out the file this way, could you try to run some experiments by adding a few lines into your Mosel source:
1. Check whether the destination directory exists and is writeable (requires: uses "mmsystem"):
writeln(TemplpFile)
tdir:= pathsplit(SYS_DIR,TemplpFile)
writeln(tdir)
fstat:=getfstat(tdir)
if bittest(fstat, SYS_TYP)<>SYS_DIR
then writeln("tdir is not a directory")
end-if
if bittest(fstat, SYS_WRITE)<>SYS_WRITE
then writeln("tdir is not writeable")
end-if
2.Check whether Mosel's temporary directory can be used for writing the file:
tdir:=gettmpdir
writeln(tdir)
exportprob(0, string(tdir))
Mosel uses the user's temporary directory as its temporary directory, so you should be seeing some similar output from the second as what you get in the first case.
Related Content
Related Content
Error 11 when writing results to a database.
I am trying to insert results into a sqlite database using the following: SQLexecute(" INSERT INTO res_rm_markets_oper (case_id, market, strat_node, oper_scenario, oper_period, bid_up, bid_down...1 year agoPlace FICO® Xpress Optimization ForumFICO® Xpress Optimization Forum2 unread comments2 unread1View0likes2CommentsVariable object mapping issue in Python Callbacks with Presolve enabled
Hi, I am implementing a Branch-and-Cut algorithm using the Xpress Python interface. I have structured my code as a class where I create variables (using xp.var) and store them in a dictionary attrib...9 months agoPlace FICO® Xpress Optimization ForumFICO® Xpress Optimization Forum6 unread comments6 unread6Views0likes6Comments